Skip to content

Commit

Permalink
optional
Browse files Browse the repository at this point in the history
  • Loading branch information
KuuCi committed Apr 19, 2024
1 parent c44fafa commit 6250a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llmfoundry/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def parse_source_dataset(cfg: DictConfig):
return data_paths


def log_dataset_uri(cfg: DictConfig) -> mlflow.data.meta_dataset.MetaDataset:
def log_dataset_uri(cfg: DictConfig) -> Optional[mlflow.data.meta_dataset.MetaDataset]:
"""Logs dataset tracking information to MLflow."""
if mlflow is None:
log.warning('MLflow is not installed. Skipping dataset logging.')
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_mlflow_logging.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2024 MosaicML LLM Foundry authors
# SPDX-License-Identifier: Apache-2.0

from typing import Any
from unittest.mock import patch

import pytest
from typing import Any
from omegaconf import OmegaConf

from llmfoundry.utils.config_utils import log_dataset_uri, parse_source_dataset
Expand Down

0 comments on commit 6250a44

Please sign in to comment.