-
Notifications
You must be signed in to change notification settings - Fork 300
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: b2ebd1394a28bb11756ac4fbe0e23368bf6a1864 Pull Request resolved: #319
- Loading branch information
Showing
5 changed files
with
146 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,41 @@ | ||
# 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 | ||
data_parallel_replicate_degree = 8 # experim | ||
tensor_parallel_degree = 1 | ||
pipeline_parallel_degree = 1 | ||
fp8_linear = "" | ||
compile = true | ||
dataset = "c4" | ||
|
||
[activation_checkpoint] | ||
mode = "none" # ['none', 'full', 'selective'] |