Skip to content

Commit

Permalink
Add missing key to init_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
yafshar committed Dec 12, 2024
1 parent 514fcf6 commit 2f41407
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/llamafactory/model/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def load_model(
if model_args.train_from_scratch:
model = load_class.from_config(config, trust_remote_code=model_args.trust_remote_code)
else:
init_kwargs["trust_remote_code"] = model_args.trust_remote_code
model = load_class.from_pretrained(**init_kwargs)

if model_args.mixture_of_depths == "convert":
Expand Down

0 comments on commit 2f41407

Please sign in to comment.