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
3a5de7d2
Unverified
Commit
3a5de7d2
authored
Nov 01, 2025
by
Jee Jee Li
Committed by
GitHub
Nov 01, 2025
Browse files
[Bugfix] Fix KDA output (#27905)
Signed-off-by:
Jee Jee Li
<
pandaleefree@gmail.com
>
parent
bc4486d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
vllm/model_executor/layers/kda.py
vllm/model_executor/layers/kda.py
+2
-3
No files found.
vllm/model_executor/layers/kda.py
View file @
3a5de7d2
...
@@ -259,7 +259,7 @@ class KimiDeltaAttention(nn.Module, MambaBase):
...
@@ -259,7 +259,7 @@ class KimiDeltaAttention(nn.Module, MambaBase):
hidden_states
:
torch
.
Tensor
,
hidden_states
:
torch
.
Tensor
,
positions
:
torch
.
Tensor
,
positions
:
torch
.
Tensor
,
output
:
torch
.
Tensor
,
output
:
torch
.
Tensor
,
)
->
torch
.
Tensor
:
)
->
None
:
num_tokens
=
hidden_states
.
size
(
0
)
num_tokens
=
hidden_states
.
size
(
0
)
q
=
self
.
q_proj
(
hidden_states
)[
0
]
q
=
self
.
q_proj
(
hidden_states
)[
0
]
k
=
self
.
k_proj
(
hidden_states
)[
0
]
k
=
self
.
k_proj
(
hidden_states
)[
0
]
...
@@ -291,8 +291,7 @@ class KimiDeltaAttention(nn.Module, MambaBase):
...
@@ -291,8 +291,7 @@ class KimiDeltaAttention(nn.Module, MambaBase):
)
)
core_attn_out
=
self
.
o_norm
(
core_attn_out
,
g2
)
core_attn_out
=
self
.
o_norm
(
core_attn_out
,
g2
)
core_attn_out
=
rearrange
(
core_attn_out
,
"1 n h d -> n (h d)"
)
core_attn_out
=
rearrange
(
core_attn_out
,
"1 n h d -> n (h d)"
)
output
[:]
=
self
.
o_proj
(
core_attn_out
)[
0
]
return
self
.
o_proj
(
core_attn_out
)[
0
]
def
_forward
(
def
_forward
(
self
,
self
,
...
...
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