Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ebsmothers committed Dec 4, 2024
1 parent 1b992aa commit e4f00c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/recipes/test_full_finetune_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def test_loss(
# should be the same.
if not optim_in_bwd:
cmd.append("clip_grad_norm=100")
# Test that gradient clipping works with CPU offload
cmd.append("fsdp_cpu_offload=True")
else:
cmd.append("optimizer_in_bwd=True")

Expand Down

0 comments on commit e4f00c4

Please sign in to comment.