Skip to content

Revert "[Bugfix] Fix RMSNorm kernels to multiply in weight's native dtype" (#42379) - #44088

Open
vllm-agent wants to merge 4 commits into
vllm-project:mainfrom
vllm-agent:auto-revert/pr-42379
Open

Revert "[Bugfix] Fix RMSNorm kernels to multiply in weight's native dtype" (#42379)#44088
vllm-agent wants to merge 4 commits into
vllm-project:mainfrom
vllm-agent:auto-revert/pr-42379

Conversation

@vllm-agent

Copy link
Copy Markdown
Contributor

Revert of #42379

This reverts commit 124fac1 (merge commit for PR #42379).

Original PR: #42379
Original title: [Bugfix] Fix RMSNorm kernels to multiply in weight's native dtype

Reason for revert

CI nightly build #69058 detected 1 new failure linked to this PR:

  • Multi-Modal Models (Extended Generation 1)test_batched_generation for audioflamingo3 failed with text output mismatch. The RMSNorm kernel dtype fix changes numerical precision of the normalization output, which propagates through model layers and alters generated text.

Files reverted

  • csrc/libtorch_stable/layernorm_kernels.cu
  • csrc/libtorch_stable/layernorm_quant_kernels.cu

Auto-generated by CI failure analyzer. Build #69058.

@mergify mergify Bot added the bug Something isn't working label May 31, 2026
@zyongye zyongye added verified Run pre-commit for new contributors without triggering other tests ready ONLY add when PR is ready to merge/full CI is needed labels May 31, 2026
Align the vLLM IR rms_norm/fused_add_rms_norm native reference
implementations (and the IR design doc) with the reverted CUDA kernel
behavior: keep activations in fp32 through the weight multiply and cast
back to the original dtype only at the end, instead of downcasting to the
weight's native dtype before multiplying.

Also drop the now-obsolete GemmaRMSNorm docstring note about
(x * w).to(orig_dtype), since the base RMSNorm now does the same.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Signed-off-by: Yongye Zhu <zyy1102000@gmail.com>
@mergify

mergify Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

Documentation preview: https://vllm--44088.org.readthedocs.build/en/44088/

@mergify mergify Bot added the documentation Improvements or additions to documentation label May 31, 2026
@zyongye
zyongye marked this pull request as ready for review May 31, 2026 20:43
@zyongye
zyongye requested a review from ProExpertProg as a code owner May 31, 2026 20:43
@mergify

mergify Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @vllm-agent.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation needs-rebase ready ONLY add when PR is ready to merge/full CI is needed verified Run pre-commit for new contributors without triggering other tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants