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

* better logger using rich

* remove deepspeed in zero requirements
pull/427/head
Jiarui Fang 2022-03-16 09:51:15 +08:00 committed by GitHub
parent 3f70a2b12f
commit 54229cd33e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

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

View File

@ -1,3 +1,3 @@
pytest
rpyc
matplotlib
matplotlib

View File

@ -1 +0,0 @@
deepspeed

View File

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