Skip to content

Commit a620831

Browse files
authored
Fix the bug when continue the peft. (meta-llama#717)
1 parent 9a56c41 commit a620831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama_recipes/finetuning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def main(**kwargs):
167167
# Load the pre-trained peft model checkpoint and setup its configuration
168168
if train_config.from_peft_checkpoint:
169169
model = PeftModel.from_pretrained(model, train_config.from_peft_checkpoint, is_trainable=True)
170-
peft_config = model.peft_config()
170+
peft_config = model.peft_config
171171
# Generate the peft config and start fine-tuning from original model
172172
else:
173173
peft_config = generate_peft_config(train_config, kwargs)

0 commit comments

Comments
 (0)