Skip to content

Commit

Permalink
cast empty deepspeed to empty string for zero3 check
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Nov 14, 2024
1 parent 7595420 commit 55cff2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/config/models/input/v0_4_1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ def warn_qlora_zero3_w_use_reentrant(cls, data):
and data.get("gradient_checkpointing_kwargs", {})
and data.get("gradient_checkpointing_kwargs", {}).get("use_reentrant")
is False
and "zero3" in data.get("deepspeed")
and "zero3" in data.get("deepspeed", "")
):
# may result in:
# torch.utils.checkpoint.CheckpointError: torch.utils.checkpoint:
Expand Down

0 comments on commit 55cff2e

Please sign in to comment.