Repository navigation
[Model] Muse Glimmer: reuse in-tree RMSNorm / GemmaRMSNorm - #64920
Merged
Merged
Conversation
Signed-off-by: Thomas Ortner <boh@zurich.ibm.com>
4 of 5 tasks
jeejeelee
approved these changes
Nov 2, 2026
Member
|
/ci run |
jeejeelee
enabled auto-merge (squash)
November 2, 2026 09:30
|
✅ Triggered Buildkite CI #99135 for commit ℹ️ This PR is 48 commits behind upstream |
Contributor
Author
|
I think the failing CI tests are not from this PR and a resolution is provided through #65140 |
…rmsnorm Signed-off-by: Thomas Ortner <boh@zurich.ibm.com>
Contributor
Author
|
/ci run |
|
✅ Triggered Buildkite CI #99205 for commit |
Member
|
@bohnstingl if so, we can force merge this PR, please don't trigger CI again |
bohnstingl
pushed a commit
to bohnstingl/spyre-inference
that referenced
this pull request
Nov 3, 2026
Strict-xfail probe that flips once the pinned vLLM carries vllm-project/vllm#64920, signalling that the Muse Glimmer norm swap can be deleted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Yannick Schnider <Yannick.Schnider1@ibm.com>
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.
Overview
Replace the model-local
MuseGlimmerRMSNorm(added in #51655) with the existingRMSNormandGemmaRMSNormCustomOps. The output is bit-identical in bf16.Claims
MuseGlimmerRMSNormclass. All norms in the model now use the shared CustomOps, so they get are enabled for the OOT-platform swapping.Validation
Old class vs replacement, bf16, A100, x = 257×5120, both
forward_nativeandforward_cuda:with_scale=False(qk_norm,embed_norm,perception_emb_norm)RMSNorm(dim, has_weight=False)weight_offset=1(4 sandwich norms)GemmaRMSNorm(dim)normRMSNorm(dim, dtype=torch.float32).venv/bin/python -m pytest tests/models/test_initialization.py \ -k "MuseGlimmerForCausalLM or MuseGlimmerForConditionalGeneration" -v # 2 passedgsm8k on
meta-models/Muse-Glimmer-30B(BF16, TP=2 on 2×A100-80GB,--model-impl vllm, 5-shot, 1319 questions, greedy, max 256 tokens):e318ac0979)The 1-question delta is batching noise; the norms themselves are bit-exact.
vllm serve meta-models/Muse-Glimmer-30B --model-impl vllm --dtype bfloat16 \ --tensor-parallel-size 2 --max-model-len 4096 \ --limit-mm-per-prompt '{"image": 0, "video": 0}' python tests/evals/gsm8k/gsm8k_eval.py --num-shots 5 --num-questions 1319Details
The old class covered three cases, each of which already exists in-tree:
norm(x.float()).type_as(x)isRMSNorm(has_weight=False).(1 + w)sandwich norms: these are HF'sMuseGlimmerTextCenteredRMSNorm, a copy of Gemma's norm, soGemmaRMSNormmatches.(norm(x.float()) * w.float()).type_as(x). The in-tree op multiplies in the weight's dtype, so the weight is kept in fp32 to match HF's single cast. The fp32 weight survives the bf16 default dtype at init anddefault_weight_loader. The trade-off is that the fusedvllm_ckernel requires matching weight/input dtypes, so this one norm (once per forward) takes the native PyTorch path instead.Not in scope: Gemma2-style fused residual-add in the decoder layer, which would change
forward.No open PR touches this: searched open PRs for
MuseGlimmerRMSNorm,MuseGlimmer RMSNormandmuse_glimmer norm.cc @xianbaoqian @jeejeelee @zixi-qi @TheEpicDolphin (authors of #51655)
Pull Request Checklist
I used vLLM's
/pr-checklistskill. (Mandatory for agents, optional for humans).AI assistance was used during the creation of this PR.
Design Fit: Minimizes impact on core components, reuses existing functionality, and justifies added complexity.
Testing and Validation: Validates the change and ensures any added tests are meaningful and reliable, with CI coverage or documented CI resource constraints and validation performed outside CI.
Code Quality and Style: Keeps code and comments clear and concise, and updates relevant documentation and examples.
Pull Request Contents: Includes a brief summary and relevant links, supports claims with evidence, explains root causes and implementation trade-offs, and follows the contributing guide.