mirror of
https://github.com/wassname/SimPO.git
synced 2026-09-09 11:15:56 +08:00
release
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# Model arguments
|
||||
model_name_or_path: /scratch/gpfs/DANQIC/ym0081/checkpoints_new/llama-3-8b-sft-full-lr-2e-5
|
||||
torch_dtype: null
|
||||
use_flash_attention_2: true
|
||||
|
||||
# Data training arguments
|
||||
dataset_mixer:
|
||||
HuggingFaceH4/ultrafeedback_binarized: 1.0
|
||||
dataset_splits:
|
||||
- train_prefs
|
||||
- test_prefs
|
||||
preprocessing_num_workers: 12
|
||||
|
||||
# SimPOTrainer arguments
|
||||
bf16: true
|
||||
beta: 2.0
|
||||
gamma: 1.0
|
||||
do_eval: true
|
||||
evaluation_strategy: steps
|
||||
eval_steps: 400
|
||||
gradient_accumulation_steps: 8
|
||||
gradient_checkpointing: true
|
||||
gradient_checkpointing_kwargs:
|
||||
use_reentrant: False
|
||||
hub_model_id: simpo-exps
|
||||
learning_rate: 6.0e-7
|
||||
log_level: info
|
||||
logging_steps: 5
|
||||
lr_scheduler_type: cosine
|
||||
max_length: 2048
|
||||
max_prompt_length: 1800
|
||||
num_train_epochs: 1
|
||||
optim: adamw_torch
|
||||
output_dir: /scratch/gpfs/DANQIC/ym0081/checkpoints_new/llama-3-8b-base-simpo
|
||||
run_name: llama-3-8b-base-simpo
|
||||
per_device_train_batch_size: 2
|
||||
per_device_eval_batch_size: 4
|
||||
push_to_hub: false
|
||||
save_strategy: "steps"
|
||||
save_steps: 1000000
|
||||
report_to:
|
||||
- wandb
|
||||
save_total_limit: 20
|
||||
seed: 42
|
||||
warmup_ratio: 0.1
|
||||
@@ -0,0 +1,45 @@
|
||||
# Model arguments
|
||||
model_name_or_path: /scratch/gpfs/DANQIC/ym0081/hf_cache/Meta-Llama-3-8B-Instruct
|
||||
torch_dtype: null
|
||||
use_flash_attention_2: true
|
||||
|
||||
# Data training arguments
|
||||
dataset_mixer:
|
||||
/scratch/gpfs/DANQIC/ym0081/hf_cache/llama3-ultrafeedback: 1.0
|
||||
dataset_splits:
|
||||
- train
|
||||
- test
|
||||
preprocessing_num_workers: 12
|
||||
|
||||
# SimPOTrainer arguments
|
||||
bf16: true
|
||||
beta: 2.5
|
||||
gamma: 1.4
|
||||
do_eval: true
|
||||
evaluation_strategy: steps
|
||||
eval_steps: 400
|
||||
gradient_accumulation_steps: 8
|
||||
gradient_checkpointing: true
|
||||
gradient_checkpointing_kwargs:
|
||||
use_reentrant: False
|
||||
hub_model_id: simpo-exps
|
||||
learning_rate: 1.0e-6
|
||||
log_level: info
|
||||
logging_steps: 5
|
||||
lr_scheduler_type: cosine
|
||||
max_length: 2048
|
||||
max_prompt_length: 1800
|
||||
num_train_epochs: 1
|
||||
optim: adamw_torch
|
||||
output_dir: /scratch/gpfs/DANQIC/ym0081/checkpoints_new/llama-3-8b-instruct-simpo
|
||||
run_name: llama-3-8b-instruct-simpo
|
||||
per_device_train_batch_size: 2
|
||||
per_device_eval_batch_size: 4
|
||||
push_to_hub: false
|
||||
save_strategy: "steps"
|
||||
save_steps: 1000000
|
||||
report_to:
|
||||
- wandb
|
||||
save_total_limit: 20
|
||||
seed: 42
|
||||
warmup_ratio: 0.1
|
||||
@@ -0,0 +1,45 @@
|
||||
# Model arguments
|
||||
model_name_or_path: alignment-handbook/zephyr-7b-sft-full
|
||||
torch_dtype: null
|
||||
use_flash_attention_2: true
|
||||
|
||||
# Data training arguments
|
||||
dataset_mixer:
|
||||
HuggingFaceH4/ultrafeedback_binarized: 1.0
|
||||
dataset_splits:
|
||||
- train_prefs
|
||||
- test_prefs
|
||||
preprocessing_num_workers: 12
|
||||
|
||||
# SimPOTrainer arguments
|
||||
bf16: true
|
||||
beta: 2.0
|
||||
gamma: 1.6
|
||||
do_eval: true
|
||||
evaluation_strategy: steps
|
||||
eval_steps: 400
|
||||
gradient_accumulation_steps: 8
|
||||
gradient_checkpointing: true
|
||||
gradient_checkpointing_kwargs:
|
||||
use_reentrant: False
|
||||
hub_model_id: simpo-exps
|
||||
learning_rate: 3.0e-7
|
||||
log_level: info
|
||||
logging_steps: 5
|
||||
lr_scheduler_type: cosine
|
||||
max_length: 1024
|
||||
max_prompt_length: 512
|
||||
num_train_epochs: 1
|
||||
optim: adamw_torch
|
||||
output_dir: /scratch/gpfs/DANQIC/ym0081/checkpoints_new/mistral-7b-base-simpo
|
||||
run_name: mistral-7b-base-simpo
|
||||
per_device_train_batch_size: 2
|
||||
per_device_eval_batch_size: 4
|
||||
push_to_hub: false
|
||||
save_strategy: "steps"
|
||||
save_steps: 1000000
|
||||
report_to:
|
||||
- wandb
|
||||
save_total_limit: 20
|
||||
seed: 42
|
||||
warmup_ratio: 0.1
|
||||
@@ -0,0 +1,45 @@
|
||||
# Model arguments
|
||||
model_name_or_path: /scratch/gpfs/DANQIC/ym0081/hf_cache/Mistral-7B-Instruct-v0.2
|
||||
torch_dtype: null
|
||||
use_flash_attention_2: true
|
||||
|
||||
# Data training arguments
|
||||
dataset_mixer:
|
||||
snorkelai/Snorkel-Mistral-PairRM-DPO-Dataset: 1.0
|
||||
dataset_splits:
|
||||
- train
|
||||
- test
|
||||
preprocessing_num_workers: 12
|
||||
|
||||
# SimPOTrainer arguments
|
||||
bf16: true
|
||||
beta: 2.5
|
||||
gamma: 0.3
|
||||
do_eval: true
|
||||
evaluation_strategy: steps
|
||||
eval_steps: 400
|
||||
gradient_accumulation_steps: 8
|
||||
gradient_checkpointing: true
|
||||
gradient_checkpointing_kwargs:
|
||||
use_reentrant: False
|
||||
hub_model_id: simpo-exps
|
||||
learning_rate: 5.0e-7
|
||||
log_level: info
|
||||
logging_steps: 5
|
||||
lr_scheduler_type: cosine
|
||||
max_length: 2048
|
||||
max_prompt_length: 1800
|
||||
num_train_epochs: 1
|
||||
optim: adamw_torch
|
||||
output_dir: /scratch/gpfs/DANQIC/ym0081/checkpoints_new/mistral-7b-instruct-simpo
|
||||
run_name: mistral-7b-instruct-simpo
|
||||
per_device_train_batch_size: 2
|
||||
per_device_eval_batch_size: 4
|
||||
push_to_hub: false
|
||||
save_strategy: "steps"
|
||||
save_steps: 1000000
|
||||
report_to:
|
||||
- wandb
|
||||
save_total_limit: 20
|
||||
seed: 42
|
||||
warmup_ratio: 0.1
|
||||
Reference in New Issue
Block a user