-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #738 from allenai/annealing_peteish_v2_neweval
Annealing configs
- Loading branch information
Showing
69 changed files
with
34,897 additions
and
10 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
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,206 @@ | ||
run_name: OLMo-7B | ||
seed: 6198 | ||
dry_run: false | ||
|
||
wandb: | ||
name: ${run_name} | ||
project: olmo-medium | ||
group: OLMo-7B-annealing # TODO: change to what you like | ||
|
||
model: | ||
d_model: 4096 | ||
n_heads: 32 | ||
n_layers: 32 | ||
mlp_hidden_size: 22016 | ||
weight_tying: false | ||
alibi: false | ||
rope: true | ||
flash_attention: true | ||
attention_dropout: 0.0 | ||
attention_layer_norm: false | ||
multi_query_attention: false | ||
include_bias: false | ||
block_type: sequential | ||
layer_norm_type: default | ||
layer_norm_with_affine: false | ||
bias_for_layer_norm: false | ||
attention_layer_norm_with_affine: false | ||
activation_type: swiglu | ||
residual_dropout: 0.0 | ||
embedding_dropout: 0.0 | ||
max_sequence_length: 2048 | ||
vocab_size: 50280 | ||
embedding_size: 50304 | ||
eos_token_id: 50279 | ||
pad_token_id: 1 | ||
init_device: meta | ||
init_fn: mitchell | ||
|
||
compile: | ||
fullgraph: false | ||
|
||
optimizer: | ||
name: adamw | ||
learning_rate: 3.0e-4 # TODO: change to your peak learning | ||
weight_decay: 0.1 | ||
betas: | ||
- 0.9 | ||
- 0.95 | ||
metrics_log_interval: 10 | ||
|
||
scheduler: # TODO: change to what you want | ||
name: linear_with_warmup | ||
t_warmup: 100 | ||
alpha_f: 0.1 | ||
|
||
tokenizer: | ||
identifier: tokenizers/allenai_eleuther-ai-gpt-neox-20b-pii-special.json | ||
truncate_direction: right | ||
|
||
save_folder: runs/${run_name} | ||
remote_save_folder: s3://ai2-llm/checkpoints/oe-data-annealing/${run_name} | ||
save_overwrite: true | ||
# Sharded checkpoints (best for restarts) | ||
save_interval: 500 | ||
save_num_checkpoints_to_keep: -1 | ||
# Unsharded checkpoints (for final storage) | ||
save_interval_unsharded: null | ||
save_num_unsharded_checkpoints_to_keep: -1 | ||
|
||
restore_dataloader: false # TODO: this should only be 'false' initially | ||
|
||
load_path: /net/nfs/allennlp/llm-checkpoints/step551000-unsharded #TODO: change this | ||
|
||
max_duration: null | ||
global_train_batch_size: 2048 # TODO: adjust as needed | ||
device_train_microbatch_size: 2 # TODO: adjust as needed | ||
time_limit: null | ||
|
||
precision: amp_bf16 | ||
|
||
fsdp: | ||
wrapping_strategy: by_block | ||
precision: mixed | ||
|
||
max_grad_norm: 1.0 | ||
max_grad_norm_ratio: null | ||
|
||
speed_monitor: | ||
window_size: 1 | ||
|
||
eval_interval: ${save_interval} | ||
eval_subset_num_batches: -1 | ||
device_eval_batch_size: ${device_train_microbatch_size} | ||
evaluators: | ||
- label: v3-small-ppl-validation | ||
data: | ||
num_workers: 0 | ||
drop_last: true | ||
datasets: | ||
v3-small-c4_en-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/c4_en/val/part-0-00000.npy | ||
v3-small-dolma_books-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/dolma_books/val/part-0-00000.npy | ||
v3-small-dolma_common-crawl-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/dolma_common-crawl/val/part-0-00000.npy | ||
v3-small-dolma_pes2o-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/dolma_pes2o/val/part-0-00000.npy | ||
v3-small-dolma_reddit-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/dolma_reddit/val/part-0-00000.npy | ||
v3-small-dolma_stack-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/dolma_stack/val/part-0-00000.npy | ||
v3-small-dolma_wiki-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/dolma_wiki/val/part-0-00000.npy | ||
v3-small-ice-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/ice/val/part-0-00000.npy | ||
v3-small-m2d2_s2orc-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/m2d2_s2orc/val/part-0-00000.npy | ||
v3-small-pile-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/pile/val/part-0-00000.npy | ||
v3-small-wikitext_103-validation: | ||
- r2://olmo-data/eval-data/perplexity/v3_small_gptneox20b/wikitext_103/val/part-0-00000.npy | ||
|
||
- label: v2-small-ppl-validation | ||
data: | ||
num_workers: 0 | ||
drop_last: true | ||
datasets: | ||
v2-small-4chan-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/4chan/val.npy | ||
v2-small-c4_100_domains-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/c4_100_domains/val.npy | ||
v2-small-c4_en-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/c4_en/val.npy | ||
v2-small-gab-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/gab/val.npy | ||
v2-small-ice-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/ice/val.npy | ||
v2-small-m2d2_s2orc-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/m2d2_s2orc/val.npy | ||
v2-small-m2d2_wiki-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/m2d2_wiki/val.npy | ||
v2-small-manosphere-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/manosphere/val.npy | ||
v2-small-mc4_en-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/mc4_en/val.npy | ||
v2-small-pile-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/pile/val.npy | ||
v2-small-ptb-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/ptb/val.npy | ||
v2-small-twitterAEE-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/twitterAEE/val.npy | ||
v2-small-wikitext_103-validation: | ||
- r2://olmo-data/eval-data/perplexity/v2_small_gptneox20b/wikitext_103/val.npy | ||
|
||
########################## | ||
# Downstream evaluations # | ||
########################## | ||
- label: piqa | ||
type: downstream | ||
|
||
- label: hellaswag | ||
type: downstream | ||
|
||
- label: winogrande | ||
type: downstream | ||
|
||
- label: openbook_qa | ||
type: downstream | ||
|
||
# - label: boolq # requires implemention of the pmi_dc matrix | ||
# type: downstream | ||
|
||
- label: sciq | ||
type: downstream | ||
|
||
- label: arc_easy | ||
type: downstream | ||
|
||
# - label: arc_challenge # requires implemention of the pmi_dc matrix | ||
# type: downstream | ||
|
||
- label: copa | ||
type: downstream | ||
|
||
- label: rte | ||
type: downstream | ||
|
||
- label: commitment_bank | ||
type: downstream | ||
|
||
- label: mrpc | ||
type: downstream | ||
|
||
- label: sst2 | ||
type: downstream | ||
|
||
data: | ||
pad_direction: right | ||
num_workers: 8 | ||
drop_last: true | ||
pin_memory: true | ||
prefetch_factor: 2 | ||
persistent_workers: true | ||
timeout: 0 | ||
paths: | ||
- s3://ai2-llm/data/... # TODO: update these paths |
Oops, something went wrong.