-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chatglm: Add pretrain example and test
- Loading branch information
Showing
5 changed files
with
71 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
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,31 @@ | ||
{ | ||
"gaudi2": { | ||
"wikitext": { | ||
"num_train_epochs": 3, | ||
"eval_batch_size": 4, | ||
"distribution": { | ||
"deepspeed": { | ||
"learning_rate": 5e-5, | ||
"train_batch_size": 4, | ||
"perplexity": 16.51629, | ||
"train_runtime": 445, | ||
"train_samples_per_second": 18.216, | ||
"extra_arguments": [ | ||
"--dataset_name wikitext", | ||
"--dataset_config_name wikitext-2-raw-v1", | ||
"--block_size 1024", | ||
"--use_cache False", | ||
"--gradient_checkpointing", | ||
"--bf16", | ||
"--eval_strategy no", | ||
"--save_strategy no", | ||
"--throughput_warmup_steps 3", | ||
"--logging_first_step True", | ||
"--logging_steps 20", | ||
"--deepspeed tests/configs/deepspeed_zero_3_gaudi1.json" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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