-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
33 additions
and
4 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
torchrun --nnodes=1 --nproc-per-node=4 training.py \ | ||
--model_name "google/gemma-7b-it" \ | ||
--bf16 \ | ||
--max_steps 20 \ | ||
--per_device_train_batch_size 24 \ | ||
--per_device_eval_batch_size 1 \ | ||
--eval_strategy "no" \ | ||
--save_strategy "no" \ | ||
--learning_rate 6e-6 \ | ||
--weight_decay 0.05 \ | ||
--warmup_ratio 0.1 \ | ||
--lr_scheduler_type "cosine" \ | ||
--logging_steps 1 \ | ||
--include_num_input_tokens_seen \ | ||
--report_to none \ | ||
--fsdp "full_shard auto_wrap" \ | ||
--fsdp_config config/fsdp_config.json \ | ||
--seed 42 \ | ||
--use_liger True \ | ||
--output_dir alpaca_finetuning |
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
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
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