Repository navigation
Improve run_llama_train.sh args and add local-ranks-filter - #51
Merged
Merged
Conversation
tianyu-l
reviewed
Feb 9, 2024
Comment on lines
+13
to
+15
| PP=${PP:-"1"} | ||
| SP=${SP:-"1"} | ||
| DP=${DP:-"-1"} |
Contributor
There was a problem hiding this comment.
I wonder where these are picked up. Shall we also add to the torchrun cmd? e.g. --pp_degree=${PP}
Contributor
Author
There was a problem hiding this comment.
oh, yea, i forgot to copy that part over. will fix.
tianyu-l
approved these changes
Feb 9, 2024
tianyu-l
left a comment
Contributor
There was a problem hiding this comment.
Had an inline comment; o/w looks all good. Thanks for working on this!
wconstab
commented
Feb 10, 2024
| DP=${DP:-"-1"} | ||
|
|
||
| # by default log just rank 0 output, | ||
| LOG_RANK=${LOG_RANK:-0} |
Contributor
Author
There was a problem hiding this comment.
I think one issue for my solution is that you can't easily disable 'log_rank' unless you comment out the --local-ranks-filter option
Contributor
Author
There was a problem hiding this comment.
gonna merge it this way, its probably easier to have rank0 by default and comment out than remember how to add the filter string in, but we can probably improve this.
wconstab
force-pushed
the
whc/logrank
branch
from
February 10, 2024 00:48
42d77fc to
9b9ee1f
Compare
lessw2020
pushed a commit
that referenced
this pull request
Apr 18, 2024
allows convenient switching of args w/o editing .sh file e.g. `LOG_RANK=1,2 ./run_llama_train.sh` `NGPU=2 SP=2 ./run_llama_train.sh`
payoto
added a commit
to graphcore-research/torchtitan-fork
that referenced
this pull request
Feb 7, 2025
…ch#51) * Make dataloading it's own argument * Fix wandb name and add logging * Don't force a project in submit, it might be in the config * Address review comment
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.
allows convenient switching of args w/o editing .sh file
e.g.
LOG_RANK=1,2 ./run_llama_train.shNGPU=2 SP=2 ./run_llama_train.sh