Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbontrager committed Nov 8, 2024
1 parent 66447da commit 5a18094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/recipes/test_full_finetune_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def test_training_state_on_resume(
checkpointer.model_type={model_type.upper()} \
tokenizer.path='{tokenizer_path}' \
tokenizer.prompt_template=null \
clip_grad_norm=100 \
""".split()

model_config = MODEL_TEST_CONFIGS[model_type]
Expand All @@ -176,14 +177,15 @@ def test_training_state_on_resume(
output_dir={tmpdir} \
checkpointer._component_={ckpt_component} \
checkpointer.checkpoint_dir='{tmpdir}' \
checkpointer.checkpoint_files=[{os.path.join(tmpdir, "torchtune_model_1.pt")}]\
checkpointer.checkpoint_files=[{os.path.join(tmpdir, "torchtune_model_0.pt")}]\
checkpointer.recipe_checkpoint={os.path.join(tmpdir, "recipe_state.pt")}\
checkpointer.output_dir={tmpdir} \
checkpointer.model_type={model_type.upper()} \
tokenizer.path='{tokenizer_path}' \
tokenizer.prompt_template=null \
resume_from_checkpoint=True \
metric_logger.filename={log_file} \
clip_grad_norm=100 \
""".split()

cmd_2 = cmd_2 + self._get_test_config_overrides() + model_config
Expand Down

0 comments on commit 5a18094

Please sign in to comment.