Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d3cf61b8
Unverified
Commit
d3cf61b8
authored
Apr 29, 2025
by
Qiming Zhang
Committed by
GitHub
Apr 29, 2025
Browse files
fix gemma3 results all zero (#17364)
Signed-off-by:
mayuyuace
<
qiming1.zhang@intel.com
>
parent
a39203f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/model_executor/layers/layernorm.py
vllm/model_executor/layers/layernorm.py
+4
-1
No files found.
vllm/model_executor/layers/layernorm.py
View file @
d3cf61b8
...
...
@@ -241,7 +241,10 @@ class GemmaRMSNorm(CustomOp):
"""PyTorch-native implementation equivalent to forward()."""
orig_dtype
=
x
.
dtype
if
residual
is
not
None
:
x
=
x
+
residual
if
orig_dtype
==
torch
.
float16
:
x
=
x
+
residual
.
float
()
else
:
x
=
x
+
residual
residual
=
x
x
=
x
.
float
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment