Skip to content

Commit

Permalink
revert cpu count change
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Dec 5, 2023
1 parent 546d143 commit 90986d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/a_scripts/inference/test_convert_composer_to_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def test_callback_inits():
@pytest.mark.parametrize(
'hf_save_interval,save_interval,max_duration,expected_hf_checkpoints,expected_normal_checkpoints',
[('3ba', '2ba', '4ba', 2, 2), ('1dur', '2ba', '1ep', 1, 2)])
@patch('os.cpu_count', MagicMock(return_value=1))
@patch('os.cpu_count', MagicMock(return_value=None))
def test_huggingface_conversion_callback_interval(
tmp_path: pathlib.Path, log_to_mlflow: bool, hf_save_interval: str,
save_interval: str, max_duration: str, expected_hf_checkpoints: int,
Expand Down Expand Up @@ -381,7 +381,7 @@ def test_huggingface_conversion_callback_interval(
@pytest.mark.parametrize(
'hf_save_interval,save_interval,max_duration,expected_hf_checkpoints,expected_normal_checkpoints',
[('1ba', '1ba', '1ba', 1, 1)])
@patch('os.cpu_count', MagicMock(return_value=1))
@patch('os.cpu_count', MagicMock(return_value=None))
def test_huggingface_conversion_callback(
model: str,
tmp_path: pathlib.Path,
Expand Down

0 comments on commit 90986d4

Please sign in to comment.