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
1a73f6a3
Commit
1a73f6a3
authored
Nov 22, 2025
by
maxiao1
Browse files
Merge branch 'v0.5.4_dev_maxiao' into 'v0.5.4_dev'
设置tbo相关变量 & 修改tbo拷贝 See merge request OpenDAS/sglang!37
parents
31653dd9
ae7f9123
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/layers/moe/token_dispatcher/deepep.py
python/sglang/srt/layers/moe/token_dispatcher/deepep.py
+1
-1
python/sglang/srt/two_batch_overlap.py
python/sglang/srt/two_batch_overlap.py
+1
-1
No files found.
python/sglang/srt/layers/moe/token_dispatcher/deepep.py
View file @
1a73f6a3
...
...
@@ -542,7 +542,7 @@ class _DeepEPDispatcherImplLowLatency(_DeepEPDispatcherImplBase):
num_max_dispatch_tokens_per_rank: the actual batch size in the decoding engine should be less than 256
https://github.com/deepseek-ai/DeepEP?tab=readme-ov-file#example-use-in-inference-decoding
"""
self
.
return_recv_hook
=
False
self
.
return_recv_hook
=
return_recv_hook
self
.
device_module
=
torch
.
get_device_module
()
self
.
quant_config
=
{}
...
...
python/sglang/srt/two_batch_overlap.py
View file @
1a73f6a3
...
...
@@ -758,7 +758,7 @@ class TboForwardBatchPreparer:
# TODO we may make padding on both sub-batches to make it slightly more balanced
value_a
=
min
(
tbo_split_token_index
,
num_token_non_padded
)
value_b
=
max
(
0
,
num_token_non_padded
-
tbo_split_token_index
)
return
torch
.
tensor
([
value_a
,
value_b
],
dtype
=
torch
.
int32
).
to
(
return
torch
.
tensor
([
value_a
,
value_b
],
dtype
=
torch
.
int32
).
pin_memory
().
to
(
device
=
get_global_server_args
().
device
,
non_blocking
=
True
)
...
...
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