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
550a4f78
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "ebbc42d989bb206d296f074a5dea7aed948d3715"
Unverified
Commit
550a4f78
authored
Apr 09, 2024
by
Tom Dörr
Committed by
GitHub
Apr 09, 2024
Browse files
Fix typos in infer_batch.py (#354)
parent
ff99c38a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/managers/router/infer_batch.py
python/sglang/srt/managers/router/infer_batch.py
+2
-2
No files found.
python/sglang/srt/managers/router/infer_batch.py
View file @
550a4f78
...
@@ -240,7 +240,7 @@ class Batch:
...
@@ -240,7 +240,7 @@ class Batch:
out_cache_loc
=
self
.
token_to_kv_pool
.
alloc
(
extend_num_tokens
)
out_cache_loc
=
self
.
token_to_kv_pool
.
alloc
(
extend_num_tokens
)
if
out_cache_loc
is
None
:
if
out_cache_loc
is
None
:
print
(
"Prefill out of memory. This should ne
r
ver happen."
)
print
(
"Prefill out of memory. This should never happen."
)
self
.
tree_cache
.
pretty_print
()
self
.
tree_cache
.
pretty_print
()
exit
()
exit
()
...
@@ -402,7 +402,7 @@ class Batch:
...
@@ -402,7 +402,7 @@ class Batch:
self
.
out_cache_loc
=
self
.
token_to_kv_pool
.
alloc
(
bs
)
self
.
out_cache_loc
=
self
.
token_to_kv_pool
.
alloc
(
bs
)
if
self
.
out_cache_loc
is
None
:
if
self
.
out_cache_loc
is
None
:
print
(
"Decode out of memory. This should ne
r
ver happen."
)
print
(
"Decode out of memory. This should never happen."
)
self
.
tree_cache
.
pretty_print
()
self
.
tree_cache
.
pretty_print
()
exit
()
exit
()
...
...
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