mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-12-16 02:08:55 +08:00
revert some stuff
This commit is contained in:
@@ -169,7 +169,7 @@ class SpeculativeDecoder:
|
||||
|
||||
n_steps += 1
|
||||
|
||||
for t in list(new_tokens):
|
||||
for t in new_tokens.tolist():
|
||||
if t == self.tokenizer.eos_id or ntoks >= max_tokens:
|
||||
break
|
||||
outputs.append(t)
|
||||
|
||||
Reference in New Issue
Block a user