chore: 精简实现代码部分

This commit is contained in:
2026-04-05 21:16:38 +08:00
parent d2fe8afbd1
commit e58dbd7c57
2 changed files with 6 additions and 66 deletions
+1 -3
View File
@@ -55,9 +55,7 @@ class Task:
"""Check if task is finished."""
if self.output_ids and self.output_ids[-1] in stop_ids:
return True
if self.output_tokens >= self.max_tokens:
return True
return False
return self.output_tokens >= self.max_tokens
def apply_sampling_strategies(