Skip to content

Commit 8c4c027

Browse files
authored
Make the default value of fsdp compatible with transformers less than 4.57 (#7235)
1 parent c14132c commit 8c4c027

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift/llm/argument/train_args.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def _init_deepspeed(self):
290290

291291
def _init_fsdp(self):
292292
if not self.fsdp:
293+
self.fsdp = []
293294
return
294295

295296
if is_mp() and not self.use_ray:

0 commit comments

Comments
 (0)