Skip to content

Commit 229050d

Browse files
committed
fix loaded config in test
1 parent fa6440e commit 229050d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _compare_configs(config_ref, config_test):
241241
@pytest.mark.depends(on=["test_converted_distributed"])
242242
def test_load_pretrained_distributed_checkpoint():
243243
config = TEST_ARCHITECTURE_CONFIG_CLS.from_dict(
244-
yaml.safe_load((_CKPT_PATH / ".." / ".." / "config.yaml").open("r")), strict=False
244+
yaml.safe_load((_CKPT_PATH / ".." / ".." / "config.yaml").open("r"))["model"]["base_model"], strict=False
245245
)
246246
pretrained_config_ref = CheckpointLoadConfig(
247247
path=_CKPT_PATH,

0 commit comments

Comments
 (0)