Skip to content

Commit

Permalink
pc
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Sep 23, 2024
1 parent 623772d commit 82d443b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/loggers/test_mosaic_ml_logger.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from llmfoundry.utils.builders import build_logger
# Copyright 2024 MosaicML LLM Foundry authors
# SPDX-License-Identifier: Apache-2.0

from composer.loggers import MosaicMLLogger

from llmfoundry.utils.builders import build_logger


def test_mosaic_ml_logger_constructs():
mosaic_ml_logger = build_logger('mosaicml', kwargs={'ignore_exceptions': True})
mosaic_ml_logger = build_logger(
'mosaicml', kwargs={'ignore_exceptions': True}
)

assert isinstance(mosaic_ml_logger, MosaicMLLogger)
assert mosaic_ml_logger.ignore_exceptions == True
assert mosaic_ml_logger.ignore_exceptions == True

0 comments on commit 82d443b

Please sign in to comment.