mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-12-14 17:28:59 +08:00
chore: make the Deepseek example compatible with Yi models. (#205)
* Update convert.py * Update convert.py * Update deepseek_coder.py
This commit is contained in:
@@ -248,7 +248,7 @@ def load_model(model_path: str):
|
||||
nn.QuantizedLinear.quantize_module(model, **quantization)
|
||||
model.update(tree_unflatten(list(weights.items())))
|
||||
|
||||
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
||||
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, use_fast=False)
|
||||
return model, tokenizer
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user