mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-26 19:25:52 +08:00
[FIX] Explain why the finished_reason of ignored sequences are length (#1289)
This commit is contained in:
parent
ee92b58b3a
commit
6b5296aa3a
@ -35,6 +35,9 @@ class SequenceStatus(enum.Enum):
|
||||
elif status == SequenceStatus.FINISHED_ABORTED:
|
||||
finish_reason = "abort"
|
||||
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"
|
||||
else:
|
||||
finish_reason = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user