Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
44b1fbe2
".github/vscode:/vscode.git/clone" did not exist on "2c127da8b5e2e8f44b50994c6cb931bcca267cfe"
Unverified
Commit
44b1fbe2
authored
Oct 02, 2025
by
fzyzcjy
Committed by
GitHub
Oct 01, 2025
Browse files
Fix DeepSeek chunked prefill memory issue (#11149)
parent
c0dbbdd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+1
-0
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
44b1fbe2
...
@@ -1965,6 +1965,7 @@ class DeepseekV2AttentionMLA(nn.Module):
...
@@ -1965,6 +1965,7 @@ class DeepseekV2AttentionMLA(nn.Module):
tmp_lse
=
torch
.
empty_like
(
accum_lse
)
tmp_lse
=
torch
.
empty_like
(
accum_lse
)
merge_state_v2
(
output
,
lse
,
accum_output
,
accum_lse
,
tmp_output
,
tmp_lse
)
merge_state_v2
(
output
,
lse
,
accum_output
,
accum_lse
,
tmp_output
,
tmp_lse
)
accum_output
,
accum_lse
=
tmp_output
,
tmp_lse
accum_output
,
accum_lse
=
tmp_output
,
tmp_lse
del
kv
,
k
,
v
,
output
,
lse
,
tmp_output
,
tmp_lse
return
accum_output
return
accum_output
...
...
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