Repository navigation
Conversation
[ghstack-poisoned]
XilunWu
reviewed
Feb 23, 2024
XilunWu
left a comment
Contributor
There was a problem hiding this comment.
one question on stop condition. otherwise LGTM.
Comment on lines
+77
to
+78
| if not self.infinite: | ||
| break |
Contributor
There was a problem hiding this comment.
should we add some mechanic to allow a stop? self.infinite is a constant after being initialized.
Contributor
There was a problem hiding this comment.
I think cmd + c should be sufficient?
wanchaol
approved these changes
Feb 23, 2024
| yield input, label | ||
| while len(all_tokens) >= max_buffer_token_len: | ||
| x = torch.LongTensor(all_tokens[:max_buffer_token_len]) | ||
| # batched_x = x.reshape(self.batch_size, -1) |
Contributor
There was a problem hiding this comment.
nit: we can delete the staled comment?
Comment on lines
+77
to
+78
| if not self.infinite: | ||
| break |
Contributor
There was a problem hiding this comment.
I think cmd + c should be sufficient?
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.
Stack from ghstack (oldest at bottom):
Previously, alpaca dataset is consumed up after only ~50 iterations with 8 data parallel ranks and 8 batch size. This PR adds the (default) option to loop infinitely on the dataset, so that we can unblock integrating other functionalities. Note that loss-related metrics should be read with caution as this will cause overfit.
Update: moved to #92 because migrating to pytorch/ confused ghstack.