Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion recipes/constitutional-ai/sft/config_anthropic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 1
output_dir: data/mistral-7b-sft-constitutional-ai
Expand Down
2 changes: 1 addition & 1 deletion recipes/constitutional-ai/sft/config_grok.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 1
output_dir: data/mistral-7b-sft-constitutional-ai
Expand Down
2 changes: 1 addition & 1 deletion recipes/smollm/sft/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 1
output_dir: data/smollm-360M-instruct-new
Expand Down
2 changes: 1 addition & 1 deletion recipes/smollm2/sft/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 8192
max_length: 8192
max_steps: -1
num_train_epochs: 2
output_dir: data/smollm2-1.7B-sft
Expand Down
2 changes: 1 addition & 1 deletion recipes/smollm2/sft/config_smol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 8192
max_length: 8192
max_steps: -1
num_train_epochs: 2
output_dir: data/smollm2-360M-sft
Expand Down
2 changes: 1 addition & 1 deletion recipes/starchat2-15b/sft/config_v0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 3
output_dir: data/starchat2-15b-v0.1
Expand Down
2 changes: 1 addition & 1 deletion recipes/zephyr-7b-beta/sft/config_full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 1
output_dir: data/zephyr-7b-sft-full
Expand Down
2 changes: 1 addition & 1 deletion recipes/zephyr-7b-beta/sft/config_qlora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 1
output_dir: data/zephyr-7b-sft-qlora
Expand Down
2 changes: 1 addition & 1 deletion recipes/zephyr-7b-gemma/sft/config_full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 3
output_dir: data/zephyr-7b-gemma-sft
Expand Down
2 changes: 1 addition & 1 deletion scripts/sft.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
--learning_rate 2.0e-5 \
--num_train_epochs 1 \
--packing \
--max_seq_length 4096 \
--max_length 4096 \
--per_device_train_batch_size 2 \
--gradient_accumulation_steps 8 \
--gradient_checkpointing \
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/config_sft_full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ log_level: info
logging_steps: 5
logging_strategy: steps
lr_scheduler_type: cosine
max_seq_length: 2048
max_length: 2048
max_steps: -1
num_train_epochs: 1
output_dir: data/zephyr-7b-sft-full
Expand Down