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
5e5646e2
Unverified
Commit
5e5646e2
authored
Dec 02, 2025
by
Julien Denize
Committed by
GitHub
Dec 02, 2025
Browse files
[BUGFIX] llama_4_scaling wrongly passed to DeepseekAttention (#29908)
Signed-off-by:
juliendenize
<
julien.denize@mistral.ai
>
parent
0a9caca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+10
-5
No files found.
vllm/model_executor/models/deepseek_v2.py
View file @
5e5646e2
...
...
@@ -1135,6 +1135,8 @@ class DeepseekV2DecoderLayer(nn.Module):
dim
==
0
for
dim
in
(
qk_nope_head_dim
,
qk_rope_head_dim
)
)
self
.
use_mha
=
use_mha
if
use_mha
:
attn_cls
=
DeepseekAttention
elif
model_config
.
use_mla
:
...
...
@@ -1196,11 +1198,14 @@ class DeepseekV2DecoderLayer(nn.Module):
hidden_states
=
self
.
input_layernorm
(
hidden_states
)
else
:
hidden_states
,
residual
=
self
.
input_layernorm
(
hidden_states
,
residual
)
hidden_states
=
self
.
self_attn
(
positions
=
positions
,
hidden_states
=
hidden_states
,
llama_4_scaling
=
llama_4_scaling
,
)
attn_kwargs
=
{
"positions"
:
positions
,
"hidden_states"
:
hidden_states
,
}
if
not
self
.
use_mha
:
attn_kwargs
[
"llama_4_scaling"
]
=
llama_4_scaling
hidden_states
=
self
.
self_attn
(
**
attn_kwargs
)
if
(
not
isinstance
(
self
.
self_attn
,
DeepseekAttention
)
...
...
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