Skip to content

Commit b873095

Browse files
authored
Added missing token kwarg in Peft model loading (huggingface#1825)
1 parent 47875f7 commit b873095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trl/models/modeling_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class and the arguments that are specific to trl models. The kwargs
215215

216216
# Wrap the pretrained model with the trained peft adapter
217217
pretrained_model = PeftModel.from_pretrained(
218-
pretrained_model, pretrained_model_name_or_path, is_trainable=is_trainable
218+
pretrained_model, pretrained_model_name_or_path, is_trainable=is_trainable, token=token
219219
)
220220
logging.info("Trained peft adapter loaded")
221221
else:

0 commit comments

Comments
 (0)