Update quantize.py

This commit is contained in:
cdawg 2023-07-19 17:43:49 +02:00 committed by GitHub
parent 5a1512c025
commit d6649411c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -864,7 +864,7 @@ def quantize(
)
with init_empty_weights():
model = AutoModelForCausalLM.from_config(config, torch_dtype=torch.float16)
model = AutoModelForCausalLM.from_config(config, torch_dtype=torch.float16,trust_remote_code=trust_remote_code)
model = model.eval()
print("LOADED model")