-
Notifications
You must be signed in to change notification settings - Fork 35
Setup tokenized pile dataset #371
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
5 commits
Select commit
Hold shift + click to select a range
07fcb66
Setup tokenized pile dataset
danbraunai-goodfire 3c79f39
Update spd pile config
danbraunai-goodfire 53838b3
Update configs
danbraunai-goodfire c4eddcd
Update docs for datset n_ctx
danbraunai-goodfire 7334df5
Add temp streaming=True for pile config
danbraunai-goodfire 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| wandb_project: spd | ||
| dtype: bfloat16 | ||
| batch_size: 1024 | ||
| num_iterations: 100_000 | ||
| warmup_iters: 600 | ||
| learning_rate: 3e-4 | ||
| learning_rate_decay_frac: 0.1 | ||
| weight_decay: 0.1 | ||
| grad_clip: 1.0 | ||
| val_loss_every: 1000 | ||
| val_max_steps: 20 | ||
| sample_every: 1000 | ||
| intermediate_checkpoints: false | ||
|
|
||
| model: | ||
| model_type: LlamaSimpleMLP | ||
| block_size: 512 | ||
| vocab_size: 4019 | ||
| n_layer: 2 | ||
| n_head: 4 | ||
| n_embd: 128 | ||
| n_intermediate: 512 # 128 * 4 | ||
| rotary_dim: 32 # 128 // 4 | ||
| n_ctx: 512 | ||
| n_key_value_heads: 2 | ||
| flash_attention: false | ||
|
|
||
| train_dataset_config: | ||
| name: danbraunai/pile-uncopyrighted-tok | ||
| is_tokenized: true | ||
| hf_tokenizer_path: EleutherAI/gpt-neox-20b | ||
| split: train | ||
| streaming: false | ||
| n_ctx: 513 # model n_ctx + 1 for next-token label indexing | ||
| seed: 0 | ||
| column_name: input_ids | ||
|
|
||
| val_dataset_config: | ||
| name: danbraunai/pile-uncopyrighted-tok | ||
| is_tokenized: true | ||
| hf_tokenizer_path: EleutherAI/gpt-neox-20b | ||
| split: val | ||
| streaming: false | ||
| n_ctx: 513 # model n_ctx + 1 for next-token label indexing | ||
| seed: 0 | ||
| column_name: input_ids |
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
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
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.
we're just throwing out a bunch of data in this case, right? seems like instead maybe we should just assert
dataset_config.n_ctx == tokenized_len. Do we imagine ever not doing that? and if we do then cropping examples doesn't seem the best way, or at least a potential footgunThere 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.
Yeah in SPD we use max_seq_len=512, so we just throw out one token. We could show that it's within 1 of the tokenized_len. But it also might be useful for random sampling of the tokenized dataset.