Skip to content

Commit

Permalink
Trust remote code.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Jun 1, 2023
1 parent 6efed15 commit e59d6e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/create_model_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def test_create_model_cards(model_name, base_model, dataset, training_logs, eval
print("call 'huggingface_cli login' first and provide access token with write permission")
model = AutoModelForCausalLM.from_pretrained("h2oai/%s" % model_name,
local_files_only=False,
trust_remote_code=True,
torch_dtype=torch.float16,
device_map="auto")
model_arch = str(model)
Expand Down

0 comments on commit e59d6e1

Please sign in to comment.