Skip to content

Commit

Permalink
add comment and support bitwise align
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSH6 committed Feb 6, 2025
1 parent 0a24093 commit b9d4307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/checkpoint/test_fsdp_ckpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_fsdp_ckpt():
logits_after_load = model(input_ids=input_ids2, attention_mask=attention_mask2).logits

# Step 4: Verify outputs match
torch.testing.assert_close(logits_before_load, logits_after_load)
torch.testing.assert_close(logits_before_load, logits_after_load, atol=0.0, rtol=0.0)
print("Checkpoint save/load test passed!")

# Cleanup
Expand Down
2 changes: 1 addition & 1 deletion verl/utils/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import hashlib

try:
from hdfs_io import copy, makedirs, exists
from hdfs_io import copy, makedirs, exists # for internal use only
except ImportError:
from .hdfs_io import copy, makedirs, exists

Expand Down

0 comments on commit b9d4307

Please sign in to comment.