Files
8710794223 Configs for DPO; some repo organization (#183)
* init pr

* add script

* clean config folders

* organization

* up

* tokenizer fixes

* Fix dpo script tokenizer setup + minor fixes (#184)

* copy tokenizer setup

* minor fixes

---------

Co-authored-by: Hamish Ivison <[email protected]>
2024-07-10 10:22:55 -07:00

24 lines
753 B
YAML

# Note, the exact model was trained on TPUs in a different repo
# TODO adapt batch sizes to 16+ GPUs for more useful recipe
model_name_or_path: meta-llama/Llama-2-70b
model_revision: main
use_flash_attn: true
tokenizer_name: meta-llama/Llama-2-70b
use_slow_tokenizer: true
dataset_name: allenai/tulu-v2-sft-mixture
max_seq_length: 8192
preprocessing_num_workers: 128
per_device_train_batch_size: 1 # note, this is set up for 8 GPUs
gradient_accumulation_steps: 16 # effective batch size 128 for tulu 2
learning_rate: 1.0e-05
lr_scheduler_type: linear
warmup_ratio: 0.03
weight_decay: 0.0
num_train_epochs: 3
output_dir: output/tulu_v2_70b/
with_tracking: true
report_to:
- wandb
logging_steps: 1
checkpointing_steps: epoch
gradient_checkpointing: true