Repository navigation
Conversation
Contributor
Author
|
lint issue is related to new CI rather than pr. |
yifuwang
approved these changes
Feb 24, 2024
| model_name = job_config.model.name | ||
| rank0_log(f"Building {model_name}") | ||
| model_name = job_config.model | ||
| rank0_log(f"{color.yellow} Building {model_name} {color.reset}") |
There was a problem hiding this comment.
Not a blocker, but maybe consider checking if we are being redirected when applying color to avoid '\033[33m' in logs w/ MAST/SLURM.
os.isatty(sys.stdout.fileno())
Contributor
Author
There was a problem hiding this comment.
good point, thanks for flagging this Yifu!
lessw2020
force-pushed
the
add-color-to-console-outputs
branch
from
February 27, 2024 04:40
1198e76 to
5dec536
Compare
wconstab
added a commit
that referenced
this pull request
Aug 8, 2025
weifengpy
added a commit
to weifengpy/torchtitan-flexshard
that referenced
this pull request
Oct 20, 2026
The flex_shard PRs this fork uses have landed on meta-pytorch/flex_shard main: pytorch#51 through pytorch#77, ending at 7cdaf16 (pytorch#48 to pytorch#62 were re-landed as pytorch#96 to pytorch#103). The DeepSeek V3 16B reproduction now installs FlexShard from main instead of gh/weifengpy/55/head, the head of pytorch#65, which lacks pytorch#66 to pytorch#77: torchtitan-flexshard#20's fake backend for a size-1 edp_shard needs pytorch#71, and this fork's DistMuon (#22 to #27) needs pytorch#73 to pytorch#77. Checked: pip resolves git+https://github.com/meta-pytorch/flex_shard.git@main, and the fork's main (fa7a9b1) passes its 18 FlexShard and 9 DistMuon GPU tests (tests/unit_tests/gpu/test_flex_shard.py, tests/unit_tests/gpu/flex_shard/test_dist_muon.py) against flex_shard 7cdaf16. ghstack-source-id: 09ed3f5 ghstack-comment-id: 6284173360 Pull-Request: #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current console output is a sea of white.
Added very simple color and style dataclass in utils, so we (or future users) can enable more informative (and fun) console outputs.
current:

after (not necessarily the 'final' color scheme, just showing the difference here):
