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
norm
vllm
Commits
6b5296aa
Unverified
Commit
6b5296aa
authored
Oct 08, 2023
by
Zhuohan Li
Committed by
GitHub
Oct 08, 2023
Browse files
[FIX] Explain why the finished_reason of ignored sequences are length (#1289)
parent
ee92b58b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/sequence.py
vllm/sequence.py
+3
-0
No files found.
vllm/sequence.py
View file @
6b5296aa
...
@@ -35,6 +35,9 @@ class SequenceStatus(enum.Enum):
...
@@ -35,6 +35,9 @@ class SequenceStatus(enum.Enum):
elif
status
==
SequenceStatus
.
FINISHED_ABORTED
:
elif
status
==
SequenceStatus
.
FINISHED_ABORTED
:
finish_reason
=
"abort"
finish_reason
=
"abort"
elif
status
==
SequenceStatus
.
FINISHED_IGNORED
:
elif
status
==
SequenceStatus
.
FINISHED_IGNORED
:
# The ignored sequences are the sequences whose prompt lengths
# are longer than the model's length cap. Therefore, the stop
# reason should also be "length" as in OpenAI API.
finish_reason
=
"length"
finish_reason
=
"length"
else
:
else
:
finish_reason
=
None
finish_reason
=
None
...
...
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