Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Sep 27, 2023
1 parent d29fb57 commit 6180466
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions llmfoundry/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ def log_config(cfg: DictConfig) -> None:
import mlflow
except ImportError as e:
raise e
# if mlflow.active_run():
# mlflow.log_params(params=om.to_container(cfg, resolve=True))
if mlflow.active_run():
mlflow.log_params(params=om.to_container(cfg, resolve=True))
2 changes: 1 addition & 1 deletion tests/test_hf_conversion_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def test_callback_inits_with_defaults():
@pytest.mark.parametrize('log_to_mlflow', [True, False])
def test_huggingface_conversion_callback(model: str, tmp_path: pathlib.Path,
fsdp_state_dict_type: str,
log_to_mlflow: bool, monkeypatch):
log_to_mlflow: bool):
delete_transformers_cache()

dist.initialize_dist(get_device('gpu'))
Expand Down

0 comments on commit 6180466

Please sign in to comment.