mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-09 17:06:27 +08:00
fix: deepseek coder tokenizer error (#211)
This commit is contained in:
@@ -248,7 +248,7 @@ def load_model(model_path: str):
|
|||||||
nn.QuantizedLinear.quantize_module(model, **quantization)
|
nn.QuantizedLinear.quantize_module(model, **quantization)
|
||||||
model.update(tree_unflatten(list(weights.items())))
|
model.update(tree_unflatten(list(weights.items())))
|
||||||
|
|
||||||
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, use_fast=False)
|
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
||||||
return model, tokenizer
|
return model, tokenizer
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user