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
b8df43ab
Unverified
Commit
b8df43ab
authored
Jun 25, 2025
by
Qiaolin Yu
Committed by
GitHub
Jun 25, 2025
Browse files
Fix gathered_buffer issues in tbo (#7531)
parent
a1c1ebe9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/two_batch_overlap.py
python/sglang/srt/two_batch_overlap.py
+4
-1
No files found.
python/sglang/srt/two_batch_overlap.py
View file @
b8df43ab
...
...
@@ -346,7 +346,10 @@ class TboForwardBatchPreparer:
)
# TODO improve, e.g. unify w/ `init_raw`
if
global_server_args_dict
[
"moe_dense_tp_size"
]
==
1
:
if
(
global_server_args_dict
[
"moe_dense_tp_size"
]
==
1
and
batch
.
gathered_buffer
is
not
None
):
sum_len
=
end_token_index
-
start_token_index
gathered_buffer
=
torch
.
zeros
(
(
sum_len
,
batch
.
gathered_buffer
.
shape
[
1
]),
...
...
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