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
e5ec9764
Unverified
Commit
e5ec9764
authored
Oct 30, 2025
by
Xuchun Shang
Committed by
GitHub
Oct 30, 2025
Browse files
[Bug fix][PP] fix deadlock with tie_word_embeddings (#12362)
Signed-off-by:
Xuchun Shang
<
xuchun.shang@gmail.com
>
parent
621dfb88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/models/qwen2.py
python/sglang/srt/models/qwen2.py
+1
-1
python/sglang/srt/models/qwen3.py
python/sglang/srt/models/qwen3.py
+1
-1
No files found.
python/sglang/srt/models/qwen2.py
View file @
e5ec9764
...
@@ -462,7 +462,7 @@ class Qwen2ForCausalLM(nn.Module):
...
@@ -462,7 +462,7 @@ class Qwen2ForCausalLM(nn.Module):
self
.
pp_group
.
send
(
self
.
pp_group
.
send
(
self
.
model
.
embed_tokens
.
weight
,
dst
=
self
.
pp_group
.
last_rank
self
.
model
.
embed_tokens
.
weight
,
dst
=
self
.
pp_group
.
last_rank
)
)
el
se
:
el
if
self
.
pp_group
.
is_last_rank
:
emb_token_weight
=
self
.
pp_group
.
recv
(
emb_token_weight
=
self
.
pp_group
.
recv
(
size
=
(
config
.
vocab_size
,
config
.
hidden_size
),
size
=
(
config
.
vocab_size
,
config
.
hidden_size
),
dtype
=
next
(
self
.
model
.
parameters
()).
dtype
,
dtype
=
next
(
self
.
model
.
parameters
()).
dtype
,
...
...
python/sglang/srt/models/qwen3.py
View file @
e5ec9764
...
@@ -361,7 +361,7 @@ class Qwen3ForCausalLM(nn.Module):
...
@@ -361,7 +361,7 @@ class Qwen3ForCausalLM(nn.Module):
self
.
pp_group
.
send
(
self
.
pp_group
.
send
(
self
.
model
.
embed_tokens
.
weight
,
dst
=
self
.
pp_group
.
last_rank
self
.
model
.
embed_tokens
.
weight
,
dst
=
self
.
pp_group
.
last_rank
)
)
el
se
:
el
if
self
.
pp_group
.
is_last_rank
:
emb_token_weight
=
self
.
pp_group
.
recv
(
emb_token_weight
=
self
.
pp_group
.
recv
(
size
=
(
config
.
vocab_size
,
config
.
hidden_size
),
size
=
(
config
.
vocab_size
,
config
.
hidden_size
),
dtype
=
next
(
self
.
model
.
parameters
()).
dtype
,
dtype
=
next
(
self
.
model
.
parameters
()).
dtype
,
...
...
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