This commit is contained in:
Lewis Tunstall
2023-11-10 11:15:45 +00:00
parent 551f901f95
commit edf67d1d93
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ The Alignment Handbook aims to fill that gap by providing the community with a s
## News 🗞️
* November 10, 2023: We release all the training code to replicate Zephyr 7B 🪁!
* November 10, 2023: We release all the training code to replicate Zephyr-7b-β 🪁!
## Links 🔗
+1 -1
View File
@@ -2,7 +2,7 @@
model_name_or_path: alignment-handbook/zephyr-7b-sft-lora
torch_dtype: auto
# LORA
# LoRA arguments
use_peft: true
lora_r: 64
lora_alpha: 16
+1 -1
View File
@@ -32,7 +32,7 @@ output_dir: data/zephyr-7b-sft-full
overwrite_output_dir: true
per_device_eval_batch_size: 16
per_device_train_batch_size: 32
push_to_hub: True
push_to_hub: true
remove_unused_columns: true
report_to:
- tensorboard
+1 -1
View File
@@ -44,7 +44,7 @@ output_dir: data/zephyr-7b-sft-lora
overwrite_output_dir: true
per_device_eval_batch_size: 8
per_device_train_batch_size: 4
push_to_hub: True
push_to_hub: true
report_to:
- tensorboard
save_strategy: "no"
+1 -1
View File
@@ -32,7 +32,7 @@ ACCELERATE_LOG_LEVEL=info accelerate launch --config_file recipes/accelerate_con
ACCELERATE_LOG_LEVEL=info accelerate launch --config_file recipes/accelerate_configs/deepspeed_zero3.yaml scripts/run_dpo.py recipes/zephyr-7b-beta/dpo/config_full.yaml
```
** 💡 Tip:** If you scale the up/down the number of GPUs, we recommend also scaling up the per-device batch size or number of gradient accumulation steps to keep the global batch size constant (and thus replicate our results).
** 💡 Tip:** If you scale up/down the number of GPUs, we recommend also scaling up the per-device batch size or number of gradient accumulation steps to keep the global batch size constant (and thus replicate our results).
By default, these scripts will push each model to your Hugging Face Hub username, i.e. `{username}/{model_name}-{task}`. You can override the parameters in each YAML config by appending them to the command as follows:
+1 -1
View File
@@ -32,7 +32,7 @@ output_dir: data/zephyr-7b-sft-full
overwrite_output_dir: true
per_device_eval_batch_size: 16
per_device_train_batch_size: 32
push_to_hub: True
push_to_hub: true
remove_unused_columns: true
report_to:
- tensorboard