"src/vscode:/vscode.git/clone" did not exist on "58c6f9cb719cf6ee5fda9302801f3030c73b83a9"
Commit 0090ad81 authored by Casper Hansen's avatar Casper Hansen
Browse files

Pass trust_remote_code to AutoModelForCausalLM

parent 637d4abd
...@@ -316,7 +316,13 @@ class BaseAWQForCausalLM(nn.Module): ...@@ -316,7 +316,13 @@ class BaseAWQForCausalLM(nn.Module):
# Load model weights # Load model weights
model = AutoModelForCausalLM.from_pretrained( model = AutoModelForCausalLM.from_pretrained(
model_filename, device_map=device_map, offload_folder="offload", offload_state_dict=True, torch_dtype=torch_dtype, use_safetensors=safetensors model_filename,
device_map=device_map,
trust_remote_code=trust_remote_code,
offload_folder="offload",
offload_state_dict=True,
torch_dtype=torch_dtype,
use_safetensors=safetensors
) )
model.eval() model.eval()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment