Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Sep 28, 2024
1 parent d3cc706 commit 410bac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_torchrun/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ def test_multi_gpu_diloco_non_full_shard(strategy):
def test_ckpt(tmp_path: Path):
ckpt_path = "outputs" # for some reason tmp_path is not working
os.makedirs(ckpt_path, exist_ok=True)
_test_multi_gpu([1, 1], "debug/normal.toml", extra_args=["--ckpt.path", str(ckpt_path), "--ckpt.interval", "10"])
_test_multi_gpu([1, 1], "debug/normal.toml", extra_args=["--resume", str(ckpt_path)])
_test_multi_gpu([1, 1], "debug/normal.toml", extra_args=["--ckpt.path", f"{ckpt_path}/", "--ckpt.interval", "10"])
_test_multi_gpu([1, 1], "debug/normal.toml", extra_args=["--resume", f"{ckpt_path}/step_10"])
shutil.rmtree(ckpt_path)

0 comments on commit 410bac4

Please sign in to comment.