Skip to content

Commit

Permalink
Added missing token kwarg in Peft model loading (#1825)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkopecki committed Jul 10, 2024
1 parent 7ddef5c commit 9e9dc96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trl/models/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class and the arguments that are specific to trl models. The kwargs

# Wrap the pretrained model with the trained peft adapter
pretrained_model = PeftModel.from_pretrained(
pretrained_model, pretrained_model_name_or_path, is_trainable=is_trainable
pretrained_model, pretrained_model_name_or_path, is_trainable=is_trainable, token=token
)
logging.info("Trained peft adapter loaded")
else:
Expand Down

0 comments on commit 9e9dc96

Please sign in to comment.