kylesayrs commited on
Commit
f8db856
·
verified ·
1 Parent(s): 0a1dd46

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model:
4
+ - thinkingmachines/Inkling
5
+ library_name: transformers
6
+ ---
7
+
8
+ # Inkling-0.6B-A0.6B
9
+
10
+ This is a tiny version of [thinkingmachines/Inkling](https://huggingface.co/thinkingmachines/Inkling) created for testing and development.
11
+
12
+ ## Model Details
13
+
14
+ - **Base Model**: thinkingmachines/Inkling
15
+ - **Architecture**: inkling_mm_model (InklingForConditionalGeneration)
16
+ - **Total Parameters**: 0.644B
17
+ - **Activated Parameters**: 0.602B
18
+
19
+ ## Configuration Changes
20
+
21
+ The following parameters were reduced from the original model:
22
+
23
+ | Parameter | Original | Tiny |
24
+ |---|---|---|
25
+ | `text_config.num_hidden_layers` | 66 | 12 |
26
+ | `text_config.hidden_size` | 6144 | 1024 |
27
+ | `text_config.intermediate_size` | 24576 | 4096 |
28
+ | `text_config.num_attention_heads` | 64 | 8 |
29
+ | `text_config.num_key_value_heads` | 8 | 2 |
30
+ | `text_config.swa_num_attention_heads` | 64 | 8 |
31
+ | `text_config.swa_num_key_value_heads` | 16 | 4 |
32
+ | `text_config.n_routed_experts` | 256 | 8 |
33
+ | `text_config.num_experts_per_tok` | 6 | 4 |
34
+ | `text_config.moe_intermediate_size` | 3072 | 512 |
35
+ | `text_config.num_mtp_layers` | 8 | 1 |
36
+ | `vision_config.n_layers` | 4 | 1 |
37
+ | `vision_config.hidden_size` | 1024 | 256 |
38
+ | `vision_config.decoder_dmodel` | 6144 | 1024 |
39
+ | `audio_config.decoder_dmodel` | 6144 | 1024 |
40
+
41
+ Layer type patterns are preserved: 2 repetitions of [5× `hybrid_sliding` + 1× `hybrid`], with the first 2 MLP layers as `dense` and the rest as `sparse` (MoE).
42
+
43
+ ## Checkpoint Structure
44
+
45
+ Single safetensors file (`model.safetensors`). Key naming matches the original checkpoint format (`model.llm.*`, `model.audio.*`, `model.visual.*`).
46
+
47
+ ## Usage
48
+
49
+ ```python
50
+ from transformers.models.inkling import InklingForConditionalGeneration
51
+ from transformers import AutoTokenizer
52
+
53
+ model = InklingForConditionalGeneration.from_pretrained("inference-optimization/Inkling-0.6B-A0.6B", device_map="auto")
54
+ tokenizer = AutoTokenizer.from_pretrained("inference-optimization/Inkling-0.6B-A0.6B")
55
+
56
+ input_ids = tokenizer("According to all known laws", return_tensors="pt").input_ids.to(model.device)
57
+ output = model.generate(input_ids, max_new_tokens=20)
58
+ print(tokenizer.decode(output[0]))
59
+ ```
60
+
61
+ ## Creation Process
62
+
63
+ This model was created using the llm-compressor `create-tiny-model` claude skill.
64
+
65
+ 1. Config inspected via `inspect_config.py`
66
+ 2. Tiny model created via modified `save_tiny_model.py` — all-zero params fixed post `init_weights`
67
+ 3. Fine-tuned on copypasta dataset; reached perplexity 1.45 (target: ≤3.0) at lr=5e-4
68
+ 4. Checkpoint structure validated against original HuggingFace index
69
+ 5. Inference validated via `validate_tiny_model.py`
70
+
71
+ ## Notes
72
+
73
+ - The `embed_tokens` weights require explicit re-initialization after `init_weights()` (they initialize to zero in this architecture). The save script applies a fixup: any all-zero, non-finite, or extreme-valued parameter is re-initialized with kaiming_uniform / normal / ones as appropriate.
74
+ - MTP (Multi-Token Prediction) layers present in the original checkpoint (`model.mtp.*`) are not included, as `InklingForConditionalGeneration` does not expose them through its standard interface.
75
+ - Validation output: `Success: 1.4451 <= 10.0`
checkpoint-1000/config.json ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "InklingForConditionalGeneration"
4
+ ],
5
+ "audio_bos_token_id": 200020,
6
+ "audio_config": {
7
+ "audio_mode": "dmel",
8
+ "bias": false,
9
+ "decoder_dmodel": 1024,
10
+ "dmel_max_value": 2.0,
11
+ "dmel_min_value": -7.0,
12
+ "dtype": "float32",
13
+ "initializer_range": 0.02,
14
+ "mel_vocab_size": 16,
15
+ "model_type": "inkling_audio",
16
+ "n_mel_bins": 80,
17
+ "rms_norm_eps": 1e-06,
18
+ "text_hidden_size": 1024,
19
+ "use_audio_norm": true
20
+ },
21
+ "audio_token_id": 200053,
22
+ "dtype": "float32",
23
+ "eos_token_id": 200006,
24
+ "image_bos_token_id": 200005,
25
+ "image_token_id": 200054,
26
+ "model_type": "inkling_mm_model",
27
+ "mtp_config": {
28
+ "chain_hidden_post_norm": false,
29
+ "local_layer_ids": [
30
+ 0
31
+ ],
32
+ "num_nextn_predict_layers": 1
33
+ },
34
+ "pad_token_id": 199999,
35
+ "text_config": {
36
+ "attention_dropout": 0.0,
37
+ "bos_token_id": 1,
38
+ "chain_hidden_post_norm": false,
39
+ "conv_kernel_size": 4,
40
+ "d_rel": 16,
41
+ "dtype": "float32",
42
+ "eos_token_id": 2,
43
+ "final_logit_softcapping": null,
44
+ "gate_activation": "sigmoid",
45
+ "head_dim": 128,
46
+ "hidden_act": "silu",
47
+ "hidden_size": 1024,
48
+ "initializer_range": 0.02,
49
+ "intermediate_size": 4096,
50
+ "layer_types": [
51
+ "hybrid_sliding",
52
+ "hybrid_sliding",
53
+ "hybrid_sliding",
54
+ "hybrid_sliding",
55
+ "hybrid_sliding",
56
+ "hybrid",
57
+ "hybrid_sliding",
58
+ "hybrid_sliding",
59
+ "hybrid_sliding",
60
+ "hybrid_sliding",
61
+ "hybrid_sliding",
62
+ "hybrid"
63
+ ],
64
+ "local_layer_ids": [
65
+ 0,
66
+ 1,
67
+ 2,
68
+ 3,
69
+ 4,
70
+ 6,
71
+ 7,
72
+ 8,
73
+ 9,
74
+ 10
75
+ ],
76
+ "log_scaling_alpha": 0.1,
77
+ "log_scaling_n_floor": 128000,
78
+ "logits_mup_width_multiplier": 24.0,
79
+ "max_position_embeddings": 1048576,
80
+ "mlp_layer_types": [
81
+ "dense",
82
+ "dense",
83
+ "sparse",
84
+ "sparse",
85
+ "sparse",
86
+ "sparse",
87
+ "sparse",
88
+ "sparse",
89
+ "sparse",
90
+ "sparse",
91
+ "sparse",
92
+ "sparse"
93
+ ],
94
+ "model_type": "inkling_text",
95
+ "moe_intermediate_size": 512,
96
+ "mtp_hidden_states_first": true,
97
+ "mtp_local_layer_ids": [
98
+ 0
99
+ ],
100
+ "n_routed_experts": 8,
101
+ "n_shared_experts": 2,
102
+ "norm_after_topk": true,
103
+ "num_attention_heads": 8,
104
+ "num_experts_per_tok": 4,
105
+ "num_hidden_layers": 12,
106
+ "num_key_value_heads": 2,
107
+ "num_mtp_layers": 1,
108
+ "number_of_conv_states": 4,
109
+ "o_bias": false,
110
+ "pad_token_id": null,
111
+ "q_bias": false,
112
+ "rel_extent": 1024,
113
+ "rms_norm_eps": 1e-06,
114
+ "rms_norm_eps_moe_gate": 1e-06,
115
+ "route_scale": 8.0,
116
+ "shared_expert_sink": true,
117
+ "sliding_window_size": 512,
118
+ "swa_head_dim": 128,
119
+ "swa_num_attention_heads": 8,
120
+ "swa_num_key_value_heads": 4,
121
+ "unpadded_vocab_size": 200058,
122
+ "use_embed_norm": true,
123
+ "use_gate_bias": true,
124
+ "use_global_scale": true,
125
+ "use_sconv": true,
126
+ "vocab_size": 201024
127
+ },
128
+ "transformers_version": "5.15.0.dev0",
129
+ "use_cache": false,
130
+ "vision_config": {
131
+ "decoder_dmodel": 1024,
132
+ "dtype": "float32",
133
+ "hidden_size": 256,
134
+ "initializer_range": 0.02,
135
+ "model_type": "inkling_vision",
136
+ "n_channels": 3,
137
+ "n_layers": 1,
138
+ "num_attention_heads": 4,
139
+ "num_channels": 3,
140
+ "patch_size": 40,
141
+ "rms_norm_eps": 1e-06,
142
+ "temporal_patch_size": 2,
143
+ "text_hidden_size": 1024,
144
+ "use_vision_norm": true,
145
+ "vision_encoder_type": "hmlp"
146
+ }
147
+ }
checkpoint-1000/generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": 200006,
4
+ "transformers_version": "5.15.0.dev0"
5
+ }
checkpoint-1000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4fb4cfbfa3e85e2b9bef3e25ec333a7781431e97d115bca5b128dbc91b376fe
3
+ size 2575851840
checkpoint-1000/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04a28a38a648db1ed3c0d63d12dbf58d6b7687518c6d5e8ff9ce5c7685fc0b79
3
+ size 5062717107
checkpoint-1000/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52c47e171fce698c9d10b04dcea5ffa1e1d3cef9099262236654f9a02fa46070
3
+ size 14645
checkpoint-1000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8083cb28f9178670969e8954135f0609f0eac2102b31887abccd667da0fb9cf
3
+ size 1465
checkpoint-1000/trainer_state.json ADDED
@@ -0,0 +1,741 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 500.0,
6
+ "eval_steps": 500,
7
+ "global_step": 1000,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.5,
14
+ "grad_norm": 0.679200291633606,
15
+ "learning_rate": 5e-05,
16
+ "loss": 12.211211204528809,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 5.0,
21
+ "grad_norm": 0.19637228548526764,
22
+ "learning_rate": 4.9550000000000005e-05,
23
+ "loss": 12.135602315266928,
24
+ "step": 10
25
+ },
26
+ {
27
+ "epoch": 10.0,
28
+ "grad_norm": 0.1901359260082245,
29
+ "learning_rate": 4.905e-05,
30
+ "loss": 12.035923767089844,
31
+ "step": 20
32
+ },
33
+ {
34
+ "epoch": 15.0,
35
+ "grad_norm": 0.18782183527946472,
36
+ "learning_rate": 4.855e-05,
37
+ "loss": 11.941139221191406,
38
+ "step": 30
39
+ },
40
+ {
41
+ "epoch": 20.0,
42
+ "grad_norm": 0.18852435052394867,
43
+ "learning_rate": 4.805e-05,
44
+ "loss": 11.83099594116211,
45
+ "step": 40
46
+ },
47
+ {
48
+ "epoch": 25.0,
49
+ "grad_norm": 0.19028881192207336,
50
+ "learning_rate": 4.755e-05,
51
+ "loss": 11.708907318115234,
52
+ "step": 50
53
+ },
54
+ {
55
+ "epoch": 30.0,
56
+ "grad_norm": 0.1938280314207077,
57
+ "learning_rate": 4.705e-05,
58
+ "loss": 11.597697448730468,
59
+ "step": 60
60
+ },
61
+ {
62
+ "epoch": 35.0,
63
+ "grad_norm": 0.32372087240219116,
64
+ "learning_rate": 4.655000000000001e-05,
65
+ "loss": 11.502000427246093,
66
+ "step": 70
67
+ },
68
+ {
69
+ "epoch": 40.0,
70
+ "grad_norm": 0.20650140941143036,
71
+ "learning_rate": 4.605e-05,
72
+ "loss": 11.435150909423829,
73
+ "step": 80
74
+ },
75
+ {
76
+ "epoch": 45.0,
77
+ "grad_norm": 0.18674910068511963,
78
+ "learning_rate": 4.555e-05,
79
+ "loss": 11.38574676513672,
80
+ "step": 90
81
+ },
82
+ {
83
+ "epoch": 50.0,
84
+ "grad_norm": 0.20134492218494415,
85
+ "learning_rate": 4.5050000000000004e-05,
86
+ "loss": 11.350026702880859,
87
+ "step": 100
88
+ },
89
+ {
90
+ "epoch": 55.0,
91
+ "grad_norm": 0.18685384094715118,
92
+ "learning_rate": 4.4550000000000005e-05,
93
+ "loss": 11.322230529785156,
94
+ "step": 110
95
+ },
96
+ {
97
+ "epoch": 60.0,
98
+ "grad_norm": 0.196379154920578,
99
+ "learning_rate": 4.405e-05,
100
+ "loss": 11.299267578125,
101
+ "step": 120
102
+ },
103
+ {
104
+ "epoch": 65.0,
105
+ "grad_norm": 0.1844422072172165,
106
+ "learning_rate": 4.355e-05,
107
+ "loss": 11.279010009765624,
108
+ "step": 130
109
+ },
110
+ {
111
+ "epoch": 70.0,
112
+ "grad_norm": 0.1804857850074768,
113
+ "learning_rate": 4.305e-05,
114
+ "loss": 11.259839630126953,
115
+ "step": 140
116
+ },
117
+ {
118
+ "epoch": 75.0,
119
+ "grad_norm": 0.19067005813121796,
120
+ "learning_rate": 4.2550000000000004e-05,
121
+ "loss": 11.241000366210937,
122
+ "step": 150
123
+ },
124
+ {
125
+ "epoch": 80.0,
126
+ "grad_norm": 0.1887764036655426,
127
+ "learning_rate": 4.205e-05,
128
+ "loss": 11.222760772705078,
129
+ "step": 160
130
+ },
131
+ {
132
+ "epoch": 85.0,
133
+ "grad_norm": 0.19067640602588654,
134
+ "learning_rate": 4.155e-05,
135
+ "loss": 11.20439453125,
136
+ "step": 170
137
+ },
138
+ {
139
+ "epoch": 90.0,
140
+ "grad_norm": 0.1770990788936615,
141
+ "learning_rate": 4.105e-05,
142
+ "loss": 11.186467742919922,
143
+ "step": 180
144
+ },
145
+ {
146
+ "epoch": 95.0,
147
+ "grad_norm": 0.17499233782291412,
148
+ "learning_rate": 4.055e-05,
149
+ "loss": 11.167765045166016,
150
+ "step": 190
151
+ },
152
+ {
153
+ "epoch": 100.0,
154
+ "grad_norm": 0.1904127597808838,
155
+ "learning_rate": 4.0050000000000004e-05,
156
+ "loss": 11.149557495117188,
157
+ "step": 200
158
+ },
159
+ {
160
+ "epoch": 105.0,
161
+ "grad_norm": 0.1739717274904251,
162
+ "learning_rate": 3.9550000000000006e-05,
163
+ "loss": 11.131022644042968,
164
+ "step": 210
165
+ },
166
+ {
167
+ "epoch": 110.0,
168
+ "grad_norm": 0.2017071694135666,
169
+ "learning_rate": 3.905e-05,
170
+ "loss": 11.112350463867188,
171
+ "step": 220
172
+ },
173
+ {
174
+ "epoch": 115.0,
175
+ "grad_norm": 0.18773476779460907,
176
+ "learning_rate": 3.855e-05,
177
+ "loss": 11.094757843017579,
178
+ "step": 230
179
+ },
180
+ {
181
+ "epoch": 120.0,
182
+ "grad_norm": 0.19418179988861084,
183
+ "learning_rate": 3.805e-05,
184
+ "loss": 11.076486206054687,
185
+ "step": 240
186
+ },
187
+ {
188
+ "epoch": 125.0,
189
+ "grad_norm": 0.1962657868862152,
190
+ "learning_rate": 3.7550000000000005e-05,
191
+ "loss": 11.056719207763672,
192
+ "step": 250
193
+ },
194
+ {
195
+ "epoch": 130.0,
196
+ "grad_norm": 0.19265155494213104,
197
+ "learning_rate": 3.705e-05,
198
+ "loss": 11.037678527832032,
199
+ "step": 260
200
+ },
201
+ {
202
+ "epoch": 135.0,
203
+ "grad_norm": 0.17414163053035736,
204
+ "learning_rate": 3.655e-05,
205
+ "loss": 11.018470764160156,
206
+ "step": 270
207
+ },
208
+ {
209
+ "epoch": 140.0,
210
+ "grad_norm": 0.19136762619018555,
211
+ "learning_rate": 3.605e-05,
212
+ "loss": 10.999581909179687,
213
+ "step": 280
214
+ },
215
+ {
216
+ "epoch": 145.0,
217
+ "grad_norm": 0.17472872138023376,
218
+ "learning_rate": 3.555e-05,
219
+ "loss": 10.980691528320312,
220
+ "step": 290
221
+ },
222
+ {
223
+ "epoch": 150.0,
224
+ "grad_norm": 0.19140979647636414,
225
+ "learning_rate": 3.505e-05,
226
+ "loss": 10.961211395263671,
227
+ "step": 300
228
+ },
229
+ {
230
+ "epoch": 155.0,
231
+ "grad_norm": 0.18277697265148163,
232
+ "learning_rate": 3.455e-05,
233
+ "loss": 10.942373657226563,
234
+ "step": 310
235
+ },
236
+ {
237
+ "epoch": 160.0,
238
+ "grad_norm": 0.18312492966651917,
239
+ "learning_rate": 3.405e-05,
240
+ "loss": 10.923491668701171,
241
+ "step": 320
242
+ },
243
+ {
244
+ "epoch": 165.0,
245
+ "grad_norm": 0.1935737133026123,
246
+ "learning_rate": 3.355e-05,
247
+ "loss": 10.904404449462891,
248
+ "step": 330
249
+ },
250
+ {
251
+ "epoch": 170.0,
252
+ "grad_norm": 0.18423579633235931,
253
+ "learning_rate": 3.3050000000000004e-05,
254
+ "loss": 10.88526611328125,
255
+ "step": 340
256
+ },
257
+ {
258
+ "epoch": 175.0,
259
+ "grad_norm": 0.1741979420185089,
260
+ "learning_rate": 3.2550000000000005e-05,
261
+ "loss": 10.86572036743164,
262
+ "step": 350
263
+ },
264
+ {
265
+ "epoch": 180.0,
266
+ "grad_norm": 0.17369955778121948,
267
+ "learning_rate": 3.205e-05,
268
+ "loss": 10.847341156005859,
269
+ "step": 360
270
+ },
271
+ {
272
+ "epoch": 185.0,
273
+ "grad_norm": 0.18073685467243195,
274
+ "learning_rate": 3.155e-05,
275
+ "loss": 10.827933502197265,
276
+ "step": 370
277
+ },
278
+ {
279
+ "epoch": 190.0,
280
+ "grad_norm": 0.17668183147907257,
281
+ "learning_rate": 3.105e-05,
282
+ "loss": 10.809838104248048,
283
+ "step": 380
284
+ },
285
+ {
286
+ "epoch": 195.0,
287
+ "grad_norm": 0.19311200082302094,
288
+ "learning_rate": 3.0550000000000004e-05,
289
+ "loss": 10.791265869140625,
290
+ "step": 390
291
+ },
292
+ {
293
+ "epoch": 200.0,
294
+ "grad_norm": 0.20700618624687195,
295
+ "learning_rate": 3.0050000000000002e-05,
296
+ "loss": 10.772897338867187,
297
+ "step": 400
298
+ },
299
+ {
300
+ "epoch": 205.0,
301
+ "grad_norm": 0.18541602790355682,
302
+ "learning_rate": 2.955e-05,
303
+ "loss": 10.754539489746094,
304
+ "step": 410
305
+ },
306
+ {
307
+ "epoch": 210.0,
308
+ "grad_norm": 0.19843514263629913,
309
+ "learning_rate": 2.9049999999999998e-05,
310
+ "loss": 10.736498260498047,
311
+ "step": 420
312
+ },
313
+ {
314
+ "epoch": 215.0,
315
+ "grad_norm": 0.1915830671787262,
316
+ "learning_rate": 2.855e-05,
317
+ "loss": 10.718640899658203,
318
+ "step": 430
319
+ },
320
+ {
321
+ "epoch": 220.0,
322
+ "grad_norm": 0.1963329315185547,
323
+ "learning_rate": 2.8050000000000004e-05,
324
+ "loss": 10.701332092285156,
325
+ "step": 440
326
+ },
327
+ {
328
+ "epoch": 225.0,
329
+ "grad_norm": 0.1926761120557785,
330
+ "learning_rate": 2.7550000000000002e-05,
331
+ "loss": 10.683160400390625,
332
+ "step": 450
333
+ },
334
+ {
335
+ "epoch": 230.0,
336
+ "grad_norm": 0.1978655308485031,
337
+ "learning_rate": 2.7050000000000004e-05,
338
+ "loss": 10.665509796142578,
339
+ "step": 460
340
+ },
341
+ {
342
+ "epoch": 235.0,
343
+ "grad_norm": 0.22640474140644073,
344
+ "learning_rate": 2.655e-05,
345
+ "loss": 10.648850250244141,
346
+ "step": 470
347
+ },
348
+ {
349
+ "epoch": 240.0,
350
+ "grad_norm": 0.284628301858902,
351
+ "learning_rate": 2.6050000000000003e-05,
352
+ "loss": 10.6341064453125,
353
+ "step": 480
354
+ },
355
+ {
356
+ "epoch": 245.0,
357
+ "grad_norm": 0.20072966814041138,
358
+ "learning_rate": 2.555e-05,
359
+ "loss": 10.615923309326172,
360
+ "step": 490
361
+ },
362
+ {
363
+ "epoch": 250.0,
364
+ "grad_norm": 0.1898791790008545,
365
+ "learning_rate": 2.5050000000000002e-05,
366
+ "loss": 10.598560333251953,
367
+ "step": 500
368
+ },
369
+ {
370
+ "epoch": 255.0,
371
+ "grad_norm": 0.19185157120227814,
372
+ "learning_rate": 2.455e-05,
373
+ "loss": 10.58202896118164,
374
+ "step": 510
375
+ },
376
+ {
377
+ "epoch": 260.0,
378
+ "grad_norm": 0.1799161583185196,
379
+ "learning_rate": 2.4050000000000002e-05,
380
+ "loss": 10.56644058227539,
381
+ "step": 520
382
+ },
383
+ {
384
+ "epoch": 265.0,
385
+ "grad_norm": 0.18410366773605347,
386
+ "learning_rate": 2.355e-05,
387
+ "loss": 10.549659729003906,
388
+ "step": 530
389
+ },
390
+ {
391
+ "epoch": 270.0,
392
+ "grad_norm": 0.17715789377689362,
393
+ "learning_rate": 2.305e-05,
394
+ "loss": 10.534073638916016,
395
+ "step": 540
396
+ },
397
+ {
398
+ "epoch": 275.0,
399
+ "grad_norm": 0.18409231305122375,
400
+ "learning_rate": 2.2550000000000003e-05,
401
+ "loss": 10.518675231933594,
402
+ "step": 550
403
+ },
404
+ {
405
+ "epoch": 280.0,
406
+ "grad_norm": 0.18424347043037415,
407
+ "learning_rate": 2.205e-05,
408
+ "loss": 10.504659271240234,
409
+ "step": 560
410
+ },
411
+ {
412
+ "epoch": 285.0,
413
+ "grad_norm": 0.19608528912067413,
414
+ "learning_rate": 2.1550000000000002e-05,
415
+ "loss": 10.488896942138672,
416
+ "step": 570
417
+ },
418
+ {
419
+ "epoch": 290.0,
420
+ "grad_norm": 0.18763066828250885,
421
+ "learning_rate": 2.105e-05,
422
+ "loss": 10.47493667602539,
423
+ "step": 580
424
+ },
425
+ {
426
+ "epoch": 295.0,
427
+ "grad_norm": 0.19432927668094635,
428
+ "learning_rate": 2.055e-05,
429
+ "loss": 10.460673522949218,
430
+ "step": 590
431
+ },
432
+ {
433
+ "epoch": 300.0,
434
+ "grad_norm": 0.17795953154563904,
435
+ "learning_rate": 2.0050000000000003e-05,
436
+ "loss": 10.446895599365234,
437
+ "step": 600
438
+ },
439
+ {
440
+ "epoch": 305.0,
441
+ "grad_norm": 0.18806937336921692,
442
+ "learning_rate": 1.955e-05,
443
+ "loss": 10.434019470214844,
444
+ "step": 610
445
+ },
446
+ {
447
+ "epoch": 310.0,
448
+ "grad_norm": 0.19683541357517242,
449
+ "learning_rate": 1.9050000000000002e-05,
450
+ "loss": 10.420983123779298,
451
+ "step": 620
452
+ },
453
+ {
454
+ "epoch": 315.0,
455
+ "grad_norm": 0.18045076727867126,
456
+ "learning_rate": 1.855e-05,
457
+ "loss": 10.408130645751953,
458
+ "step": 630
459
+ },
460
+ {
461
+ "epoch": 320.0,
462
+ "grad_norm": 0.18547658622264862,
463
+ "learning_rate": 1.805e-05,
464
+ "loss": 10.394852447509766,
465
+ "step": 640
466
+ },
467
+ {
468
+ "epoch": 325.0,
469
+ "grad_norm": 0.18074513971805573,
470
+ "learning_rate": 1.755e-05,
471
+ "loss": 10.382632446289062,
472
+ "step": 650
473
+ },
474
+ {
475
+ "epoch": 330.0,
476
+ "grad_norm": 0.19741693139076233,
477
+ "learning_rate": 1.705e-05,
478
+ "loss": 10.370597839355469,
479
+ "step": 660
480
+ },
481
+ {
482
+ "epoch": 335.0,
483
+ "grad_norm": 0.1790037453174591,
484
+ "learning_rate": 1.6550000000000002e-05,
485
+ "loss": 10.358709716796875,
486
+ "step": 670
487
+ },
488
+ {
489
+ "epoch": 340.0,
490
+ "grad_norm": 0.18115782737731934,
491
+ "learning_rate": 1.605e-05,
492
+ "loss": 10.348496246337891,
493
+ "step": 680
494
+ },
495
+ {
496
+ "epoch": 345.0,
497
+ "grad_norm": 0.1861548125743866,
498
+ "learning_rate": 1.5550000000000002e-05,
499
+ "loss": 10.337443542480468,
500
+ "step": 690
501
+ },
502
+ {
503
+ "epoch": 350.0,
504
+ "grad_norm": 0.1893489509820938,
505
+ "learning_rate": 1.505e-05,
506
+ "loss": 10.326724243164062,
507
+ "step": 700
508
+ },
509
+ {
510
+ "epoch": 355.0,
511
+ "grad_norm": 0.17952027916908264,
512
+ "learning_rate": 1.455e-05,
513
+ "loss": 10.316475677490235,
514
+ "step": 710
515
+ },
516
+ {
517
+ "epoch": 360.0,
518
+ "grad_norm": 0.18652576208114624,
519
+ "learning_rate": 1.4050000000000003e-05,
520
+ "loss": 10.30637435913086,
521
+ "step": 720
522
+ },
523
+ {
524
+ "epoch": 365.0,
525
+ "grad_norm": 0.18177944421768188,
526
+ "learning_rate": 1.3550000000000002e-05,
527
+ "loss": 10.297893524169922,
528
+ "step": 730
529
+ },
530
+ {
531
+ "epoch": 370.0,
532
+ "grad_norm": 0.1867525577545166,
533
+ "learning_rate": 1.305e-05,
534
+ "loss": 10.287423706054687,
535
+ "step": 740
536
+ },
537
+ {
538
+ "epoch": 375.0,
539
+ "grad_norm": 0.1868598610162735,
540
+ "learning_rate": 1.255e-05,
541
+ "loss": 10.279433441162109,
542
+ "step": 750
543
+ },
544
+ {
545
+ "epoch": 380.0,
546
+ "grad_norm": 0.1965486854314804,
547
+ "learning_rate": 1.205e-05,
548
+ "loss": 10.26949462890625,
549
+ "step": 760
550
+ },
551
+ {
552
+ "epoch": 385.0,
553
+ "grad_norm": 0.19869227707386017,
554
+ "learning_rate": 1.1550000000000001e-05,
555
+ "loss": 10.261733245849609,
556
+ "step": 770
557
+ },
558
+ {
559
+ "epoch": 390.0,
560
+ "grad_norm": 0.18715552985668182,
561
+ "learning_rate": 1.1050000000000001e-05,
562
+ "loss": 10.254318237304688,
563
+ "step": 780
564
+ },
565
+ {
566
+ "epoch": 395.0,
567
+ "grad_norm": 0.19030500948429108,
568
+ "learning_rate": 1.055e-05,
569
+ "loss": 10.24692153930664,
570
+ "step": 790
571
+ },
572
+ {
573
+ "epoch": 400.0,
574
+ "grad_norm": 0.18732821941375732,
575
+ "learning_rate": 1.005e-05,
576
+ "loss": 10.238652801513672,
577
+ "step": 800
578
+ },
579
+ {
580
+ "epoch": 405.0,
581
+ "grad_norm": 0.18254970014095306,
582
+ "learning_rate": 9.55e-06,
583
+ "loss": 10.232601165771484,
584
+ "step": 810
585
+ },
586
+ {
587
+ "epoch": 410.0,
588
+ "grad_norm": 0.19707037508487701,
589
+ "learning_rate": 9.05e-06,
590
+ "loss": 10.226371002197265,
591
+ "step": 820
592
+ },
593
+ {
594
+ "epoch": 415.0,
595
+ "grad_norm": 0.19714631140232086,
596
+ "learning_rate": 8.550000000000001e-06,
597
+ "loss": 10.219265747070313,
598
+ "step": 830
599
+ },
600
+ {
601
+ "epoch": 420.0,
602
+ "grad_norm": 0.18277062475681305,
603
+ "learning_rate": 8.050000000000001e-06,
604
+ "loss": 10.213637542724609,
605
+ "step": 840
606
+ },
607
+ {
608
+ "epoch": 425.0,
609
+ "grad_norm": 0.1907661110162735,
610
+ "learning_rate": 7.55e-06,
611
+ "loss": 10.208641815185548,
612
+ "step": 850
613
+ },
614
+ {
615
+ "epoch": 430.0,
616
+ "grad_norm": 0.1993841677904129,
617
+ "learning_rate": 7.049999999999999e-06,
618
+ "loss": 10.20284194946289,
619
+ "step": 860
620
+ },
621
+ {
622
+ "epoch": 435.0,
623
+ "grad_norm": 0.1809597760438919,
624
+ "learning_rate": 6.550000000000001e-06,
625
+ "loss": 10.198387908935548,
626
+ "step": 870
627
+ },
628
+ {
629
+ "epoch": 440.0,
630
+ "grad_norm": 0.19093714654445648,
631
+ "learning_rate": 6.0500000000000005e-06,
632
+ "loss": 10.194139862060547,
633
+ "step": 880
634
+ },
635
+ {
636
+ "epoch": 445.0,
637
+ "grad_norm": 0.18106074631214142,
638
+ "learning_rate": 5.55e-06,
639
+ "loss": 10.189845275878906,
640
+ "step": 890
641
+ },
642
+ {
643
+ "epoch": 450.0,
644
+ "grad_norm": 0.18310484290122986,
645
+ "learning_rate": 5.050000000000001e-06,
646
+ "loss": 10.18642807006836,
647
+ "step": 900
648
+ },
649
+ {
650
+ "epoch": 455.0,
651
+ "grad_norm": 0.18800194561481476,
652
+ "learning_rate": 4.5500000000000005e-06,
653
+ "loss": 10.182191467285156,
654
+ "step": 910
655
+ },
656
+ {
657
+ "epoch": 460.0,
658
+ "grad_norm": 0.18118229508399963,
659
+ "learning_rate": 4.05e-06,
660
+ "loss": 10.179602813720702,
661
+ "step": 920
662
+ },
663
+ {
664
+ "epoch": 465.0,
665
+ "grad_norm": 0.18121908605098724,
666
+ "learning_rate": 3.55e-06,
667
+ "loss": 10.17755584716797,
668
+ "step": 930
669
+ },
670
+ {
671
+ "epoch": 470.0,
672
+ "grad_norm": 0.1832403838634491,
673
+ "learning_rate": 3.05e-06,
674
+ "loss": 10.174819946289062,
675
+ "step": 940
676
+ },
677
+ {
678
+ "epoch": 475.0,
679
+ "grad_norm": 0.18326261639595032,
680
+ "learning_rate": 2.55e-06,
681
+ "loss": 10.172626495361328,
682
+ "step": 950
683
+ },
684
+ {
685
+ "epoch": 480.0,
686
+ "grad_norm": 0.1977120339870453,
687
+ "learning_rate": 2.0500000000000003e-06,
688
+ "loss": 10.170863342285156,
689
+ "step": 960
690
+ },
691
+ {
692
+ "epoch": 485.0,
693
+ "grad_norm": 0.1997692734003067,
694
+ "learning_rate": 1.55e-06,
695
+ "loss": 10.169485473632813,
696
+ "step": 970
697
+ },
698
+ {
699
+ "epoch": 490.0,
700
+ "grad_norm": 0.1813110113143921,
701
+ "learning_rate": 1.0500000000000001e-06,
702
+ "loss": 10.168987274169922,
703
+ "step": 980
704
+ },
705
+ {
706
+ "epoch": 495.0,
707
+ "grad_norm": 0.18131709098815918,
708
+ "learning_rate": 5.5e-07,
709
+ "loss": 10.167797088623047,
710
+ "step": 990
711
+ },
712
+ {
713
+ "epoch": 500.0,
714
+ "grad_norm": 0.1997884064912796,
715
+ "learning_rate": 5.0000000000000004e-08,
716
+ "loss": 10.167719268798828,
717
+ "step": 1000
718
+ }
719
+ ],
720
+ "logging_steps": 10,
721
+ "max_steps": 1000,
722
+ "num_input_tokens_seen": 0,
723
+ "num_train_epochs": 500,
724
+ "save_steps": 500,
725
+ "stateful_callbacks": {
726
+ "TrainerControl": {
727
+ "args": {
728
+ "should_epoch_stop": false,
729
+ "should_evaluate": false,
730
+ "should_log": false,
731
+ "should_save": true,
732
+ "should_training_stop": true
733
+ },
734
+ "attributes": {}
735
+ }
736
+ },
737
+ "total_flos": 2683677745152000.0,
738
+ "train_batch_size": 2,
739
+ "trial_name": null,
740
+ "trial_params": null
741
+ }
checkpoint-1000/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a61329f8d24268af835ef3ac243e10e4d71bee124a7d07cd7b6d3b293f08dede
3
+ size 5137
checkpoint-500/config.json ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "InklingForConditionalGeneration"
4
+ ],
5
+ "audio_bos_token_id": 200020,
6
+ "audio_config": {
7
+ "audio_mode": "dmel",
8
+ "bias": false,
9
+ "decoder_dmodel": 1024,
10
+ "dmel_max_value": 2.0,
11
+ "dmel_min_value": -7.0,
12
+ "dtype": "float32",
13
+ "initializer_range": 0.02,
14
+ "mel_vocab_size": 16,
15
+ "model_type": "inkling_audio",
16
+ "n_mel_bins": 80,
17
+ "rms_norm_eps": 1e-06,
18
+ "text_hidden_size": 1024,
19
+ "use_audio_norm": true
20
+ },
21
+ "audio_token_id": 200053,
22
+ "dtype": "float32",
23
+ "eos_token_id": 200006,
24
+ "image_bos_token_id": 200005,
25
+ "image_token_id": 200054,
26
+ "model_type": "inkling_mm_model",
27
+ "mtp_config": {
28
+ "chain_hidden_post_norm": false,
29
+ "local_layer_ids": [
30
+ 0
31
+ ],
32
+ "num_nextn_predict_layers": 1
33
+ },
34
+ "pad_token_id": 199999,
35
+ "text_config": {
36
+ "attention_dropout": 0.0,
37
+ "bos_token_id": 1,
38
+ "chain_hidden_post_norm": false,
39
+ "conv_kernel_size": 4,
40
+ "d_rel": 16,
41
+ "dtype": "float32",
42
+ "eos_token_id": 2,
43
+ "final_logit_softcapping": null,
44
+ "gate_activation": "sigmoid",
45
+ "head_dim": 128,
46
+ "hidden_act": "silu",
47
+ "hidden_size": 1024,
48
+ "initializer_range": 0.02,
49
+ "intermediate_size": 4096,
50
+ "layer_types": [
51
+ "hybrid_sliding",
52
+ "hybrid_sliding",
53
+ "hybrid_sliding",
54
+ "hybrid_sliding",
55
+ "hybrid_sliding",
56
+ "hybrid",
57
+ "hybrid_sliding",
58
+ "hybrid_sliding",
59
+ "hybrid_sliding",
60
+ "hybrid_sliding",
61
+ "hybrid_sliding",
62
+ "hybrid"
63
+ ],
64
+ "local_layer_ids": [
65
+ 0,
66
+ 1,
67
+ 2,
68
+ 3,
69
+ 4,
70
+ 6,
71
+ 7,
72
+ 8,
73
+ 9,
74
+ 10
75
+ ],
76
+ "log_scaling_alpha": 0.1,
77
+ "log_scaling_n_floor": 128000,
78
+ "logits_mup_width_multiplier": 24.0,
79
+ "max_position_embeddings": 1048576,
80
+ "mlp_layer_types": [
81
+ "dense",
82
+ "dense",
83
+ "sparse",
84
+ "sparse",
85
+ "sparse",
86
+ "sparse",
87
+ "sparse",
88
+ "sparse",
89
+ "sparse",
90
+ "sparse",
91
+ "sparse",
92
+ "sparse"
93
+ ],
94
+ "model_type": "inkling_text",
95
+ "moe_intermediate_size": 512,
96
+ "mtp_hidden_states_first": true,
97
+ "mtp_local_layer_ids": [
98
+ 0
99
+ ],
100
+ "n_routed_experts": 8,
101
+ "n_shared_experts": 2,
102
+ "norm_after_topk": true,
103
+ "num_attention_heads": 8,
104
+ "num_experts_per_tok": 4,
105
+ "num_hidden_layers": 12,
106
+ "num_key_value_heads": 2,
107
+ "num_mtp_layers": 1,
108
+ "number_of_conv_states": 4,
109
+ "o_bias": false,
110
+ "pad_token_id": null,
111
+ "q_bias": false,
112
+ "rel_extent": 1024,
113
+ "rms_norm_eps": 1e-06,
114
+ "rms_norm_eps_moe_gate": 1e-06,
115
+ "route_scale": 8.0,
116
+ "shared_expert_sink": true,
117
+ "sliding_window_size": 512,
118
+ "swa_head_dim": 128,
119
+ "swa_num_attention_heads": 8,
120
+ "swa_num_key_value_heads": 4,
121
+ "unpadded_vocab_size": 200058,
122
+ "use_embed_norm": true,
123
+ "use_gate_bias": true,
124
+ "use_global_scale": true,
125
+ "use_sconv": true,
126
+ "vocab_size": 201024
127
+ },
128
+ "transformers_version": "5.15.0.dev0",
129
+ "use_cache": false,
130
+ "vision_config": {
131
+ "decoder_dmodel": 1024,
132
+ "dtype": "float32",
133
+ "hidden_size": 256,
134
+ "initializer_range": 0.02,
135
+ "model_type": "inkling_vision",
136
+ "n_channels": 3,
137
+ "n_layers": 1,
138
+ "num_attention_heads": 4,
139
+ "num_channels": 3,
140
+ "patch_size": 40,
141
+ "rms_norm_eps": 1e-06,
142
+ "temporal_patch_size": 2,
143
+ "text_hidden_size": 1024,
144
+ "use_vision_norm": true,
145
+ "vision_encoder_type": "hmlp"
146
+ }
147
+ }
checkpoint-500/generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": 200006,
4
+ "transformers_version": "5.15.0.dev0"
5
+ }
checkpoint-500/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f5c357e4c8595c6824b85cfd3bfd638f9e6146820860541dfbc275ca2725864
3
+ size 2575851840
checkpoint-500/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd69e4ce997e8f693929afde9c6686a544ecc521f2aed14f0689c8b4d1a74d05
3
+ size 5062717107
checkpoint-500/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15ee528056f07c19317245e7773425308d6714ebe9e8a160053cedead6bf6b4d
3
+ size 14645
checkpoint-500/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3ef6ba76f01a0d88ff85f316c9e95c0097570b073585fb3e4d15f6283c5a23c
3
+ size 1465
checkpoint-500/trainer_state.json ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 250.0,
6
+ "eval_steps": 500,
7
+ "global_step": 500,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.5,
14
+ "grad_norm": 0.679200291633606,
15
+ "learning_rate": 0.0005,
16
+ "loss": 12.211211204528809,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 5.0,
21
+ "grad_norm": 0.23044489324092865,
22
+ "learning_rate": 0.00049775,
23
+ "loss": 11.982609219021267,
24
+ "step": 10
25
+ },
26
+ {
27
+ "epoch": 10.0,
28
+ "grad_norm": 0.1907351166009903,
29
+ "learning_rate": 0.00049525,
30
+ "loss": 11.555101013183593,
31
+ "step": 20
32
+ },
33
+ {
34
+ "epoch": 15.0,
35
+ "grad_norm": 0.19268812239170074,
36
+ "learning_rate": 0.00049275,
37
+ "loss": 11.236198425292969,
38
+ "step": 30
39
+ },
40
+ {
41
+ "epoch": 20.0,
42
+ "grad_norm": 0.17933021485805511,
43
+ "learning_rate": 0.00049025,
44
+ "loss": 10.943867492675782,
45
+ "step": 40
46
+ },
47
+ {
48
+ "epoch": 25.0,
49
+ "grad_norm": 0.1976073980331421,
50
+ "learning_rate": 0.00048775,
51
+ "loss": 10.657130432128906,
52
+ "step": 50
53
+ },
54
+ {
55
+ "epoch": 30.0,
56
+ "grad_norm": 0.18433284759521484,
57
+ "learning_rate": 0.00048525,
58
+ "loss": 10.351960754394531,
59
+ "step": 60
60
+ },
61
+ {
62
+ "epoch": 35.0,
63
+ "grad_norm": 0.1888311803340912,
64
+ "learning_rate": 0.00048275,
65
+ "loss": 10.020181274414062,
66
+ "step": 70
67
+ },
68
+ {
69
+ "epoch": 40.0,
70
+ "grad_norm": 0.19162487983703613,
71
+ "learning_rate": 0.00048025000000000005,
72
+ "loss": 9.66613540649414,
73
+ "step": 80
74
+ },
75
+ {
76
+ "epoch": 45.0,
77
+ "grad_norm": 0.19730256497859955,
78
+ "learning_rate": 0.00047775000000000004,
79
+ "loss": 9.297232818603515,
80
+ "step": 90
81
+ },
82
+ {
83
+ "epoch": 50.0,
84
+ "grad_norm": 0.2213529646396637,
85
+ "learning_rate": 0.00047525000000000003,
86
+ "loss": 8.914820861816406,
87
+ "step": 100
88
+ },
89
+ {
90
+ "epoch": 55.0,
91
+ "grad_norm": 0.2195209115743637,
92
+ "learning_rate": 0.00047275,
93
+ "loss": 8.521177673339844,
94
+ "step": 110
95
+ },
96
+ {
97
+ "epoch": 60.0,
98
+ "grad_norm": 0.2313990592956543,
99
+ "learning_rate": 0.00047025,
100
+ "loss": 8.118896484375,
101
+ "step": 120
102
+ },
103
+ {
104
+ "epoch": 65.0,
105
+ "grad_norm": 0.23104608058929443,
106
+ "learning_rate": 0.00046775,
107
+ "loss": 7.713725280761719,
108
+ "step": 130
109
+ },
110
+ {
111
+ "epoch": 70.0,
112
+ "grad_norm": 0.2376953512430191,
113
+ "learning_rate": 0.00046525,
114
+ "loss": 7.309984588623047,
115
+ "step": 140
116
+ },
117
+ {
118
+ "epoch": 75.0,
119
+ "grad_norm": 0.24835970997810364,
120
+ "learning_rate": 0.00046275,
121
+ "loss": 6.910225677490234,
122
+ "step": 150
123
+ },
124
+ {
125
+ "epoch": 80.0,
126
+ "grad_norm": 0.2480894923210144,
127
+ "learning_rate": 0.00046025,
128
+ "loss": 6.521015167236328,
129
+ "step": 160
130
+ },
131
+ {
132
+ "epoch": 85.0,
133
+ "grad_norm": 0.2478545904159546,
134
+ "learning_rate": 0.00045775,
135
+ "loss": 6.150957870483398,
136
+ "step": 170
137
+ },
138
+ {
139
+ "epoch": 90.0,
140
+ "grad_norm": 0.23328417539596558,
141
+ "learning_rate": 0.00045525,
142
+ "loss": 5.809443664550781,
143
+ "step": 180
144
+ },
145
+ {
146
+ "epoch": 95.0,
147
+ "grad_norm": 0.23083385825157166,
148
+ "learning_rate": 0.00045275,
149
+ "loss": 5.494760131835937,
150
+ "step": 190
151
+ },
152
+ {
153
+ "epoch": 100.0,
154
+ "grad_norm": 0.2354152798652649,
155
+ "learning_rate": 0.00045024999999999997,
156
+ "loss": 5.214201736450195,
157
+ "step": 200
158
+ },
159
+ {
160
+ "epoch": 105.0,
161
+ "grad_norm": 0.2212478518486023,
162
+ "learning_rate": 0.00044775,
163
+ "loss": 4.965381622314453,
164
+ "step": 210
165
+ },
166
+ {
167
+ "epoch": 110.0,
168
+ "grad_norm": 0.22108030319213867,
169
+ "learning_rate": 0.00044525,
170
+ "loss": 4.736624145507813,
171
+ "step": 220
172
+ },
173
+ {
174
+ "epoch": 115.0,
175
+ "grad_norm": 0.2202872782945633,
176
+ "learning_rate": 0.00044275,
177
+ "loss": 4.5371543884277346,
178
+ "step": 230
179
+ },
180
+ {
181
+ "epoch": 120.0,
182
+ "grad_norm": 0.21908171474933624,
183
+ "learning_rate": 0.00044025,
184
+ "loss": 4.3416389465332035,
185
+ "step": 240
186
+ },
187
+ {
188
+ "epoch": 125.0,
189
+ "grad_norm": 0.2539515495300293,
190
+ "learning_rate": 0.00043775,
191
+ "loss": 4.155947875976563,
192
+ "step": 250
193
+ },
194
+ {
195
+ "epoch": 130.0,
196
+ "grad_norm": 0.2240767925977707,
197
+ "learning_rate": 0.00043525000000000004,
198
+ "loss": 3.977610397338867,
199
+ "step": 260
200
+ },
201
+ {
202
+ "epoch": 135.0,
203
+ "grad_norm": 0.20758213102817535,
204
+ "learning_rate": 0.00043275000000000003,
205
+ "loss": 3.791416549682617,
206
+ "step": 270
207
+ },
208
+ {
209
+ "epoch": 140.0,
210
+ "grad_norm": 0.21930797398090363,
211
+ "learning_rate": 0.00043025,
212
+ "loss": 3.613859939575195,
213
+ "step": 280
214
+ },
215
+ {
216
+ "epoch": 145.0,
217
+ "grad_norm": 0.20898985862731934,
218
+ "learning_rate": 0.00042775,
219
+ "loss": 3.4412445068359374,
220
+ "step": 290
221
+ },
222
+ {
223
+ "epoch": 150.0,
224
+ "grad_norm": 0.21812506020069122,
225
+ "learning_rate": 0.00042525,
226
+ "loss": 3.2678699493408203,
227
+ "step": 300
228
+ },
229
+ {
230
+ "epoch": 155.0,
231
+ "grad_norm": 0.20785079896450043,
232
+ "learning_rate": 0.00042275,
233
+ "loss": 3.101655387878418,
234
+ "step": 310
235
+ },
236
+ {
237
+ "epoch": 160.0,
238
+ "grad_norm": 0.20621119439601898,
239
+ "learning_rate": 0.00042025,
240
+ "loss": 2.9381855010986326,
241
+ "step": 320
242
+ },
243
+ {
244
+ "epoch": 165.0,
245
+ "grad_norm": 0.2516527771949768,
246
+ "learning_rate": 0.00041775000000000004,
247
+ "loss": 2.779329299926758,
248
+ "step": 330
249
+ },
250
+ {
251
+ "epoch": 170.0,
252
+ "grad_norm": 0.2031988501548767,
253
+ "learning_rate": 0.00041525000000000004,
254
+ "loss": 2.6272861480712892,
255
+ "step": 340
256
+ },
257
+ {
258
+ "epoch": 175.0,
259
+ "grad_norm": 0.19911770522594452,
260
+ "learning_rate": 0.00041275000000000003,
261
+ "loss": 2.466817855834961,
262
+ "step": 350
263
+ },
264
+ {
265
+ "epoch": 180.0,
266
+ "grad_norm": 0.19864623248577118,
267
+ "learning_rate": 0.00041025,
268
+ "loss": 2.3201425552368162,
269
+ "step": 360
270
+ },
271
+ {
272
+ "epoch": 185.0,
273
+ "grad_norm": 0.1971900314092636,
274
+ "learning_rate": 0.00040775,
275
+ "loss": 2.173211097717285,
276
+ "step": 370
277
+ },
278
+ {
279
+ "epoch": 190.0,
280
+ "grad_norm": 0.19130639731884003,
281
+ "learning_rate": 0.00040525,
282
+ "loss": 2.038584518432617,
283
+ "step": 380
284
+ },
285
+ {
286
+ "epoch": 195.0,
287
+ "grad_norm": 0.2037324756383896,
288
+ "learning_rate": 0.00040275,
289
+ "loss": 1.9071189880371093,
290
+ "step": 390
291
+ },
292
+ {
293
+ "epoch": 200.0,
294
+ "grad_norm": 0.18795250356197357,
295
+ "learning_rate": 0.00040025,
296
+ "loss": 1.782277488708496,
297
+ "step": 400
298
+ },
299
+ {
300
+ "epoch": 205.0,
301
+ "grad_norm": 0.18380966782569885,
302
+ "learning_rate": 0.00039775,
303
+ "loss": 1.663627815246582,
304
+ "step": 410
305
+ },
306
+ {
307
+ "epoch": 210.0,
308
+ "grad_norm": 0.1786879301071167,
309
+ "learning_rate": 0.00039525,
310
+ "loss": 1.5451311111450194,
311
+ "step": 420
312
+ },
313
+ {
314
+ "epoch": 215.0,
315
+ "grad_norm": 0.17858438193798065,
316
+ "learning_rate": 0.00039275,
317
+ "loss": 1.4358247756958007,
318
+ "step": 430
319
+ },
320
+ {
321
+ "epoch": 220.0,
322
+ "grad_norm": 0.1655775010585785,
323
+ "learning_rate": 0.00039024999999999997,
324
+ "loss": 1.332811450958252,
325
+ "step": 440
326
+ },
327
+ {
328
+ "epoch": 225.0,
329
+ "grad_norm": 0.1637052446603775,
330
+ "learning_rate": 0.00038774999999999997,
331
+ "loss": 1.2332740783691407,
332
+ "step": 450
333
+ },
334
+ {
335
+ "epoch": 230.0,
336
+ "grad_norm": 0.16148947179317474,
337
+ "learning_rate": 0.00038525,
338
+ "loss": 1.1397903442382813,
339
+ "step": 460
340
+ },
341
+ {
342
+ "epoch": 235.0,
343
+ "grad_norm": 0.15098616480827332,
344
+ "learning_rate": 0.00038275,
345
+ "loss": 1.055152416229248,
346
+ "step": 470
347
+ },
348
+ {
349
+ "epoch": 240.0,
350
+ "grad_norm": 0.15136969089508057,
351
+ "learning_rate": 0.00038025,
352
+ "loss": 0.9760448455810546,
353
+ "step": 480
354
+ },
355
+ {
356
+ "epoch": 245.0,
357
+ "grad_norm": 0.1447116583585739,
358
+ "learning_rate": 0.00037775,
359
+ "loss": 0.8991727828979492,
360
+ "step": 490
361
+ },
362
+ {
363
+ "epoch": 250.0,
364
+ "grad_norm": 0.1393691748380661,
365
+ "learning_rate": 0.00037525,
366
+ "loss": 0.8312561988830567,
367
+ "step": 500
368
+ }
369
+ ],
370
+ "logging_steps": 10,
371
+ "max_steps": 2000,
372
+ "num_input_tokens_seen": 0,
373
+ "num_train_epochs": 1000,
374
+ "save_steps": 500,
375
+ "stateful_callbacks": {
376
+ "TrainerControl": {
377
+ "args": {
378
+ "should_epoch_stop": false,
379
+ "should_evaluate": false,
380
+ "should_log": false,
381
+ "should_save": true,
382
+ "should_training_stop": false
383
+ },
384
+ "attributes": {}
385
+ }
386
+ },
387
+ "total_flos": 1341838872576000.0,
388
+ "train_batch_size": 2,
389
+ "trial_name": null,
390
+ "trial_params": null
391
+ }
checkpoint-500/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d90df91199aaca447f28d3896ff1ea0d98043bc13563aa4dfd901be2ba56c9f
3
+ size 5137
config.json CHANGED
@@ -31,6 +31,7 @@
31
  ],
32
  "num_nextn_predict_layers": 1
33
  },
 
34
  "text_config": {
35
  "attention_dropout": 0.0,
36
  "bos_token_id": 1,
@@ -125,6 +126,7 @@
125
  "vocab_size": 201024
126
  },
127
  "transformers_version": "5.15.0.dev0",
 
128
  "vision_config": {
129
  "decoder_dmodel": 1024,
130
  "dtype": "float32",
 
31
  ],
32
  "num_nextn_predict_layers": 1
33
  },
34
+ "pad_token_id": 199999,
35
  "text_config": {
36
  "attention_dropout": 0.0,
37
  "bos_token_id": 1,
 
126
  "vocab_size": 201024
127
  },
128
  "transformers_version": "5.15.0.dev0",
129
+ "use_cache": false,
130
  "vision_config": {
131
  "decoder_dmodel": 1024,
132
  "dtype": "float32",
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:76205f9e4f2db44e06b8d8bba1983b74fef807e99f1d096f8eb3f411cbd64528
3
  size 2575851840
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93c83f60ebcecddb22b37719fc629fa0fb5a4df3319f76ad83006ad85f3c1f4e
3
  size 2575851840
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c470271fb7649eef922e660e757b5f076e2a94adc20df7fad7df85c46bc48eac
3
- size 27875796
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a346ede0ded2d4b1e1d59547c8887d2d2c4bb94c13c9021e2b405a0cc3a7c89
3
+ size 27876074
tokenizer_config.json CHANGED
@@ -15,8 +15,9 @@
15
  "content_xml": "<|content_xml|>",
16
  "end_message": "<|end_message|>",
17
  "endoftext": "<|endoftext|>",
 
18
  "fix_mistral_regex": false,
19
- "is_local": false,
20
  "local_files_only": false,
21
  "message_model": "<|message_model|>",
22
  "message_system": "<|message_system|>",
@@ -43,6 +44,7 @@
43
  "message_tool": "<|message_tool|>",
44
  "message_user": "<|message_user|>"
45
  },
 
46
  "processor_class": "InklingProcessor",
47
  "tokenizer_class": "TokenizersBackend"
48
  }
 
15
  "content_xml": "<|content_xml|>",
16
  "end_message": "<|end_message|>",
17
  "endoftext": "<|endoftext|>",
18
+ "eos_token": "<|endoftext|>",
19
  "fix_mistral_regex": false,
20
+ "is_local": true,
21
  "local_files_only": false,
22
  "message_model": "<|message_model|>",
23
  "message_system": "<|message_system|>",
 
44
  "message_tool": "<|message_tool|>",
45
  "message_user": "<|message_user|>"
46
  },
47
+ "pad_token": "<|endoftext|>",
48
  "processor_class": "InklingProcessor",
49
  "tokenizer_class": "TokenizersBackend"
50
  }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d90df91199aaca447f28d3896ff1ea0d98043bc13563aa4dfd901be2ba56c9f
3
+ size 5137