Skip to content

[Fix] qwen3_5: Warn on unknown visual bias in load_weights (#44504) - #44571

Closed
devtyagi3909 wants to merge 5 commits into
sgl-project:mainfrom
devtyagi3909:fix/qwen35-vl-unknown-bias-warning
Closed

devtyagi3909 wants to merge 5 commits into
sgl-project:mainfrom
devtyagi3909:fix/qwen35-vl-unknown-bias-warning

Conversation

@devtyagi3909

@devtyagi3909 devtyagi3909 commented Oct 15, 2026 •

Copy link
Copy Markdown

fixes #44504

load_weights() silently swallowed unknown .bias weights on all checkpoints via if name.endswith(".bias") and name not in params_dict: continue, causing unrecognized vision bias weights to be dropped without warning while unknown weights logged a warning.

this checks is_gptq = quant_config is not None and getattr(quant_config, "quant_method", None) == "gptq" and only silently skips extra biases when is_gptq and "visual" not in name. all other unknown parameters (including unknown vision bias weights) now emit a warning. added unit tests using _RecordingParam and mock named_parameters in test/registered/unit/models/test_qwen3_5_pipeline_parallel.py.


CI States

Latest PR Test (Base): ❌ Run #39473999460
Latest PR Test (Extra): ❌ Run #39473999062
Latest PR Test (AMD ROCm 10): ❌ Run #39473999100

… skip to gptq (sgl-project#44504)

load_weights silently swallowed unknown .bias weights on all checkpoints
via if name.endswith(".bias") and name not in params_dict: continue, causing
unrecognized vision bias weights to be dropped without warning while unknown
weights logged a warning.

check is_gptq = quant_config is not None and getattr(quant_config, "quant_method", None) == "gptq"
and only silently skip extra biases when is_gptq and "visual" not in name.
all other unknown parameters (including unknown vision bias weights) now emit
a warning. add unit tests using _RecordingParam and mock named_parameters.

Signed-off-by: DEV TYAGI <[email protected]>
@devtyagi3909
devtyagi3909 force-pushed the fix/qwen35-vl-unknown-bias-warning branch from 4042ba6 to fe2dd14 Compare October 15, 2026 20:17
@devtyagi3909

Copy link
Copy Markdown
Author

fixed ruff import formatting and added test coverage for moe conditional generation as well.

@devtyagi3909 devtyagi3909 changed the title fix(qwen3_5): warn on unknown vision bias weights and restrict silent skip to gptq (#44504) [Fix] qwen3_5: Warn on unknown visual bias in load_weights (#44504) Oct 18, 2026
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks @devtyagi3909. Closing this because you have 9 PRs open and none updated in 7 days, over our soft cap of 5 for idle PRs.

Reopen the two or three you most want reviewed - a short active set moves faster than a long idle one.

Some directories moved recently, so an older branch may need retargeting:
sgl-kernel/ -> python/sglang/kernels/aot/, python/sglang/jit_kernel/
-> python/sglang/kernels/jit/, docs/ -> docs/docs/ (.mdx),
bench_serving.py -> benchmark/serving.py, test/srt/ -> test/registered/.

@github-actions github-actions Bot closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] update_weights_from_disk reports success when Qwen3.5-VL vision weights have unknown names (no warning for .bias)

1 participant