Skip to content

Commit f0b3cae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1e3bce1 commit f0b3cae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/pytorch/distributed/run_fsdp2_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ def _train(args):
560560
v_pt = s_post_train[key]
561561
if isinstance(v_pt, DTensor):
562562
v_pt = v_pt.to_local()
563-
assert not torch.allclose(v1, v_pt), (
564-
f"[{key}] Model weights should have changed after extra training steps"
565-
)
563+
assert not torch.allclose(
564+
v1, v_pt
565+
), f"[{key}] Model weights should have changed after extra training steps"
566566

567567
# Load the checkpoint.
568568
state_dict = {"app": AppState(model=model, optimizer=optimizer)}

0 commit comments

Comments
 (0)