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
5041df2d
"vscode:/vscode.git/clone" did not exist on "828e269cf48a014bdf19cebd5be9f92104f8e600"
Unverified
Commit
5041df2d
authored
Jun 20, 2025
by
Cheng Wan
Committed by
GitHub
Jun 20, 2025
Browse files
Fix 7285 Merge Conflicts (#7403)
parent
256801e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+2
-2
No files found.
python/sglang/srt/managers/scheduler.py
View file @
5041df2d
...
@@ -1438,7 +1438,7 @@ class Scheduler(
...
@@ -1438,7 +1438,7 @@ class Scheduler(
if
need_dp_attn_preparation
and
not
self
.
spec_algorithm
.
is_none
():
if
need_dp_attn_preparation
and
not
self
.
spec_algorithm
.
is_none
():
# In speculative decoding, prefill batches and decode batches cannot be processed in the same DP attention group.
# In speculative decoding, prefill batches and decode batches cannot be processed in the same DP attention group.
# We prepare idle batches in advance to skip preparing decode batches when there are prefill batches in the group.
# We prepare idle batches in advance to skip preparing decode batches when there are prefill batches in the group.
new_batch
,
_
=
self
.
prepare_
dp_attn
_batch
(
new_batch
)
new_batch
,
_
=
self
.
prepare_
mlp_sync
_batch
(
new_batch
)
need_dp_attn_preparation
=
new_batch
is
None
need_dp_attn_preparation
=
new_batch
is
None
if
new_batch
is
not
None
:
if
new_batch
is
not
None
:
...
@@ -1454,7 +1454,7 @@ class Scheduler(
...
@@ -1454,7 +1454,7 @@ class Scheduler(
# Handle DP attention
# Handle DP attention
if
need_dp_attn_preparation
:
if
need_dp_attn_preparation
:
ret
,
_
=
self
.
prepare_
dp_attn
_batch
(
ret
)
ret
,
_
=
self
.
prepare_
mlp_sync
_batch
(
ret
)
return
ret
return
ret
...
...
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