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
a6c7ebbb
"projects/git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "f45893b84551b299eb1a3d2cd900051fbc1061cd"
Unverified
Commit
a6c7ebbb
authored
Jul 30, 2024
by
Liangsheng Yin
Committed by
GitHub
Jul 30, 2024
Browse files
Add req slots leaking check (#842)
parent
bb0501c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
python/sglang/srt/managers/tp_worker.py
python/sglang/srt/managers/tp_worker.py
+8
-0
No files found.
python/sglang/srt/managers/tp_worker.py
View file @
a6c7ebbb
...
@@ -280,6 +280,14 @@ class ModelTpServer:
...
@@ -280,6 +280,14 @@ class ModelTpServer:
"KV cache pool leak detected!"
"KV cache pool leak detected!"
)
)
if
self
.
req_to_token_pool
.
can_use_mem_size
!=
self
.
req_to_token_pool
.
size
:
warnings
.
warn
(
"Warning: "
f
"available req slots=
{
self
.
req_to_token_pool
.
can_use_mem_size
}
, "
f
"total slots=
{
self
.
req_to_token_pool
.
size
}
\n
"
"Memory pool leak detected!"
)
def
handle_generate_request
(
def
handle_generate_request
(
self
,
self
,
recv_req
:
TokenizedGenerateReqInput
,
recv_req
:
TokenizedGenerateReqInput
,
...
...
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