mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-25 03:31:56 +00:00
[log] better logging display with rich (#426)
* better logger using rich * remove deepspeed in zero requirements
This commit is contained in:
@@ -5,11 +5,12 @@ import colossalai
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from typing import Union
|
||||
from rich.logging import RichHandler
|
||||
|
||||
from colossalai.context.parallel_mode import ParallelMode
|
||||
|
||||
_FORMAT = 'colossalai - %(name)s - %(asctime)s %(levelname)s: %(message)s'
|
||||
logging.basicConfig(level=logging.INFO, format=_FORMAT)
|
||||
logging.basicConfig(level=logging.INFO, format=_FORMAT, handlers=[RichHandler()])
|
||||
|
||||
|
||||
class DistributedLogger:
|
||||
|
Reference in New Issue
Block a user