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
7c347259
Unverified
Commit
7c347259
authored
May 21, 2025
by
Zilin Zhu
Committed by
GitHub
May 21, 2025
Browse files
[RL] allow weight updation with dp attention enabled (#6311)
parent
669caa0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
python/sglang/srt/managers/tokenizer_manager.py
python/sglang/srt/managers/tokenizer_manager.py
+4
-4
No files found.
python/sglang/srt/managers/tokenizer_manager.py
View file @
7c347259
...
@@ -893,8 +893,8 @@ class TokenizerManager:
...
@@ -893,8 +893,8 @@ class TokenizerManager:
)
->
Tuple
[
bool
,
str
]:
)
->
Tuple
[
bool
,
str
]:
self
.
auto_create_handle_loop
()
self
.
auto_create_handle_loop
()
assert
(
assert
(
self
.
server_args
.
dp_size
==
1
self
.
server_args
.
dp_size
==
1
or
self
.
server_args
.
enable_dp_attention
),
"dp_size must be 1 for update weights from distributed"
),
"dp_size must be 1
or dp attention must be enabled
for update weights from distributed"
# This means that weight sync
# This means that weight sync
# cannot run while requests are in progress.
# cannot run while requests are in progress.
...
@@ -909,8 +909,8 @@ class TokenizerManager:
...
@@ -909,8 +909,8 @@ class TokenizerManager:
)
->
Tuple
[
bool
,
str
]:
)
->
Tuple
[
bool
,
str
]:
self
.
auto_create_handle_loop
()
self
.
auto_create_handle_loop
()
assert
(
assert
(
self
.
server_args
.
dp_size
==
1
self
.
server_args
.
dp_size
==
1
or
self
.
server_args
.
enable_dp_attention
),
"dp_size must be 1 for update weights from
distributed
"
),
"dp_size must be 1
or dp attention must be enabled
for update weights from
tensor
"
# This means that weight sync
# This means that weight sync
# cannot run while requests are in progress.
# cannot run while requests are in progress.
...
...
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