Skip to content

Commit 89c6c42

Browse files
committed
use authentification token when loading the model
1 parent ecd9a95 commit 89c6c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

finetune/finetune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def run_training(args, train_data, val_data):
239239
# disable caching mechanism when using gradient checkpointing
240240
model = AutoModelForCausalLM.from_pretrained(
241241
args.model_path,
242-
trust_remote_code=True,
242+
use_auth_token=True,
243243
use_cache=not args.no_gradient_checkpointing,
244244
load_in_8bit=True,
245245
device_map={"": Accelerator().process_index},

0 commit comments

Comments
 (0)