-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add tools/prepare_cache.py for offline GPT dataset cache preparation #4080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ffa6f40
first commit
asolergi-nv 70c2101
autoformat
asolergi-nv b4fac4a
add docs
asolergi-nv 946620f
typing
asolergi-nv d72afb6
Merge branch 'main' into prepare_cache
asolergi-nv 856d91d
Fix tests
asolergi-nv c87feda
Merge branch 'main' into prepare_cache
asolergi-nv 2cd79f9
Now
asolergi-nv 63c7709
Merge branch 'main' into prepare_cache
asolergi-nv 65d0fdf
Merge branch 'main' into prepare_cache
asolergi-nv cd5f76d
Fix unguarded torch.distributed.get_rank() in BlendedDataset
asolergi-nv 1339588
Merge branch 'main' into prepare_cache
asolergi-nv e3af445
Merge branch 'main' into prepare_cache
asolergi-nv c55638a
Merge remote-tracking branch 'autoformatter-remote/main' into prepare…
asolergi-nv dbcfedb
Merge remote-tracking branch 'origin/prepare_cache' into prepare_cache
asolergi-nv a29cc4a
Address PR #4080 feedback: support --train-samples in prepare_cache
asolergi-nv c1641a7
Merge branch 'main' into prepare_cache
asolergi-nv bc680ff
fix
asolergi-nv ec3cb71
Merge branch 'main' into prepare_cache
asolergi-nv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need
and torch.distributed.get_rank() == 0when we're already usinglog_single_rank?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're overlooking the following lines of code. Could you expand them and take a look? I'm just adding the
torch.distributed.is_initialized()check for protection.