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
909f3436
Unverified
Commit
909f3436
authored
Aug 27, 2024
by
havetc
Committed by
GitHub
Aug 27, 2024
Browse files
[FIX] Wrong logger (#1230)
parent
5ff25cdf
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/schedule_batch.py
python/sglang/srt/managers/schedule_batch.py
+2
-2
No files found.
python/sglang/srt/managers/schedule_batch.py
View file @
909f3436
...
...
@@ -269,12 +269,12 @@ class Req:
all_text
=
self
.
origin_input_text
+
self
.
decoded_text
+
jump_forward_str
all_ids
=
self
.
tokenizer
.
encode
(
all_text
)
if
not
all_ids
:
warning
s
.
warn
(
"Encoded all_text resulted in empty all_ids"
)
logger
.
warning
(
"Encoded all_text resulted in empty all_ids"
)
return
False
prompt_tokens
=
len
(
self
.
origin_input_ids_unpadded
)
if
prompt_tokens
>
len
(
all_ids
):
warning
s
.
warn
(
"prompt_tokens is larger than encoded all_ids"
)
logger
.
warning
(
"prompt_tokens is larger than encoded all_ids"
)
return
False
if
all_ids
[
prompt_tokens
-
1
]
!=
self
.
origin_input_ids_unpadded
[
-
1
]:
...
...
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