Skip to content

Commit 3266e79

Browse files
authored
Merge pull request #14 from foundation-model-stack/lchu-ibm-patch-1
fix full param tuning
2 parents 7636fce + fb06d47 commit 3266e79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tuning/sft_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def train(
155155
peft_config=peft_config,
156156
)
157157

158-
if run_distributed:
158+
if run_distributed and peft_config is not None:
159159
trainer.accelerator.state.fsdp_plugin.auto_wrap_policy = fsdp_auto_wrap_policy(model)
160160
trainer.train()
161161

0 commit comments

Comments
 (0)