File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 4
4
from composer .loggers import (
5
5
InMemoryLogger ,
6
6
MLFlowLogger ,
7
+ MosaicMLLogger ,
7
8
TensorboardLogger ,
8
9
WandBLogger ,
9
10
)
18
19
func = InMemoryLogger ,
19
20
) # for backwards compatibility
20
21
loggers .register ('mlflow' , func = MLFlowLogger )
22
+ loggers .register ('mosaicml' , func = MosaicMLLogger )
Original file line number Diff line number Diff line change
1
+ # Copyright 2024 MosaicML LLM Foundry authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ from composer .loggers import MosaicMLLogger
5
+
6
+ from llmfoundry .utils .builders import build_logger
7
+
8
+
9
+ def test_mosaic_ml_logger_constructs ():
10
+ mosaic_ml_logger = build_logger (
11
+ 'mosaicml' ,
12
+ kwargs = {'ignore_exceptions' : True },
13
+ )
14
+
15
+ assert isinstance (mosaic_ml_logger , MosaicMLLogger )
16
+ assert mosaic_ml_logger .ignore_exceptions == True
You can’t perform that action at this time.
0 commit comments