-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
1 parent
80ae1e2
commit d166194
Showing
9 changed files
with
82 additions
and
228 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
WANDB_PROJECT="finetune-Qwen2-1.5B" \ | ||
torchrun --nproc_per_node 4 \ | ||
-m train \ | ||
--model_name_or_path Qwen/Qwen2-1.5B \ | ||
--per_device_train_batch_size 4 \ | ||
--gradient_accumulation_steps 32 \ | ||
--output_dir finetune-qwen2 \ | ||
--bf16 \ | ||
--do_train \ | ||
--do_eval false \ | ||
--num_train_epochs 2 \ | ||
--train_file "/home/ubuntu/mosaic-qwen2-4096" \ | ||
--logging_steps 1 \ | ||
--learning_rate 2e-5 \ | ||
--block_size 4096 \ | ||
--save_steps 10 \ | ||
--save_total_limit 3 \ | ||
--gradient_checkpointing true \ | ||
--log_level "info" \ | ||
--torch_dtype "bfloat16" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
WANDB_PROJECT="nanot5-small-malaysian-cased-translation-v3" \ | ||
torchrun \ | ||
--nproc_per_node 4 \ | ||
-m run_t5_v2 \ | ||
--model_name_or_path mesolitica/nanot5-small-malaysian-cased \ | ||
--num_train_epochs 2 \ | ||
--eval_steps 1000000000 \ | ||
--logging_steps 2 \ | ||
--save_steps 1500 \ | ||
--save_total_limit 3 \ | ||
--do_train \ | ||
--train_file malaysian-translation \ | ||
--output_dir nanot5-small-malaysian-cased-translation-v3 \ | ||
--per_device_train_batch_size=12 \ | ||
--per_device_eval_batch_size=3 \ | ||
--gradient_accumulation_steps=2 \ | ||
--max_source_length 4096 \ | ||
--max_target_length 4096 \ | ||
--learning_rate 2e-4 \ | ||
--gradient_checkpointing true \ | ||
--bf16 |
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
Oops, something went wrong.