forked from bigcode-project/octopack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bigcode-project#7 from bigcode-project/santacoder-…
…fintune add santacoder fine-tuning
- Loading branch information
Showing
9 changed files
with
434 additions
and
2 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
deepspeed finetune.py \ | ||
--max_input_length 2000 \ | ||
--dataset_name bigcode/commits-pjj-2048 \ | ||
--max_steps 250000 \ | ||
--batch_size 2 \ | ||
--gradient_accumulation_steps 4 \ | ||
--learning_rate 5e-5 \ | ||
--num_warmup_steps 1000 \ | ||
--eval_freq 10000 \ | ||
--save_freq 10000 \ | ||
--log_freq 10 \ | ||
--num_workers 8 \ | ||
--bf16 \ | ||
--data_packing \ | ||
--compute_loss_on_input \ | ||
--line_diff \ | ||
--add_file_name \ | ||
--deepspeed zero_stage1_config.json \ | ||
--cache_dir .cache \ | ||
--output_dir santacoder_line_diff_format |
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,38 @@ | ||
{ | ||
"bf16": { | ||
"enabled": true | ||
}, | ||
"optimizer": { | ||
"type": "AdamW", | ||
"params": { | ||
"lr": "auto", | ||
"weight_decay": "auto", | ||
"torch_adam": true, | ||
"adam_w_mode": true | ||
} | ||
}, | ||
"scheduler": { | ||
"type": "WarmupDecayLR", | ||
"params": { | ||
"warmup_min_lr": "auto", | ||
"warmup_max_lr": "auto", | ||
"warmup_num_steps": "auto", | ||
"total_num_steps": "auto" | ||
} | ||
}, | ||
"zero_optimization": { | ||
"stage": 1, | ||
"allgather_partitions": true, | ||
"allgather_bucket_size": 2e8, | ||
"overlap_comm": true, | ||
"reduce_scatter": true, | ||
"reduce_bucket_size": "auto", | ||
"contiguous_gradients": true | ||
}, | ||
"gradient_accumulation_steps": "auto", | ||
"gradient_clipping": "auto", | ||
"steps_per_print": 2000, | ||
"train_batch_size": "auto", | ||
"train_micro_batch_size_per_gpu": "auto", | ||
"wall_clock_breakdown": false | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.