-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store configs, minor improvements to pref data mixer (#457)
* store configs * fix * clean up * deletions * rename
- Loading branch information
1 parent
22116c2
commit 1017c7c
Showing
8 changed files
with
119 additions
and
2 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,29 @@ | ||
tokenizer_name: allenai/OLMo-2-1124-13B-SFT | ||
use_flash_attn: true | ||
gradient_checkpointing: true | ||
dataset_mixer: | ||
allenai/olmo-2-1124-13b-preference-mix: 1.0 | ||
tokenizer_name: allenai/OLMo-2-1124-13B-SFT | ||
use_slow_tokenizer: true | ||
max_seq_length: 2048 | ||
preprocessing_num_workers: 16 | ||
per_device_train_batch_size: 1 | ||
# gradient_accumulation_steps: 16 # designed for 8 GPUs, so batch size 128 | ||
gradient_accumulation_steps: 4 # designed for 32 GPUs, so batch size 128 | ||
learning_rate: 5.0e-7 | ||
lr_scheduler_type: linear | ||
warmup_ratio: 0.1 | ||
weight_decay: 0.0 | ||
num_train_epochs: 1 | ||
output_dir: output/dpo_7b | ||
with_tracking: true | ||
report_to: | ||
- wandb | ||
logging_steps: 1 | ||
use_lora: false | ||
dpo_loss_type: dpo_norm | ||
dpo_beta: 5 | ||
checkpointing_steps: 1000 | ||
hf_metadata_dataset: allenai/olmo-instruct-evals | ||
add_bos: true | ||
seed: 1234 |
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,26 @@ | ||
model_name_or_path: allenai/OLMo-2-1124-13B | ||
use_flash_attn: true | ||
tokenizer_name: allenai/OLMo-2-1124-13B | ||
use_slow_tokenizer: true | ||
dataset_mixer: | ||
allenai/tulu-3-sft-olmo-2-mixture: 1.0 | ||
|
||
max_seq_length: 4096 | ||
preprocessing_num_workers: 128 | ||
per_device_train_batch_size: 1 # note, this is set up for 8 GPUs | ||
gradient_accumulation_steps: 4 # effective batch size 128 with 4 nodes | ||
learning_rate: 6e-06 | ||
lr_scheduler_type: linear | ||
warmup_ratio: 0.03 | ||
weight_decay: 0.0 | ||
num_train_epochs: 2 | ||
output_dir: /output/ | ||
with_tracking: true | ||
report_to: | ||
- wandb | ||
logging_steps: 1 | ||
reduce_loss: sum | ||
checkpointing_steps: epoch | ||
dataset_mix_dir: /output/ | ||
hf_metadata_dataset: allenai/olmo-instruct-evals | ||
add_bos: true |
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,28 @@ | ||
model_name_or_path: allenai/OLMo-2-1124-7B-SFT | ||
use_flash_attn: true | ||
gradient_checkpointing: true | ||
dataset_mixer: | ||
allenai/olmo-2-1124-13b-preference-mix: 1.0 | ||
tokenizer_name: allenai/OLMo-2-1124-7B-SFT | ||
use_slow_tokenizer: true | ||
max_seq_length: 2048 | ||
preprocessing_num_workers: 16 | ||
per_device_train_batch_size: 1 | ||
# gradient_accumulation_steps: 16 # designed for 8 GPUs, so batch size 128 | ||
gradient_accumulation_steps: 4 # designed for 32 GPUs, so batch size 128 | ||
learning_rate: 5.0e-7 | ||
lr_scheduler_type: linear | ||
warmup_ratio: 0.1 | ||
weight_decay: 0.0 | ||
num_train_epochs: 1 | ||
output_dir: output/dpo_7b | ||
with_tracking: true | ||
report_to: | ||
- wandb | ||
logging_steps: 1 | ||
use_lora: false | ||
dpo_loss_type: dpo_norm | ||
dpo_beta: 5 | ||
checkpointing_steps: 1000 | ||
hf_metadata_dataset: allenai/olmo-instruct-evals | ||
add_bos: true |
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,26 @@ | ||
model_name_or_path: allenai/OLMo-2-1124-7B | ||
use_flash_attn: true | ||
tokenizer_name: allenai/OLMo-2-1124-7B | ||
use_slow_tokenizer: true | ||
dataset_mixer: | ||
allenai/tulu-3-sft-olmo-2-mixture: 1.0 | ||
|
||
max_seq_length: 4096 | ||
preprocessing_num_workers: 128 | ||
per_device_train_batch_size: 1 # note, this is set up for 8 GPUs | ||
gradient_accumulation_steps: 4 # effective batch size 128 with 4 nodes | ||
learning_rate: 1.0e-05 | ||
lr_scheduler_type: linear | ||
warmup_ratio: 0.03 | ||
weight_decay: 0.0 | ||
num_train_epochs: 2 | ||
output_dir: /output/ | ||
with_tracking: true | ||
report_to: | ||
- wandb | ||
logging_steps: 1 | ||
reduce_loss: sum | ||
checkpointing_steps: epoch | ||
dataset_mix_dir: /output/ | ||
hf_metadata_dataset: allenai/olmo-instruct-evals | ||
add_bos: true |
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