fix(model): default MODEL_CONFIG_CLASS to None and opt in per family #6305
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.65) × (1 − Review Confidence (0.54)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 340 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #6305"
general
weight: 0.35
jayzuccarelli
What does this PR do ?
Makes the builder-backed config path opt-in per model family. Builder calls for families that have not migrated now raise instead of returning a wrong config, and the provider path no longer tells those families to switch.
Every bridge used to inherit MODEL_CONFIG_CLASS = BridgeGPTModelConfig, but only the migrated families map their HF config into it. For the rest, get_model_config() returned generic defaults and to_megatron_provider() warned users toward it.
Changelog
Testing
CPU only, no TransformerEngine (stubbed locally). Run against unmodified main, the updated test file gives 65 failed, 9 passed, 1 skipped; with this change it gives 74 passed, 1 skipped.
Unchanged between main and this branch: models/llama 44 passed, models/qwen 118 passed, models/glm_moe_dsa 25 passed, models/bagel conversion/checkpoint/dependencies 16 passed and 1 skipped, test_gpu_backend.py 21 passed, test_vlm_generation.py 7 passed, test_llama_recipes.py 105 passed, test_llama_perf_recipes.py 16 passed, test_qwen3_recipes.py 24 passed. test_auto_bridge.py: 97 passed, with the same 5 failures before and after locally (they need TE or a writable /tmp/output). The Muse Glimmer tests need real TransformerEngine and were not run locally; no Muse Glimmer file changed. ruff check and format clean.
Additional Information
AI-assisted (Claude Code); I reviewed the change and ran the tests.