-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support of DDP and CompiledAutograd.
ghstack-source-id: f4b9c10f8dc61f5640176f25213bbcd0fbe6ce97 Pull Request resolved: #319
- Loading branch information
Showing
5 changed files
with
150 additions
and
36 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
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,40 @@ | ||
# TorchTrain Config.toml | ||
[job] | ||
dump_folder = "./outputs" | ||
description = "LLaMA 1B training" | ||
|
||
[profiling] | ||
enable_profiling = true | ||
save_traces_folder = "profile_trace" | ||
profile_freq = 100 | ||
|
||
[metrics] | ||
log_freq = 10 | ||
enable_tensorboard = true | ||
save_tb_folder = "tb" | ||
|
||
[model] | ||
name = "llama2" | ||
flavor = "1B" | ||
norm_type = "fused_rmsnorm" # [layernorm / np_layernorm / rmsnorm / fused_rmsnorm] | ||
tokenizer_path = "./torchtitan/datasets/tokenizer/tokenizer.model" | ||
|
||
[optimizer] | ||
name = "AdamW" | ||
lr = 1.5e-4 | ||
|
||
[training] | ||
batch_size = 8 | ||
seq_len = 1024 | ||
warmup_steps = 200 # lr scheduler warm up | ||
max_norm = 1.0 # grad norm clipping | ||
steps = 1000 | ||
data_parallel_degree = -1 | ||
tensor_parallel_degree = 1 | ||
pipeline_parallel_degree = 1 | ||
fp8_linear = "" | ||
compile = false | ||
dataset = "c4" | ||
|
||
[activation_checkpoint] | ||
mode = "none" # ['none', 'full', 'selective'] |