[stop sequence] support stop sequence (#3025)

* stop seqs in multi-ends

* unittest for gpu stop op

* kernel tid==0
This commit is contained in:
JYChen
2025-07-29 14:17:37 +08:00
committed by GitHub
parent 1a815b7a2a
commit dafe02a7b9
11 changed files with 193 additions and 189 deletions

View File

@@ -215,6 +215,16 @@ class ModelOutputData:
"""
reasoning_index: paddle.Tensor = None
"""
the token ids of stop sequence
"""
stop_token_ids: paddle.Tensor = None
"""
the length of stop sequence
"""
stop_seqs_len: paddle.Tensor = None
@dataclass
class ModelRunnerOutput: