-
Notifications
You must be signed in to change notification settings - Fork 252
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. ---> This PR adds qwen2 7b benchmarks <!--- ## Details This is an optional section; is there anything specific that reviewers should be aware of? ---> ## Testing Done <!--- This is a required section; please describe how this change was tested. ---> <!-- 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: A100-80G-PCIe - [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: shisahni <[email protected]>
- Loading branch information
Showing
8 changed files
with
36 additions
and
6 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
File renamed without changes
File renamed without changes
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.
File renamed without changes.
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 "Qwen/Qwen2-7B" \ | ||
--bf16 \ | ||
--num_train_epochs 1 \ | ||
--per_device_train_batch_size 48 \ | ||
--per_device_eval_batch_size 64 \ | ||
--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 False \ | ||
--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