Update deepseek_coder.py

This commit is contained in:
Anchen
2023-12-30 19:37:01 +11:00
committed by GitHub
parent cbf5237086
commit 925c0d9266

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