mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 09:21:18 +08:00
fix: remove eos_token_ids to prevent early stop
This commit is contained in:
parent
c83a85350b
commit
1dd038cbbc
@ -161,6 +161,7 @@ def load_model_tokenizer(model_path: str):
|
||||
start_time = time.time()
|
||||
model, tokenizer = load(model_path)
|
||||
model_load_time = time.time() - start_time
|
||||
tokenizer.eos_token_ids.clear() # Remove EOS token to prevent early termination
|
||||
return model, tokenizer, model_load_time
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user