Skip to content

Commit

Permalink
fix mock (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrychen109 authored Jan 14, 2024
1 parent b69318e commit b40b805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/a_scripts/inference/test_convert_composer_to_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ def test_huggingface_conversion_callback_interval(
mlflow_logger_mock.save_model = MagicMock()
mlflow_logger_mock.register_model = MagicMock()
mlflow_logger_mock.model_registry_prefix = ''
mlflow_logger_mock._experiment_id = 'mlflow-experiment-id'
mlflow_logger_mock._run_id = 'mlflow-run-id'
trainer = Trainer(
model=original_model,
device='gpu',
Expand Down Expand Up @@ -534,6 +536,8 @@ def test_huggingface_conversion_callback(
mlflow_logger_mock.save_model = MagicMock()
mlflow_logger_mock.register_model = MagicMock()
mlflow_logger_mock.model_registry_prefix = ''
mlflow_logger_mock._experiment_id = 'mlflow-experiment-id'
mlflow_logger_mock._run_id = 'mlflow-run-id'
trainer = Trainer(
model=original_model,
device='gpu',
Expand Down

0 comments on commit b40b805

Please sign in to comment.