-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary <!--- This is a required section; please describe the main purpose of this proposed code change. ---> Add gemma 7b it benchmark <!--- ## Details This is an optional section; is there anything specific that reviewers should be aware of? ---> Add gemma 7b it benchmark ## Testing Done <!--- This is a required section; please describe how this change was tested. ---> NA <!-- Replace BLANK with your device type. For example, A100-80G-PCIe Complete the following tasks before sending your PR, and replace `[ ]` with `[x]` to indicate you have done them. --> - Hardware Type: <BLANK> - [x] run `make test` to ensure correctness - [x] run `make checkstyle` to ensure code style - [x] run `make test-convergence` to ensure convergence --------- Co-authored-by: jaszhu <[email protected]>
- Loading branch information
1 parent
3c8d57a
commit 1129508
Showing
5 changed files
with
31 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
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