Skip to content

Commit a0dc6a9

Browse files
committed
fix nit
1 parent 11b13da commit a0dc6a9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/prototype/test_low_bit_optim.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,9 @@ def test_optim_bf16_stochastic_round_correctness(self):
373373
optim2.step()
374374
optim2.zero_grad()
375375

376-
torch.testing.assert_close(loss1, loss2, msg=lambda msg: f"Iteration {idx}. {msg}")
377-
378-
379-
380-
_FSDP_WORLD_SIZE = 2
376+
torch.testing.assert_close(
377+
loss1, loss2, msg=lambda msg: f"Iteration {idx}. {msg}"
378+
)
381379

382380
@pytest.mark.skipif(not TORCH_VERSION_AT_LEAST_2_3, reason="requires PyTorch >= 2.3")
383381
@parametrize("optim_name", ["Adam8bit", "AdamW8bit", "Adam4bit", "AdamW4bit", "AdamFp8", "AdamWFp8"])

0 commit comments

Comments
 (0)