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:
Anchen
2023-12-31 01:11:33 +11:00
committed by GitHub
parent 581a5733a1
commit ee3c44d231
2 changed files with 4 additions and 3 deletions

View File

@@ -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