mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 12:01:39 +00:00
fix bugs in request_handler
This commit is contained in:
committed by
FrankLeeeee
parent
62fd08ee44
commit
62968588d1
@@ -106,7 +106,7 @@ class Sequence:
|
||||
return True
|
||||
|
||||
if self.output_token_id:
|
||||
if self.output_token_id[-1] >= self.eos_token_id or len(self.output_token_id) == self.max_output_len:
|
||||
if self.output_token_id[-1] == self.eos_token_id or self.output_len >= self.max_output_len:
|
||||
self.status = RequestStatus.COMPLETED
|
||||
return True
|
||||
|
||||
|
Reference in New Issue
Block a user