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
jerrrrry
infinilm
Commits
7b744f46
Commit
7b744f46
authored
Feb 04, 2026
by
Ceng23333
Browse files
resolve comments
Signed-off-by:
Ceng23333
<
441651826@qq.com
>
parent
505f8f66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/infinilm/llm/llm.py
python/infinilm/llm/llm.py
+3
-3
No files found.
python/infinilm/llm/llm.py
View file @
7b744f46
...
@@ -239,13 +239,13 @@ class LLMEngine:
...
@@ -239,13 +239,13 @@ class LLMEngine:
decoded_text
=
self
.
detokenize
(
req
.
generated_token_ids
)
decoded_text
=
self
.
detokenize
(
req
.
generated_token_ids
)
finished_now
=
False
finished_now
=
False
# Update generated_text to the latest decode (used for stop-string checks and debugging)
req
.
generated_text
=
decoded_text
if
self
.
_check_request_finished
(
req
,
token_id
):
if
self
.
_check_request_finished
(
req
,
token_id
):
req
.
mark_finished
(
req
.
finish_reason
)
req
.
mark_finished
(
req
.
finish_reason
)
finished_now
=
True
finished_now
=
True
# Update generated_text to the latest decode (used for stop-string checks and debugging)
req
.
generated_text
=
decoded_text
holds_back_incomplete_utf8
=
(
holds_back_incomplete_utf8
=
(
bool
(
decoded_text
)
and
decoded_text
.
endswith
(
"
\ufffd
"
)
bool
(
decoded_text
)
and
decoded_text
.
endswith
(
"
\ufffd
"
)
)
)
...
...
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