mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-25 06:52:46 +00:00
[install] run with out rich (#513)
This commit is contained in:
parent
0f2d219162
commit
81145208d1
@ -5,12 +5,16 @@ import colossalai
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from typing import Union
|
||||
from rich.logging import RichHandler
|
||||
|
||||
from colossalai.context.parallel_mode import ParallelMode
|
||||
|
||||
try:
|
||||
from rich.logging import RichHandler
|
||||
_FORMAT = 'colossalai - %(name)s - %(asctime)s %(levelname)s: %(message)s'
|
||||
logging.basicConfig(level=logging.INFO, format=_FORMAT, handlers=[RichHandler()])
|
||||
except ImportError:
|
||||
_FORMAT = 'colossalai - %(name)s - %(asctime)s %(levelname)s: %(message)s'
|
||||
logging.basicConfig(level=logging.INFO, format=_FORMAT)
|
||||
|
||||
|
||||
class DistributedLogger:
|
||||
|
Loading…
Reference in New Issue
Block a user