fix(llm): preserve RoPE fields in vLLM scaling overrides #6180
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.42) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 234 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.327
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #6180"
general
weight: 0.35
Jackmeson1
Fixes #6179
Explicit
rope_scalingreplaced the caller’shf_overridesand could discard Qwen3’s saved rotary base or leave YaRN disabled.For local Hugging Face checkpoints with one flat RoPE mapping, merge checkpoint fields, caller overrides, then explicit scaling at the root or immediate
text_config. On Transformers 4, keep the legacy fields and also setrope_parameterswhen vLLM derives it before applying overrides.For checkpoints with a nested
text_config, Xinference forwards explicitrope_scalingat the root on vLLM releases before 0.11.1 or when the version is unknown, preserving the typed text config on loaders that apply overrides withconfig.update().For per-layer control, supply the model’s complete native
hf_overrides. Automatic GGUF sidecars, custom config formats, and model-specific defaults are outside this fix.Tests
Ubuntu 24.04.5, CPU, Python 3.12.3. The Qwen3 test constructs YaRN and checks its saved base of
500000.| vLLM / Transformers | With
5b282329core.py |760631b1||---|---:|---:|
| 0.34.0 / 5.22.2 | 9 failed | 9 passed |
| 0.33.0 / 5.20.2 | 9 failed | 9 passed |
| 0.23.0 / 4.57.6 | 9 failed | 9 passed |
Without vLLM, the file had 8 passed and 1 skipped on Python 3.12.3 with Transformers 5.24.0 and 4.57.6, and on Python 3.10.22. Changed-file pre-commit and whole-tree mypy passed. The 46 consumer test files, run on
760631b1and on5b282329in the same environment, gave 2,840 passed, 18 skipped and 16 failed on both, with the same 16 test IDs (7 llama.cpp launch cases incore/tests/test_restful_api.py, which the box cannot run, and 9 inmodel/llmthat fail on main there too).AI disclosure: this was prepared with AI assistance (Claude Code with Claude Fable 5.2, and OpenAI Codex with GPT-6.2).