Skip to content

Commit

Permalink
fixed model loading test
Browse files Browse the repository at this point in the history
  • Loading branch information
M-R-Schaefer committed Dec 28, 2023
1 parent bbbbd76 commit 8e0cd03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/md/test_model_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_model_loading(get_tmp_path, get_sample_input):

ckpt = {"model": {"params": params}, "epoch": 0}
ckpt_dir1 = pathlib.Path("models/apax_dummy/best")
ckpt_dir2 = pathlib.Path("../models/apax_dummy/best").resolve()
ckpt_dir2 = pathlib.Path("../models/apax_dummy/best")
ckpt_dir3 = pathlib.Path("models/best")

ckpt_dirs = [ckpt_dir1, ckpt_dir2, ckpt_dir3]
Expand All @@ -32,7 +32,7 @@ def test_model_loading(get_tmp_path, get_sample_input):
model_config.dump_config(ckpt_dir.parent)

checkpoints.save_checkpoint(
ckpt_dir=ckpt_dir,
ckpt_dir=ckpt_dir.resolve(),
target=ckpt,
step=0,
overwrite=True,
Expand Down

0 comments on commit 8e0cd03

Please sign in to comment.