-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrain.toml
61 lines (53 loc) · 1.13 KB
/
train.toml
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
[model]
config = "configs/transformer_340M.json"
tokenizer_path = "fla-hub/transformer-1.3B-100B"
[job]
dump_folder = "exp"
print_args = true
[training]
batch_size = 32
seq_len = 2048
context_len = 2048
warmup_steps = 1024
gradient_accumulation_steps = 1
steps = 20480
max_norm = 1.0
skip_nan_inf = true
data_parallel_replicate_degree = 1
data_parallel_shard_degree = -1
tensor_parallel_degree = 1
compile = false
dataset = "HuggingFaceFW/fineweb-edu"
dataset_name = "default"
dataset_split = "train"
num_workers = 32
pin_memory = false
persistent_workers = false
prefetch_factor = 2
seed = 42
varlen = false
[optimizer]
name = "AdamW"
fused = true
lr = 3e-4
scheduler = 'wsd'
[checkpoint]
enable_checkpoint = true
folder = "checkpoint"
interval_type = "steps"
interval = 2048
model_weights_only = false
export_dtype = "float32"
async_mode = "disabled" # ["disabled", "async", "async_with_pinned_mem"]
[profiling]
enable_profiling = true
save_traces_folder = "profile_trace"
profile_freq = 512
[metrics]
log_freq = 32
enable_wandb = true
[experimental]
context_parallel_degree = 1
pipeline_parallel_degree = 1
[float8]
enable_float8_linear = false