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
3c3d6255
Unverified
Commit
3c3d6255
authored
Oct 04, 2025
by
Hank Han
Committed by
GitHub
Oct 03, 2025
Browse files
[fix]missing prefix_lens_cpu init when p/d disaggregation (#11196)
parent
546914fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
python/sglang/srt/disaggregation/decode.py
python/sglang/srt/disaggregation/decode.py
+8
-0
No files found.
python/sglang/srt/disaggregation/decode.py
View file @
3c3d6255
...
...
@@ -523,11 +523,19 @@ class DecodePreallocQueue:
dtype
=
torch
.
int64
,
device
=
self
.
token_to_kv_pool_allocator
.
device
,
),
prefix_lens_cpu
=
torch
.
tensor
(
[
0
],
dtype
=
torch
.
int64
,
),
seq_lens
=
torch
.
tensor
(
[
num_tokens
],
dtype
=
torch
.
int64
,
device
=
self
.
token_to_kv_pool_allocator
.
device
,
),
seq_lens_cpu
=
torch
.
tensor
(
[
num_tokens
],
dtype
=
torch
.
int64
,
),
last_loc
=
torch
.
tensor
(
[
-
1
],
dtype
=
torch
.
int64
,
...
...
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