[log] better logging display with rich (#426)

* better logger using rich

* remove deepspeed in zero requirements
pull/427/head
Jiarui Fang 3 years ago committed by GitHub
parent 3f70a2b12f
commit 54229cd33e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

@ -6,3 +6,4 @@ psutil
tensorboard
packaging
pre-commit
rich

Loading…
Cancel
Save