Skip to content

Commit

Permalink
Fixes a typo default arg (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg authored Sep 18, 2023
1 parent 229ab4f commit 1e7f909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
save_folder: str,
save_interval: Union[str, int, Time],
huggingface_folder_name: str = 'ba{batch}',
precision: str = 'fp32',
precision: str = 'float32',
overwrite: bool = False,
):
self.backend, self.bucket_name, self.save_dir_format_str = parse_uri(
Expand Down
4 changes: 4 additions & 0 deletions tests/test_hf_conversion_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ def get_config(
return cast(DictConfig, test_cfg)


def test_callback_inits_with_defaults():
_ = HuggingFaceCheckpointer(save_folder='test', save_interval='1ba')


@pytest.mark.world_size(2)
@pytest.mark.gpu
@pytest.mark.parametrize('model', ['mpt', 'neo', 'llama2'])
Expand Down

0 comments on commit 1e7f909

Please sign in to comment.