-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add SimPO loss * lint * whoops, simpo needs logp avging * first pass at WPO * lint * add dpo_norm as an option
- Loading branch information
Showing
4 changed files
with
157 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
model_name_or_path: /model | ||
model_revision: main | ||
use_flash_attn: true | ||
gradient_checkpointing: true | ||
tokenizer_name: /model | ||
use_slow_tokenizer: true | ||
dataset_name: princeton-nlp/llama3-ultrafeedback-armorm | ||
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 | ||
learning_rate: 5.0e-7 | ||
lr_scheduler_type: linear | ||
warmup_ratio: 0.1 | ||
weight_decay: 0.0 | ||
num_train_epochs: 1 | ||
output_dir: /output | ||
with_tracking: true | ||
report_to: | ||
- wandb | ||
logging_steps: 1 | ||
use_lora: false | ||
dpo_loss_type: simpo | ||
dpo_gamma_beta_ratio: 0.3 | ||
dpo_beta: 10 |
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