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
3008db9c
Unverified
Commit
3008db9c
authored
May 05, 2025
by
fzyzcjy
Committed by
GitHub
May 05, 2025
Browse files
[PD] Allow customizing reserved tokens to avoid KV cache waste (#6002)
parent
357fb2db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/disaggregation/decode.py
python/sglang/srt/disaggregation/decode.py
+3
-1
No files found.
python/sglang/srt/disaggregation/decode.py
View file @
3008db9c
...
@@ -97,7 +97,9 @@ class DecodePreallocQueue:
...
@@ -97,7 +97,9 @@ class DecodePreallocQueue:
self
.
tp_size
=
tp_size
self
.
tp_size
=
tp_size
self
.
bootstrap_port
=
bootstrap_port
self
.
bootstrap_port
=
bootstrap_port
self
.
num_reserved_decode_tokens
=
512
self
.
num_reserved_decode_tokens
=
int
(
os
.
environ
.
get
(
"SGLANG_NUM_RESERVED_DECODE_TOKENS"
,
"512"
)
)
# Queue for requests pending pre-allocation
# Queue for requests pending pre-allocation
self
.
queue
:
List
[
DecodeRequest
]
=
[]
self
.
queue
:
List
[
DecodeRequest
]
=
[]
...
...
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