-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add eval readme * modify readme * modify readme * doc * restory eval yaml * lint * Update scripts/train/yamls/pretrain/gpt-neo-125m_eval.yaml Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update scripts/eval/README.md Co-authored-by: Daniel King <[email protected]> * Update README.md --------- Co-authored-by: Daniel King <[email protected]>
- Loading branch information
Showing
2 changed files
with
212 additions
and
7 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,127 @@ | ||
# Pretrain a gpt-neo-125m style model | ||
# this is NOT a finetuning run | ||
|
||
data_local: ./my-copy-c4 | ||
data_remote: # If blank, files must be present in data_local | ||
tokenizer_name: EleutherAI/gpt-neo-125M | ||
max_seq_len: 2048 | ||
global_seed: 17 | ||
|
||
# Run Name | ||
run_name: # If left blank, will be read from env var $RUN_NAME | ||
|
||
# Model | ||
model: | ||
name: hf_causal_lm | ||
pretrained_model_name_or_path: EleutherAI/gpt-neo-125M | ||
config_overrides: | ||
# WARNING: if setting `pretrained: true`, `max_position_embeddings` must match the | ||
# `max_position_embeddings` used during pre-training | ||
max_position_embeddings: ${max_seq_len} | ||
pretrained: false # false: only use the architecture; true: initialize with pretrained weights | ||
|
||
# Tokenizer | ||
tokenizer: | ||
name: ${tokenizer_name} | ||
kwargs: | ||
model_max_length: ${max_seq_len} | ||
|
||
# Dataloaders | ||
train_loader: | ||
name: text | ||
dataset: | ||
local: ${data_local} | ||
remote: ${data_remote} | ||
split: train | ||
shuffle: true | ||
tokenizer_name: ${tokenizer_name} | ||
max_seq_len: ${max_seq_len} | ||
shuffle_seed: ${global_seed} | ||
drop_last: true | ||
num_workers: 8 | ||
|
||
eval_loader: | ||
name: text | ||
dataset: | ||
local: ${data_local} | ||
remote: ${data_remote} | ||
split: val | ||
shuffle: false | ||
tokenizer_name: ${tokenizer_name} | ||
max_seq_len: ${max_seq_len} | ||
shuffle_seed: ${global_seed} | ||
drop_last: false | ||
num_workers: 8 | ||
|
||
# Optimization | ||
scheduler: | ||
name: cosine_with_warmup | ||
t_warmup: 100ba | ||
alpha_f: 0.1 | ||
|
||
optimizer: | ||
name: decoupled_adamw | ||
lr: 6.0e-4 | ||
betas: | ||
- 0.9 | ||
- 0.95 | ||
eps: 1.0e-08 | ||
weight_decay: 0.0 | ||
|
||
algorithms: | ||
gradient_clipping: | ||
clipping_type: norm | ||
clipping_threshold: 1.0 | ||
|
||
max_duration: 4800ba # ~ 2.5B tokens | ||
eval_interval: 500ba | ||
eval_first: false | ||
eval_subset_num_batches: -1 | ||
global_train_batch_size: 256 | ||
|
||
# System | ||
seed: ${global_seed} | ||
device_eval_batch_size: 4 | ||
device_train_microbatch_size: 4 | ||
# device_train_microbatch_size: auto | ||
precision: amp_bf16 | ||
|
||
# FSDP | ||
fsdp_config: | ||
sharding_strategy: FULL_SHARD | ||
mixed_precision: PURE | ||
activation_checkpointing: false | ||
activation_checkpointing_reentrant: false | ||
activation_cpu_offload: false | ||
limit_all_gathers: true | ||
verbose: false | ||
|
||
# Logging | ||
progress_bar: false | ||
log_to_console: true | ||
console_log_interval: 1ba | ||
|
||
icl_tasks: eval/yamls/tasks.yaml # or use tasks_light.yaml | ||
icl_subset_num_batches: 2 # -1, or omit this key entirely, to evaluate on all batches | ||
eval_gauntlet: 'eval/yamls/eval_gauntlet.yaml' | ||
icl_seq_len: 1024 | ||
|
||
callbacks: | ||
speed_monitor: | ||
window_size: 10 | ||
lr_monitor: {} | ||
memory_monitor: {} | ||
runtime_estimator: {} | ||
|
||
# loggers: | ||
# wandb: {} | ||
|
||
# Checkpoint to local filesystem or remote object store | ||
# save_interval: 500ba | ||
# save_num_checkpoints_to_keep: 1 # Important, this cleans up checkpoints saved to DISK | ||
# save_folder: ./{run_name}/checkpoints | ||
# save_folder: s3://my-bucket/my-folder/{run_name}/checkpoints | ||
|
||
# Load from local filesystem or remote object store | ||
# load_path: ./gpt-125m/checkpoints/latest-rank{rank}.pt | ||
# load_path: s3://my-bucket/my-folder/gpt-125m/checkpoints/latest-rank{rank}.pt |