generated from ApolloResearch/sample
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major refactor (inc adding Pydantic) (#16)
* Ignore ruff forward annotation warning * Use pydantic and split up train script * Add .env to .gitignore * Add default d12 config * Fix validation * Add dotenv for wandb * Allow for cli override args and fix ddp * Add warning about cpu runs --------- Co-authored-by: Dan Braun <dan@apolloresearch.ai>
- Loading branch information
1 parent
7bd136e
commit a088f43
Showing
15 changed files
with
920 additions
and
859 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
WANDB_ENTITY= | ||
WANDB_API_KEY= |
This file contains 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.env | ||
**/out/ | ||
tinyshakespeare/ | ||
gpt2_tokenizer.bin | ||
|
||
|
This file contains 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 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 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 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,29 @@ | ||
wandb_project: simple-stories | ||
train_dataset_config: | ||
name: lennart-finke/SimpleStories | ||
is_tokenized: false | ||
tokenizer_file_path: simple_stories_train/tokenizer/stories-3072.json | ||
split: train | ||
n_ctx: 1024 | ||
seed: 0 | ||
column_name: story | ||
val_dataset_config: | ||
name: lennart-finke/SimpleStories | ||
is_tokenized: false | ||
tokenizer_file_path: simple_stories_train/tokenizer/stories-3072.json | ||
split: test | ||
n_ctx: 1024 | ||
seed: 0 | ||
column_name: story | ||
model_name: d12 | ||
batch_size: 32 | ||
total_batch_size: 32768 | ||
num_iterations: 1000 | ||
learning_rate: 1e-4 | ||
warmup_iters: 10 | ||
learning_rate_decay_frac: 1.0 | ||
weight_decay: 0.1 | ||
grad_clip: 1.0 | ||
val_loss_every: 0 | ||
val_max_steps: 20 | ||
sample_every: 100 |
This file contains 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.