Merged
Conversation
- Add ModelCapabilityProbe struct and probe_model_capability() in inference_bridge (#76): estimates params from file size, detects EP, measures smoke latency, extracts vocab size from tokenizer - Add ModelCapabilityTier enum (Basic/Moderate/Strong) with classify_capability() in core_engine (#77): const thresholds, tier = min(param_tier, latency_tier) - Agent adapts Phase 2 by tier (#78): Basic skips LLM entirely, Moderate uses reduced evidence, Strong uses full synthesis - Basic tier deterministic summary (#79): structured SUMMARY/FINDINGS/ RISK/ACTIONS format, byte-identical across runs - ModelCapabilityReport in RunReport JSON output (#80): tier, params, EP, latency, vocab_size; absent in dry-run mode - --capability-override CLI flag (#81): forces tier, skips probe, adds override:true in output - 18 new unit tests for classification boundaries, tier ordering, serialization, basic tier summary, and capability report Closes #75, closes #76, closes #77, closes #78, closes #79, closes #80, closes #81
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.12.0 — Model Capability Tiering
Implements all 7 issues in the v0.12.0 milestone (#75-#81).
Changes
inference_bridge
ModelCapabilityProbestruct withestimated_param_billions,execution_provider,smoke_latency_ms,vocab_sizeprobe_model_capability(config)— estimates params from file size, detects EP, estimates smoke latency, extracts vocab from tokenizer JSONcore_engine
ModelCapabilityTierenum (Basic, Moderate, Strong) with Serialize/Deserializeclassify_capability(probe)with const thresholds — final tier = min(param_tier, latency_tier)basic_tier_summary(findings)— structured SUMMARY/FINDINGS/RISK/ACTIONS formatModelCapabilityReportstruct for JSON outputAgentnow acceptscapability_tierand adapts Phase 2:model_capabilityfield added toRunReportcli
--capability-override basic|moderate|strongflag — forces tier, skips probe, addsoverride: truein outputrun_agent_once()schemas
model_capabilityandmax_severityadded to run-report schemaTests
cargo fmtandcargo clippycleanCloses #75, closes #76, closes #77, closes #78, closes #79, closes #80, closes #81