Siyuc commited on
Commit
f458aed
·
verified ·
1 Parent(s): e1d914a

Add vanilla 476M 7B final model weights and configurations (step 26703)

Browse files
20260916-204226_vanilla_476m_7b/config.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "execution_architecture": "full_bandwidth",
3
+ "backbone_profile": "paper2604_vanilla",
4
+ "objective": "one_pass_causal_lm",
5
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
6
+ "width_scale": 22,
7
+ "hidden_size": 1408,
8
+ "num_layers": 20,
9
+ "head_dim": 128,
10
+ "num_attention_heads": 11,
11
+ "num_kv_heads": 11,
12
+ "ffn_hidden_size": 5632,
13
+ "activation": "squared_relu",
14
+ "attention": "full_causal",
15
+ "attention_output_gate": false,
16
+ "qk_norm": "functional_rmsnorm_after_rope",
17
+ "norm_epsilon": 1e-06,
18
+ "model_level_norms": [
19
+ "embedding",
20
+ "recur",
21
+ "final"
22
+ ],
23
+ "rope_base": 10000,
24
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
25
+ "bias": false,
26
+ "dropout": 0.0,
27
+ "residual_multiplier": 1.0,
28
+ "residual_and_norm_scale_dtype": "float32",
29
+ "projection_dtype": "bfloat16 (production)",
30
+ "tied_embeddings": false,
31
+ "vocab_size": 32001,
32
+ "padded_vocab_size": 32064,
33
+ "logit_softcap": 15.0,
34
+ "crop_padding_before_loss": true,
35
+ "train_passes": 1,
36
+ "eval_passes": 1,
37
+ "initialization": {
38
+ "embedding_normal_std": 1.0,
39
+ "head_normal_std": 0.001,
40
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
41
+ "norm_scale": 1.0
42
+ },
43
+ "parameter_counts": {
44
+ "non_embedding_matrix_formula": 475791360,
45
+ "non_embedding_paper_N": 475851904,
46
+ "total_trainable": 566144128,
47
+ "feedback_parameters": 0
48
+ },
49
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
50
+ "feedback_enabled": false,
51
+ "feedback_pass_mixture": {
52
+ "1": 1.0
53
+ },
54
+ "feedback_progressive_stages": [],
55
+ "checkpoint_format": "safetensors_native_megatron_state_dict",
56
+ "checkpoint_iteration": 26703,
57
+ "checkpoint_version": 3.0,
58
+ "training_run": "20260916-204226_vanilla_476m_7b",
59
+ "training_code_revision": "a57216c3768aebd1226a30fa573b09530a9537f2",
60
+ "training_tokens": 7000031232,
61
+ "tensor_parallel_size": 1,
62
+ "pipeline_parallel_size": 1,
63
+ "sequence_length": 2048,
64
+ "non_tensor_state_dict_entries": {
65
+ "decoder.layers.0.self_attention.linear_proj._extra_state": null,
66
+ "decoder.layers.0.self_attention.linear_qkv._extra_state": null,
67
+ "decoder.layers.0.mlp.linear_fc1._extra_state": null,
68
+ "decoder.layers.0.mlp.linear_fc2._extra_state": null,
69
+ "decoder.layers.1.self_attention.linear_proj._extra_state": null,
70
+ "decoder.layers.1.self_attention.linear_qkv._extra_state": null,
71
+ "decoder.layers.1.mlp.linear_fc1._extra_state": null,
72
+ "decoder.layers.1.mlp.linear_fc2._extra_state": null,
73
+ "decoder.layers.2.self_attention.linear_proj._extra_state": null,
74
+ "decoder.layers.2.self_attention.linear_qkv._extra_state": null,
75
+ "decoder.layers.2.mlp.linear_fc1._extra_state": null,
76
+ "decoder.layers.2.mlp.linear_fc2._extra_state": null,
77
+ "decoder.layers.3.self_attention.linear_proj._extra_state": null,
78
+ "decoder.layers.3.self_attention.linear_qkv._extra_state": null,
79
+ "decoder.layers.3.mlp.linear_fc1._extra_state": null,
80
+ "decoder.layers.3.mlp.linear_fc2._extra_state": null,
81
+ "decoder.layers.4.self_attention.linear_proj._extra_state": null,
82
+ "decoder.layers.4.self_attention.linear_qkv._extra_state": null,
83
+ "decoder.layers.4.mlp.linear_fc1._extra_state": null,
84
+ "decoder.layers.4.mlp.linear_fc2._extra_state": null,
85
+ "decoder.layers.5.self_attention.linear_proj._extra_state": null,
86
+ "decoder.layers.5.self_attention.linear_qkv._extra_state": null,
87
+ "decoder.layers.5.mlp.linear_fc1._extra_state": null,
88
+ "decoder.layers.5.mlp.linear_fc2._extra_state": null,
89
+ "decoder.layers.6.self_attention.linear_proj._extra_state": null,
90
+ "decoder.layers.6.self_attention.linear_qkv._extra_state": null,
91
+ "decoder.layers.6.mlp.linear_fc1._extra_state": null,
92
+ "decoder.layers.6.mlp.linear_fc2._extra_state": null,
93
+ "decoder.layers.7.self_attention.linear_proj._extra_state": null,
94
+ "decoder.layers.7.self_attention.linear_qkv._extra_state": null,
95
+ "decoder.layers.7.mlp.linear_fc1._extra_state": null,
96
+ "decoder.layers.7.mlp.linear_fc2._extra_state": null,
97
+ "decoder.layers.8.self_attention.linear_proj._extra_state": null,
98
+ "decoder.layers.8.self_attention.linear_qkv._extra_state": null,
99
+ "decoder.layers.8.mlp.linear_fc1._extra_state": null,
100
+ "decoder.layers.8.mlp.linear_fc2._extra_state": null,
101
+ "decoder.layers.9.self_attention.linear_proj._extra_state": null,
102
+ "decoder.layers.9.self_attention.linear_qkv._extra_state": null,
103
+ "decoder.layers.9.mlp.linear_fc1._extra_state": null,
104
+ "decoder.layers.9.mlp.linear_fc2._extra_state": null,
105
+ "decoder.layers.10.self_attention.linear_proj._extra_state": null,
106
+ "decoder.layers.10.self_attention.linear_qkv._extra_state": null,
107
+ "decoder.layers.10.mlp.linear_fc1._extra_state": null,
108
+ "decoder.layers.10.mlp.linear_fc2._extra_state": null,
109
+ "decoder.layers.11.self_attention.linear_proj._extra_state": null,
110
+ "decoder.layers.11.self_attention.linear_qkv._extra_state": null,
111
+ "decoder.layers.11.mlp.linear_fc1._extra_state": null,
112
+ "decoder.layers.11.mlp.linear_fc2._extra_state": null,
113
+ "decoder.layers.12.self_attention.linear_proj._extra_state": null,
114
+ "decoder.layers.12.self_attention.linear_qkv._extra_state": null,
115
+ "decoder.layers.12.mlp.linear_fc1._extra_state": null,
116
+ "decoder.layers.12.mlp.linear_fc2._extra_state": null,
117
+ "decoder.layers.13.self_attention.linear_proj._extra_state": null,
118
+ "decoder.layers.13.self_attention.linear_qkv._extra_state": null,
119
+ "decoder.layers.13.mlp.linear_fc1._extra_state": null,
120
+ "decoder.layers.13.mlp.linear_fc2._extra_state": null,
121
+ "decoder.layers.14.self_attention.linear_proj._extra_state": null,
122
+ "decoder.layers.14.self_attention.linear_qkv._extra_state": null,
123
+ "decoder.layers.14.mlp.linear_fc1._extra_state": null,
124
+ "decoder.layers.14.mlp.linear_fc2._extra_state": null,
125
+ "decoder.layers.15.self_attention.linear_proj._extra_state": null,
126
+ "decoder.layers.15.self_attention.linear_qkv._extra_state": null,
127
+ "decoder.layers.15.mlp.linear_fc1._extra_state": null,
128
+ "decoder.layers.15.mlp.linear_fc2._extra_state": null,
129
+ "decoder.layers.16.self_attention.linear_proj._extra_state": null,
130
+ "decoder.layers.16.self_attention.linear_qkv._extra_state": null,
131
+ "decoder.layers.16.mlp.linear_fc1._extra_state": null,
132
+ "decoder.layers.16.mlp.linear_fc2._extra_state": null,
133
+ "decoder.layers.17.self_attention.linear_proj._extra_state": null,
134
+ "decoder.layers.17.self_attention.linear_qkv._extra_state": null,
135
+ "decoder.layers.17.mlp.linear_fc1._extra_state": null,
136
+ "decoder.layers.17.mlp.linear_fc2._extra_state": null,
137
+ "decoder.layers.18.self_attention.linear_proj._extra_state": null,
138
+ "decoder.layers.18.self_attention.linear_qkv._extra_state": null,
139
+ "decoder.layers.18.mlp.linear_fc1._extra_state": null,
140
+ "decoder.layers.18.mlp.linear_fc2._extra_state": null,
141
+ "decoder.layers.19.self_attention.linear_proj._extra_state": null,
142
+ "decoder.layers.19.self_attention.linear_qkv._extra_state": null,
143
+ "decoder.layers.19.mlp.linear_fc1._extra_state": null,
144
+ "decoder.layers.19.mlp.linear_fc2._extra_state": null,
145
+ "output_layer._extra_state": null
146
+ },
147
+ "loading_note": "Native loopTF FullBandwidthMegatronModel state_dict names, not a Transformers AutoModel export. Load safetensors tensors, restore the null extra-state entries listed here, then load_state_dict into the matching model/profile. Optimizer, scheduler and RNG state are excluded.",
148
+ "tokenizer": {
149
+ "repo_id": "NousResearch/Llama-2-7b-hf",
150
+ "revision": "8efe6c9b93655b934e27bd9981e3ec13e55aee9d",
151
+ "additional_token": "<|assistant_end|>",
152
+ "active_vocab_size": 32001
153
+ }
154
+ }
20260916-204226_vanilla_476m_7b/launch_config.env ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Vanilla calibration through Full-Bandwidth infrastructure; see docs/PAPER2604_VANILLA.md.
2
+ TRAIN_ARCHITECTURE=full_bandwidth
3
+ BACKBONE_PROFILE=paper2604_vanilla
4
+ TRAINING_RECIPE=paper2604
5
+ RECIPE_OVERRIDES='{}'
6
+ # Use the installed Transformers release; the cluster's dev checkout is incompatible.
7
+ TRANSFORMERS_PATH=''
8
+ RUN_NAME=paper2604_vanilla_476m_7b_online
9
+ RESUME_POLICY=fresh
10
+
11
+ # Online FineWeb-Edu; no prepared .bin/.idx dataset is needed.
12
+ # The launcher saves the pinned Llama-2 + assistant_end tokenizer under DATA_ROOT.
13
+ DATASET_NAME=paper2604_fineweb_edu_online_llama2_32001_t2049
14
+ ONLINE_DATA=true
15
+ ONLINE_DATASET=HuggingFaceFW/fineweb-edu
16
+ ONLINE_DATASET_SUBSET=sample-100BT
17
+ ONLINE_DATASET_REVISION=87f09149ef4734204d70ed1d046ddc9ca3f2b8f9
18
+ ONLINE_SOURCE_SPLIT=train
19
+ ONLINE_TEXT_COLUMN=text
20
+ ONLINE_VALIDATION_FRACTION=0.001
21
+ ONLINE_SPLIT_SEED=260421106
22
+ TOKENIZER_MODEL=NousResearch/Llama-2-7b-hf
23
+ ONLINE_TOKENIZER_REVISION=8efe6c9b93655b934e27bd9981e3ec13e55aee9d
24
+ ONLINE_TOKENIZER_BATCH_SIZE=256
25
+ ONLINE_SHUFFLE_BUFFER_RECORDS=128
26
+ NUM_WORKERS=0
27
+ DATA_PREFLIGHT=false
28
+ EXPECTED_RECORD_LENGTH=2049
29
+ EXPECTED_INPUT_LENGTH=2048
30
+ MIN_MODEL_INPUT_TOKENS=7000000000
31
+
32
+ # One node by default; the existing multi-node launcher supplies NNODES/NODE_RANK.
33
+ GPUS_PER_NODE=8
34
+ TP=1
35
+ PP=1
36
+ # Four accumulation rounds on 8 GPUs, one on 32 GPUs (TP=PP=1).
37
+ MICRO_BATCH_SIZE=4
38
+ GLOBAL_BATCH_SIZE=128
39
+ SEQ_LENGTH=2048
40
+ MAX_POSITION_EMBEDDINGS=2048
41
+ # ceil(7_000_000_000 / 262_144) = 26_703 => 7_000_031_232 physical input tokens.
42
+ TRAIN_ITERS=26703
43
+
44
+ NUM_LAYERS=20
45
+ HIDDEN_SIZE=1408
46
+ FFN_HIDDEN_SIZE=5632
47
+ NUM_ATTENTION_HEADS=11
48
+ NUM_QUERY_GROUPS=11
49
+ GROUP_QUERY_ATTENTION=false
50
+ ATTENTION_OUTPUT_GATE=false
51
+ QK_LAYERNORM=false # Profile supplies parameter-free QK RMSNorm AFTER RoPE.
52
+ SWIGLU=false # Profile supplies squared-ReLU.
53
+ DISABLE_BIAS_LINEAR=true
54
+ NORMALIZATION=RMSNorm
55
+ LAYERNORM_EPSILON=0.000001
56
+ HIDDEN_DROPOUT=0
57
+ ATTENTION_DROPOUT=0
58
+ WINDOW_SIZE=none
59
+ WINDOW_ATTN_SKIP_FREQ=1
60
+ POSITION_EMBEDDING_TYPE=rope
61
+ ROTARY_BASE=10000
62
+ UNTIE_EMBEDDINGS=true
63
+ TOKENIZER_TYPE=HuggingFaceTokenizer
64
+ VOCAB_SIZE=32001
65
+ MAKE_VOCAB_SIZE_DIVISIBLE_BY=64
66
+ PRECISION=bf16
67
+ ENABLE_RECOMPUTE=false
68
+ MEGATRON_EXTRA_ARGS=''
69
+
70
+ FEEDBACK_PASS_MIXTURE=1:1.0
71
+ FEEDBACK_PROGRESSIVE_STAGES='[]'
72
+ FEEDBACK_EVAL_PASSES=1
73
+ FEEDBACK_LOSS_WEIGHT=0
74
+ FEEDBACK_JITTER_SIGMA=0
75
+ FEEDBACK_PREFIX_MIXIN=false
76
+ FEEDBACK_Z_LOSS_COEFFICIENT=0
77
+ FEEDBACK_LOG_HIDDEN_CHANGE=false
78
+
79
+ # Frequent logs and a short sampled evaluation for the initial training check.
80
+ WANDB_ENTITY=LoopTF-4-CSPs
81
+ WANDB_PROJECT=loopTF-workspace
82
+ WANDB_MODE=online
83
+ WANDB_RESUME=never
84
+ SAVE_INTERVAL=2000
85
+ EVAL_AT_START=true
86
+ EVAL_INTERVAL=100
87
+ EVAL_ITERS=2
88
+ LOG_INTERVAL=1
89
+ CKPT_FORMAT=torch
90
+ SEED=42
20260916-204226_vanilla_476m_7b/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da0cded7c2f112deaff51b85bfab738d9f45c68c4bf35c64848fabab364b8bc7
3
+ size 1132423808
20260916-204226_vanilla_476m_7b/training_recipe.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recipe": "paper2604",
3
+ "width": 1408,
4
+ "total_tokens": 7000031232,
5
+ "batch_tokens": 262144,
6
+ "reference_width": 640,
7
+ "reference_tokens": 983315200,
8
+ "reference_batch_tokens": 262144,
9
+ "base_lrs": {
10
+ "matrix": 0.014,
11
+ "embedding": 0.3,
12
+ "unembedding": 0.004,
13
+ "norm": 0.005,
14
+ "other": 0.005
15
+ },
16
+ "peak_lrs": {
17
+ "matrix": 0.007470638533717786,
18
+ "embedding": 0.2022599587389726,
19
+ "unembedding": 0.0026967994498529684,
20
+ "norm": 0.00337099931231621,
21
+ "other": 0.00337099931231621
22
+ },
23
+ "reference": "paper vanilla 0-20-0 at width 640; configurable token anchor",
24
+ "tied_embedding_policy": "unembedding (one AdamW update)",
25
+ "other_parameter_policy": "norm LR (extension for non-paper scalars/biases)",
26
+ "weight_decay": 0.0,
27
+ "warmup_steps": 0,
28
+ "final_lr_fraction": 0.1,
29
+ "optimizer": {
30
+ "name": "muonh",
31
+ "matrix_lr": 0.014,
32
+ "scalar_lr": null,
33
+ "matrix_weight_decay": 0.0,
34
+ "scalar_weight_decay": 0.0,
35
+ "embedding_lr": 0.3,
36
+ "unembedding_lr": 0.004,
37
+ "norm_lr": 0.005,
38
+ "other_lr": 0.005,
39
+ "betas": [
40
+ 0.8,
41
+ 0.95
42
+ ],
43
+ "eps": 1e-10,
44
+ "normuon_momentum": 0.95,
45
+ "normuon_beta2": 0.95,
46
+ "normuon_nesterov": true,
47
+ "normuon_adjust_lr": "spectral_norm",
48
+ "max_grad_norm": null
49
+ },
50
+ "schedule": {
51
+ "kind": "linear",
52
+ "warmup_steps": 0,
53
+ "cooldown_fraction": 0.0,
54
+ "cooldown_style": "linear",
55
+ "final_lr_fraction": 0.1,
56
+ "z_loss_coefficient": 0.0,
57
+ "adamc_weight_decay": false
58
+ },
59
+ "group_weight_decay": {
60
+ "matrix": 0.0,
61
+ "embedding": 0.0,
62
+ "unembedding": 0.0,
63
+ "norm": 0.0,
64
+ "other": 0.0
65
+ },
66
+ "recipe_overrides": {},
67
+ "requested_batch_tokens": 262144,
68
+ "sequence_length": 2048,
69
+ "batch_assumptions": {
70
+ "global_batch_tokens": 262144,
71
+ "sequence_length": 2048,
72
+ "round_up": false
73
+ },
74
+ "lr_transfer": "mup_hyperp_released_source",
75
+ "assumptions": [],
76
+ "backend_kernel_assumptions": {},
77
+ "paper_settings_overridden": false,
78
+ "model": {
79
+ "execution_architecture": "full_bandwidth",
80
+ "backbone_profile": "paper2604_vanilla",
81
+ "objective": "one_pass_causal_lm",
82
+ "source_commit": "122366472a31e57982a2877eeee10bb115477713",
83
+ "width_scale": 22,
84
+ "hidden_size": 1408,
85
+ "num_layers": 20,
86
+ "head_dim": 128,
87
+ "num_attention_heads": 11,
88
+ "num_kv_heads": 11,
89
+ "ffn_hidden_size": 5632,
90
+ "activation": "squared_relu",
91
+ "attention": "full_causal",
92
+ "attention_output_gate": false,
93
+ "qk_norm": "functional_rmsnorm_after_rope",
94
+ "norm_epsilon": 1e-06,
95
+ "model_level_norms": [
96
+ "embedding",
97
+ "recur",
98
+ "final"
99
+ ],
100
+ "rope_base": 10000,
101
+ "rope_convention": "split_half_negative_angle_bf16_cos_sin",
102
+ "bias": false,
103
+ "dropout": 0.0,
104
+ "residual_multiplier": 1.0,
105
+ "residual_and_norm_scale_dtype": "float32",
106
+ "projection_dtype": "bfloat16 (production)",
107
+ "tied_embeddings": false,
108
+ "vocab_size": 32001,
109
+ "padded_vocab_size": 32064,
110
+ "logit_softcap": 15.0,
111
+ "crop_padding_before_loss": true,
112
+ "train_passes": 1,
113
+ "eval_passes": 1,
114
+ "initialization": {
115
+ "embedding_normal_std": 1.0,
116
+ "head_normal_std": 0.001,
117
+ "matrix_uniform_bound": "sqrt(3/fan_in)",
118
+ "norm_scale": 1.0
119
+ },
120
+ "parameter_counts": {
121
+ "non_embedding_matrix_formula": 475791360,
122
+ "non_embedding_paper_N": 475851904,
123
+ "total_trainable": 566144128,
124
+ "feedback_parameters": 0
125
+ },
126
+ "tokenizer_fidelity_note": "Released preprint/current code uses 32001 active tokens, padded to 32064; paper table reports 32008. Follow executable release; do not invent seven tokens.",
127
+ "feedback_enabled": false,
128
+ "feedback_pass_mixture": {
129
+ "1": 1.0
130
+ },
131
+ "feedback_progressive_stages": []
132
+ }
133
+ }