-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllama3_debug_fsdp.toml
More file actions
67 lines (54 loc) · 1.36 KB
/
llama3_debug_fsdp.toml
File metadata and controls
67 lines (54 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# torchtitan Config.toml
# NOTE: this toml config is a preset for 2x B200 GPUs.
[job]
dump_folder = "./outputs"
description = "Llama 3 Debug FSDP training"
[profiling]
enable_profiling = false
save_traces_folder = "profile_trace"
profile_freq = 100
[metrics]
log_freq = 10
enable_tensorboard = true
save_tb_folder = "tb"
[model]
name = "llama3"
flavor = "debugmodel"
tokenizer_path = "tokenizer.model"
# converters = ["float8"]
[optimizer]
name = "AdamW"
lr = 3e-4
eps = 1e-8
[lr_scheduler]
warmup_steps = 200 # lr scheduler warm up
[training]
local_batch_size = 2
seq_len = 2048
max_norm = 1.0 # grad norm clipping
steps = 1000
dataset = "c4_test"
compile = true
[parallelism]
data_parallel_replicate_degree = 1
data_parallel_shard_degree = -1
tensor_parallel_degree = 1
pipeline_parallel_degree = 1
context_parallel_degree = 1
[checkpoint]
enable_checkpoint = false
folder = "checkpoint"
interval = 500
last_save_model_only = true
export_dtype = "bfloat16"
async_mode = "disabled" # ["disabled", "async", "async_with_pinned_mem"]
[activation_checkpoint]
mode = "selective" # ["none", "selective", "full"]
selective_ac_option = "op" # "int" = ac every positive int layer or 'op', ac based on ops policy
[float8]
enable_fsdp_float8_all_gather = false
precompute_float8_dynamic_scale_for_fsdp = false
filter_fqns = ["output"]
[experimental]
enable_torchft = true
ft_group_size = 2