Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
54229cd3
Unverified
Commit
54229cd3
authored
Mar 16, 2022
by
Jiarui Fang
Committed by
GitHub
Mar 16, 2022
Browse files
[log] better logging display with rich (#426)
* better logger using rich * remove deepspeed in zero requirements
parent
3f70a2b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
colossalai/logging/logging.py
colossalai/logging/logging.py
+2
-1
requirements/requirements-test.txt
requirements/requirements-test.txt
+1
-1
requirements/requirements-zero.txt
requirements/requirements-zero.txt
+0
-1
requirements/requirements.txt
requirements/requirements.txt
+1
-0
No files found.
colossalai/logging/logging.py
View file @
54229cd3
...
...
@@ -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
:
...
...
requirements/requirements-test.txt
View file @
54229cd3
pytest
rpyc
matplotlib
\ No newline at end of file
matplotlib
requirements/requirements-zero.txt
View file @
54229cd3
deepspeed
\ No newline at end of file
requirements/requirements.txt
View file @
54229cd3
...
...
@@ -6,3 +6,4 @@ psutil
tensorboard
packaging
pre-commit
rich
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment