Rhett1 commited on
Commit
deb7d02
·
verified ·
1 Parent(s): 9211fde

reorg: remove superseded path tt3-qwen2.5-3b/

Browse files
tt3-qwen2.5-3b/LICENSE DELETED
@@ -1,54 +0,0 @@
1
- Qwen RESEARCH LICENSE AGREEMENT
2
-
3
- Qwen RESEARCH LICENSE AGREEMENT Release Date: September 19, 2024
4
-
5
- By clicking to agree or by using or distributing any portion or element of the Qwen Materials, you will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately.
6
-
7
- 1. Definitions
8
- a. This Qwen RESEARCH LICENSE AGREEMENT (this "Agreement") shall mean the terms and conditions for use, reproduction, distribution and modification of the Materials as defined by this Agreement.
9
- b. "We" (or "Us") shall mean Alibaba Cloud.
10
- c. "You" (or "Your") shall mean a natural person or legal entity exercising the rights granted by this Agreement and/or using the Materials for any purpose and in any field of use.
11
- d. "Third Parties" shall mean individuals or legal entities that are not under common control with us or you.
12
- e. "Qwen" shall mean the large language models, and software and algorithms, consisting of trained model weights, parameters (including optimizer states), machine-learning model code, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing distributed by us.
13
- f. "Materials" shall mean, collectively, Alibaba Cloud's proprietary Qwen and Documentation (and any portion thereof) made available under this Agreement.
14
- g. "Source" form shall mean the preferred form for making modifications, including but not limited to model source code, documentation source, and configuration files.
15
- h. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
16
- i. "Non-Commercial" shall mean for research or evaluation purposes only.
17
-
18
- 2. Grant of Rights
19
- a. You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under Alibaba Cloud's intellectual property or other rights owned by us embodied in the Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the Materials FOR NON-COMMERCIAL PURPOSES ONLY.
20
- b. If you are commercially using the Materials, you shall request a license from us.
21
-
22
- 3. Redistribution
23
- You may distribute copies or make the Materials, or derivative works thereof, available as part of a product or service that contains any of them, with or without modifications, and in Source or Object form, provided that you meet the following conditions:
24
- a. You shall give any other recipients of the Materials or derivative works a copy of this Agreement;
25
- b. You shall cause any modified files to carry prominent notices stating that you changed the files;
26
- c. You shall retain in all copies of the Materials that you distribute the following attribution notices within a "Notice" text file distributed as a part of such copies: "Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) Alibaba Cloud. All Rights Reserved."; and
27
- d. You may add your own copyright statement to your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of your modifications, or for any such derivative works as a whole, provided your use, reproduction, and distribution of the work otherwise complies with the terms and conditions of this Agreement.
28
-
29
- 4. Rules of use
30
- a. The Materials may be subject to export controls or restrictions in China, the United States or other countries or regions. You shall comply with applicable laws and regulations in your use of the Materials.
31
- b. If you use the Materials or any outputs or results therefrom to create, train, fine-tune, or improve an AI model that is distributed or made available, you shall prominently display “Built with Qwen” or “Improved using Qwen” in the related product documentation.
32
-
33
- 5. Intellectual Property
34
- a. We retain ownership of all intellectual property rights in and to the Materials and derivatives made by or for us. Conditioned upon compliance with the terms and conditions of this Agreement, with respect to any derivative works and modifications of the Materials that are made by you, you are and will be the owner of such derivative works and modifications.
35
- b. No trademark license is granted to use the trade names, trademarks, service marks, or product names of us, except as required to fulfill notice requirements under this Agreement or as required for reasonable and customary use in describing and redistributing the Materials.
36
- c. If you commence a lawsuit or other proceedings (including a cross-claim or counterclaim in a lawsuit) against us or any entity alleging that the Materials or any output therefrom, or any part of the foregoing, infringe any intellectual property or other right owned or licensable by you, then all licenses granted to you under this Agreement shall terminate as of the date such lawsuit or other proceeding is commenced or brought.
37
-
38
- 6. Disclaimer of Warranty and Limitation of Liability
39
- a. We are not obligated to support, update, provide training for, or develop any further version of the Qwen Materials or to grant any license thereto.
40
- b. THE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. WE MAKE NO WARRANTY AND ASSUME NO RESPONSIBILITY FOR THE SAFETY OR STABILITY OF THE MATERIALS AND ANY OUTPUT THEREFROM.
41
- c. IN NO EVENT SHALL WE BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE MATERIALS OR ANY OUTPUT OF IT, NO MATTER HOW IT’S CAUSED.
42
- d. You will defend, indemnify and hold harmless us from and against any claim by any third party arising out of or related to your use or distribution of the Materials.
43
-
44
- 7. Survival and Termination.
45
- a. The term of this Agreement shall commence upon your acceptance of this Agreement or access to the Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein.
46
- b. We may terminate this Agreement if you breach any of the terms or conditions of this Agreement. Upon termination of this Agreement, you must delete and cease use of the Materials. Sections 6 and 8 shall survive the termination of this Agreement.
47
-
48
- 8. Governing Law and Jurisdiction.
49
- a. This Agreement and any dispute arising out of or relating to it will be governed by the laws of China, without regard to conflict of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
50
- b. The People's Courts in Hangzhou City shall have exclusive jurisdiction over any dispute arising out of this Agreement.
51
-
52
- 9. Other Terms and Conditions.
53
- a. Any arrangements, understandings, or agreements regarding the Material not stated herein are separate from and independent of the terms and conditions of this Agreement. You shall request a separate license from us, if you use the Materials in ways not expressly agreed to in this Agreement.
54
- b. We shall not be bound by any additional or different terms or conditions communicated by you unless expressly agreed.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tt3-qwen2.5-3b/NOTICE DELETED
@@ -1,17 +0,0 @@
1
- Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT,
2
- Copyright (c) Alibaba Cloud. All Rights Reserved.
3
-
4
- This repository contains a DERIVATIVE WORK of Qwen/Qwen2.5-3B-Instruct.
5
-
6
- Modifications made to the Qwen Materials (Qwen RESEARCH LICENSE AGREEMENT, section 3.b):
7
- * Every attention and MLP projection weight has been replaced by a 3-site Tensor Ring
8
- factorisation plus a 5% sparse residual. The original dense nn.Linear weights are NOT
9
- present in this repository; state_dict_fp16.pt contains ring cores, not dense matrices.
10
- * The resulting network was further trained by pure forward-KL knowledge distillation
11
- from the unmodified Qwen2.5-3B-Instruct teacher for 60M tokens.
12
- * config.json is copied unmodified from the base model and is retained only as
13
- architecture metadata; it does NOT describe the weights in this repository.
14
-
15
- USE IS RESTRICTED TO NON-COMMERCIAL PURPOSES (research or evaluation only), per section 2.a
16
- of the Qwen RESEARCH LICENSE AGREEMENT. Commercial use requires a separate licence from
17
- Alibaba Cloud. See the LICENSE file in this repository for the full agreement.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tt3-qwen2.5-3b/README.md DELETED
@@ -1,102 +0,0 @@
1
- ---
2
- license: other
3
- license_name: qwen-research
4
- license_link: LICENSE
5
- base_model: Qwen/Qwen2.5-3B-Instruct
6
- tags:
7
- - tensor-decomposition
8
- - tensor-train
9
- - model-compression
10
- - qwen2
11
- ---
12
-
13
- # TT-3 control: Qwen2.5-3B-Instruct @ 2.08B — **topology control** — unhealed and healed weights both included
14
-
15
- A 3-site **Tensor Train** (open chain, boundary bond pinned to `r_0 = 1`) at the *same*
16
- per-layer parameter budget as [`qwen2.5-3b/`](../qwen2.5-3b)'s Tensor Ring. It exists to answer
17
- one question — *does closing the ring help, at equal parameters?* — and nothing else.
18
-
19
- ## ⚠️ Non-commercial use only
20
-
21
- Derived from Qwen2.5-3B-Instruct, under the **Qwen RESEARCH LICENSE AGREEMENT** — research and
22
- evaluation only. See `LICENSE` and `NOTICE`.
23
-
24
- ## ⚠️ Read before comparing this to anything
25
-
26
- - **This checkpoint has NOT been healed.** Every other directory in this repository received
27
- 60M tokens of knowledge distillation; this one received none. Putting its scores in the same
28
- table as theirs, or next to the dense teacher, compares two different things.
29
- - It is a **control arm**, not a model anyone should deploy.
30
-
31
- ## What is matched, and what is not
32
-
33
- Matched to `qwen2.5-3b/` layer by layer: the per-layer core budget is copied from that run's
34
- own `ranks.json`, with the same mode splits, pairing, activation weighting, calibration data,
35
- sparse density and seed. Only the boundary bond differs.
36
-
37
- | | Ring (`qwen2.5-3b/`) | Train (here) |
38
- |---|---|---|
39
- | Params | 2.0783B | **2.0766B** (−0.08%) |
40
- | Reduction | 32.65% | **32.71%** |
41
- | q/o ranks | (64, 64, 68) | **(1, 64, 149)** |
42
- | k/v ranks | (32, 32, 34) | **(1, 32, 73)** |
43
- | gate/up/down ranks | (111, 111, 111) | **(1, 128, 394)** |
44
-
45
- Qwen2's q/k/v carry a bias that its modeling code hardcodes while the config has no
46
- `attention_bias` key at all — inspecting the config reports "no bias" and is wrong. All 108
47
- biases (36 blocks x q/k/v) are carried into the compressed layers; dropping them would keep
48
- every shape valid and only move the accuracy.
49
-
50
- **The two TT bonds are deliberately unequal** (`r_1 ≤ d_0`, `r_2 ≤ d_2`, and on the MLP shapes
51
- those are 128 and 688). Forcing them equal would ask for ranks above the cap and hand the
52
- control a budget it cannot spend.
53
-
54
- **ALS did not run on 108 of the 252 layers** — the three MLP projections of every block, whose
55
- `(r_k · r_{k+1})²` normal equations need ~10 GB plus a factorisation copy. Those use the TT-SVD
56
- solution. Measured on this project's layer sweeps, ALS is worth **0.0–0.5%** to a 3-site train,
57
- so the control is close to its best achievable fit; the gap is stated rather than left implicit.
58
-
59
- Median activation-weighted reconstruction error 0.5894 (max 0.6054); full per-layer detail,
60
- including which layers skipped ALS and the checkpoint sha256, is in `provenance.json`.
61
-
62
- ## Loading
63
-
64
- Same recipe as the other tensor directories: rebuild each named projection as
65
- `TRLinear` / `SparseAugTRLinear` from `tensor_formats.py` using `ranks.json`, **carrying the
66
- q/k/v bias**, then load `state_dict_fp16_unhealed.pt` with `strict=False` and assert 0 missing /
67
- 0 unexpected. Call `materialize_()` before evaluation.
68
-
69
- ---
70
-
71
- ## Healed weights added: `state_dict_fp16_healed.pt`
72
-
73
- The original `state_dict_fp16_unhealed.pt` is unchanged and still present. This file is the
74
- same network after **60M tokens of pure forward-KL distillation** from the unmodified dense
75
- teacher (alpha=1, no gold labels) — the same healing the TR-3 arm received, so the two can be
76
- compared after healing and not only at compression time.
77
-
78
- | | TT-3 (this dir) | TR-3 (ring) |
79
- |---|---:|---:|
80
- | held-out KL, compressed | 6.3507 | 0.8888 |
81
- | held-out KL, healed | **0.3955** | **0.1729** |
82
- | MMLU, compressed | 24.82% | 44.52% |
83
- | MMLU, healed | **43.33%** | **57.41%** |
84
- | teacher MMLU (same probe) | 69.21% | 69.21% |
85
-
86
- The ring is ahead at both stages: roughly 9x lower KL before healing and ~2.3x after, with
87
- 14.08 points more MMLU, at a parameter budget matched to within 0.1%.
88
-
89
- ### Two confounds, stated rather than buried
90
-
91
- **1. Batch size.** This healing used `tokens_per_step = 32768`; the TR-3 arms used 16384. Both
92
- saw the same 60M tokens from the same seeded mixture, so the data is matched, but the number of
93
- optimiser updates and the effective LR schedule are not. The **compression-stage** gap (the
94
- first row of the table) predates healing entirely and is free of this confound; the healed rows
95
- are not.
96
-
97
- **2. ALS coverage.** `provenance.json` records that this arm fell back to TT-SVD without ALS on
98
- many layers because the normal equations did not fit in memory, while the TR-3 arm ran 20 ALS
99
- sweeps everywhere. That asymmetry is real but is **not** what drives the gap, and the arm's own
100
- per-layer data shows why: within this checkpoint, layers that got ALS and layers that did not
101
- differ by ~0.02 in whitened relative error, while the TT-vs-TR difference is ~0.21 — an order of
102
- magnitude larger, and the same 1.56x ratio on both models.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tt3-qwen2.5-3b/config.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "_name_or_path": "Qwen/Qwen2.5-3B-Instruct",
3
- "architectures": [
4
- "Qwen2ForCausalLM"
5
- ],
6
- "attention_dropout": 0.0,
7
- "bos_token_id": 151643,
8
- "eos_token_id": 151645,
9
- "hidden_act": "silu",
10
- "hidden_size": 2048,
11
- "initializer_range": 0.02,
12
- "intermediate_size": 11008,
13
- "max_position_embeddings": 32768,
14
- "max_window_layers": 70,
15
- "model_type": "qwen2",
16
- "num_attention_heads": 16,
17
- "num_hidden_layers": 36,
18
- "num_key_value_heads": 2,
19
- "rms_norm_eps": 1e-06,
20
- "rope_scaling": null,
21
- "rope_theta": 1000000.0,
22
- "sliding_window": null,
23
- "tie_word_embeddings": true,
24
- "torch_dtype": "bfloat16",
25
- "transformers_version": "4.46.3",
26
- "use_cache": true,
27
- "use_sliding_window": false,
28
- "vocab_size": 151936
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tt3-qwen2.5-3b/provenance.json DELETED
@@ -1,3052 +0,0 @@
1
- {
2
- "kind": "compress_generic",
3
- "structure": "train",
4
- "model_id": "Qwen/Qwen2.5-3B-Instruct",
5
- "model_revision": "aa8e72537993ba99e69dfaafa59ed015b17504d1",
6
- "ranks_template": "/work1/zixuan/checkpoints/Compactif/hf_qwen3b/qwen2.5-3b/ranks.json",
7
- "budget_note": "per-layer core budget copied EXACTLY from the template's own core count, and the same sparse nnz, so the arms are matched layer by layer rather than only in aggregate. The matrix arm has no sparse-augmented layer type here, so its nnz share is spent on extra rank instead.",
8
- "index_storage_caveat": "matched on PARAMETER count. sp_idx is a buffer, not a Parameter, so the tensor arms additionally store nnz int64 indices that this count excludes. In BYTES the tensor arms are therefore larger, and any size claim must say which of the two conventions it uses.",
9
- "dense_total": 3085938688,
10
- "achieved_total": 2076606220,
11
- "reduction": 0.3271,
12
- "n_layers": 252,
13
- "n_biases_carried": 108,
14
- "n_als_skipped_for_memory": 108,
15
- "als_note": "a layer whose (r_k r_{k+1})^2 normal equations do not fit is fitted by TT-SVD alone. Layer-level sweeps in this project bound what that costs a train at 0.1-0.5%; a RING loses far more without ALS, so this fallback is not symmetric and must be reported per arm.",
16
- "calib_blocks": 256,
17
- "seq_len": 1024,
18
- "lam_ratio": 0.0001,
19
- "seed": 1234,
20
- "tr_sweeps": 20,
21
- "tr_restarts": 1,
22
- "checkpoint": "/work1/zixuan/checkpoints/Compactif/qwen3b_tt3_matched/state_dict_fp16.pt",
23
- "sha256": "213a70c30131976d02054e2000ed0df4bb2238fe6bb33b8948803268456c073e",
24
- "elapsed_s": 1012.1,
25
- "timestamp": "2026-09-05T15:47:18.110056+00:00",
26
- "per_layer": {
27
- "model.layers.0.self_attn.q_proj": {
28
- "ranks": [
29
- 1,
30
- 64,
31
- 149
32
- ],
33
- "params": 2483456,
34
- "rel_err_whitened": 0.573298,
35
- "als_skipped_for_memory": false,
36
- "winner": "tt_padded",
37
- "sep_rel": 0.934272
38
- },
39
- "model.layers.0.self_attn.k_proj": {
40
- "ranks": [
41
- 1,
42
- 32,
43
- 73
44
- ],
45
- "params": 309376,
46
- "rel_err_whitened": 0.587915,
47
- "als_skipped_for_memory": false,
48
- "winner": "tt_padded",
49
- "sep_rel": 0.934272
50
- },
51
- "model.layers.0.self_attn.v_proj": {
52
- "ranks": [
53
- 1,
54
- 32,
55
- 73
56
- ],
57
- "params": 309376,
58
- "rel_err_whitened": 0.592489,
59
- "als_skipped_for_memory": false,
60
- "winner": "tt_padded",
61
- "sep_rel": 0.934272
62
- },
63
- "model.layers.0.self_attn.o_proj": {
64
- "ranks": [
65
- 1,
66
- 64,
67
- 149
68
- ],
69
- "params": 2483456,
70
- "rel_err_whitened": 0.57016,
71
- "als_skipped_for_memory": false,
72
- "winner": "tt_padded",
73
- "sep_rel": 0.942271
74
- },
75
- "model.layers.0.mlp.gate_proj": {
76
- "ranks": [
77
- 1,
78
- 128,
79
- 394
80
- ],
81
- "params": 13198048,
82
- "rel_err_whitened": 0.566544,
83
- "als_skipped_for_memory": true,
84
- "winner": "tt_init",
85
- "sep_rel": 0.888234
86
- },
87
- "model.layers.0.mlp.up_proj": {
88
- "ranks": [
89
- 1,
90
- 128,
91
- 394
92
- ],
93
- "params": 13198048,
94
- "rel_err_whitened": 0.567096,
95
- "als_skipped_for_memory": true,
96
- "winner": "tt_init",
97
- "sep_rel": 0.888234
98
- },
99
- "model.layers.0.mlp.down_proj": {
100
- "ranks": [
101
- 1,
102
- 128,
103
- 394
104
- ],
105
- "params": 13198048,
106
- "rel_err_whitened": 0.603753,
107
- "als_skipped_for_memory": true,
108
- "winner": "tt_init",
109
- "sep_rel": 0.983426
110
- },
111
- "model.layers.1.self_attn.q_proj": {
112
- "ranks": [
113
- 1,
114
- 64,
115
- 149
116
- ],
117
- "params": 2483456,
118
- "rel_err_whitened": 0.568228,
119
- "als_skipped_for_memory": false,
120
- "winner": "tt_padded",
121
- "sep_rel": 0.984921
122
- },
123
- "model.layers.1.self_attn.k_proj": {
124
- "ranks": [
125
- 1,
126
- 32,
127
- 73
128
- ],
129
- "params": 309376,
130
- "rel_err_whitened": 0.571913,
131
- "als_skipped_for_memory": false,
132
- "winner": "tt_padded",
133
- "sep_rel": 0.984921
134
- },
135
- "model.layers.1.self_attn.v_proj": {
136
- "ranks": [
137
- 1,
138
- 32,
139
- 73
140
- ],
141
- "params": 309376,
142
- "rel_err_whitened": 0.578664,
143
- "als_skipped_for_memory": false,
144
- "winner": "tt_padded",
145
- "sep_rel": 0.984921
146
- },
147
- "model.layers.1.self_attn.o_proj": {
148
- "ranks": [
149
- 1,
150
- 64,
151
- 149
152
- ],
153
- "params": 2483456,
154
- "rel_err_whitened": 0.571294,
155
- "als_skipped_for_memory": false,
156
- "winner": "tt_padded",
157
- "sep_rel": 0.993075
158
- },
159
- "model.layers.1.mlp.gate_proj": {
160
- "ranks": [
161
- 1,
162
- 128,
163
- 394
164
- ],
165
- "params": 13198048,
166
- "rel_err_whitened": 0.568371,
167
- "als_skipped_for_memory": true,
168
- "winner": "tt_init",
169
- "sep_rel": 0.999996
170
- },
171
- "model.layers.1.mlp.up_proj": {
172
- "ranks": [
173
- 1,
174
- 128,
175
- 394
176
- ],
177
- "params": 13198048,
178
- "rel_err_whitened": 0.553913,
179
- "als_skipped_for_memory": true,
180
- "winner": "tt_init",
181
- "sep_rel": 0.999996
182
- },
183
- "model.layers.1.mlp.down_proj": {
184
- "ranks": [
185
- 1,
186
- 128,
187
- 394
188
- ],
189
- "params": 13198048,
190
- "rel_err_whitened": 0.508577,
191
- "als_skipped_for_memory": true,
192
- "winner": "tt_init",
193
- "sep_rel": 0.999999
194
- },
195
- "model.layers.2.self_attn.q_proj": {
196
- "ranks": [
197
- 1,
198
- 64,
199
- 149
200
- ],
201
- "params": 2483456,
202
- "rel_err_whitened": 0.574501,
203
- "als_skipped_for_memory": false,
204
- "winner": "tt_padded",
205
- "sep_rel": 0.981545
206
- },
207
- "model.layers.2.self_attn.k_proj": {
208
- "ranks": [
209
- 1,
210
- 32,
211
- 73
212
- ],
213
- "params": 309376,
214
- "rel_err_whitened": 0.574586,
215
- "als_skipped_for_memory": false,
216
- "winner": "tt_padded",
217
- "sep_rel": 0.981545
218
- },
219
- "model.layers.2.self_attn.v_proj": {
220
- "ranks": [
221
- 1,
222
- 32,
223
- 73
224
- ],
225
- "params": 309376,
226
- "rel_err_whitened": 0.585155,
227
- "als_skipped_for_memory": false,
228
- "winner": "tt_padded",
229
- "sep_rel": 0.981545
230
- },
231
- "model.layers.2.self_attn.o_proj": {
232
- "ranks": [
233
- 1,
234
- 64,
235
- 149
236
- ],
237
- "params": 2483456,
238
- "rel_err_whitened": 0.587834,
239
- "als_skipped_for_memory": false,
240
- "winner": "tt_padded",
241
- "sep_rel": 0.866401
242
- },
243
- "model.layers.2.mlp.gate_proj": {
244
- "ranks": [
245
- 1,
246
- 128,
247
- 394
248
- ],
249
- "params": 13198048,
250
- "rel_err_whitened": 0.5687,
251
- "als_skipped_for_memory": true,
252
- "winner": "tt_init",
253
- "sep_rel": 0.999877
254
- },
255
- "model.layers.2.mlp.up_proj": {
256
- "ranks": [
257
- 1,
258
- 128,
259
- 394
260
- ],
261
- "params": 13198048,
262
- "rel_err_whitened": 0.580936,
263
- "als_skipped_for_memory": true,
264
- "winner": "tt_init",
265
- "sep_rel": 0.999877
266
- },
267
- "model.layers.2.mlp.down_proj": {
268
- "ranks": [
269
- 1,
270
- 128,
271
- 394
272
- ],
273
- "params": 13198048,
274
- "rel_err_whitened": 0.539961,
275
- "als_skipped_for_memory": true,
276
- "winner": "tt_init",
277
- "sep_rel": 1.0
278
- },
279
- "model.layers.3.self_attn.q_proj": {
280
- "ranks": [
281
- 1,
282
- 64,
283
- 149
284
- ],
285
- "params": 2483456,
286
- "rel_err_whitened": 0.580581,
287
- "als_skipped_for_memory": false,
288
- "winner": "tt_padded",
289
- "sep_rel": 0.948951
290
- },
291
- "model.layers.3.self_attn.k_proj": {
292
- "ranks": [
293
- 1,
294
- 32,
295
- 73
296
- ],
297
- "params": 309376,
298
- "rel_err_whitened": 0.576418,
299
- "als_skipped_for_memory": false,
300
- "winner": "tt_padded",
301
- "sep_rel": 0.948951
302
- },
303
- "model.layers.3.self_attn.v_proj": {
304
- "ranks": [
305
- 1,
306
- 32,
307
- 73
308
- ],
309
- "params": 309376,
310
- "rel_err_whitened": 0.585657,
311
- "als_skipped_for_memory": false,
312
- "winner": "tt_padded",
313
- "sep_rel": 0.948951
314
- },
315
- "model.layers.3.self_attn.o_proj": {
316
- "ranks": [
317
- 1,
318
- 64,
319
- 149
320
- ],
321
- "params": 2483456,
322
- "rel_err_whitened": 0.58851,
323
- "als_skipped_for_memory": false,
324
- "winner": "tt_padded",
325
- "sep_rel": 0.929628
326
- },
327
- "model.layers.3.mlp.gate_proj": {
328
- "ranks": [
329
- 1,
330
- 128,
331
- 394
332
- ],
333
- "params": 13198048,
334
- "rel_err_whitened": 0.583626,
335
- "als_skipped_for_memory": true,
336
- "winner": "tt_init",
337
- "sep_rel": 0.999639
338
- },
339
- "model.layers.3.mlp.up_proj": {
340
- "ranks": [
341
- 1,
342
- 128,
343
- 394
344
- ],
345
- "params": 13198048,
346
- "rel_err_whitened": 0.590461,
347
- "als_skipped_for_memory": true,
348
- "winner": "tt_init",
349
- "sep_rel": 0.999639
350
- },
351
- "model.layers.3.mlp.down_proj": {
352
- "ranks": [
353
- 1,
354
- 128,
355
- 394
356
- ],
357
- "params": 13198048,
358
- "rel_err_whitened": 0.503482,
359
- "als_skipped_for_memory": true,
360
- "winner": "tt_init",
361
- "sep_rel": 1.0
362
- },
363
- "model.layers.4.self_attn.q_proj": {
364
- "ranks": [
365
- 1,
366
- 64,
367
- 149
368
- ],
369
- "params": 2483456,
370
- "rel_err_whitened": 0.583741,
371
- "als_skipped_for_memory": false,
372
- "winner": "tt_padded",
373
- "sep_rel": 0.986749
374
- },
375
- "model.layers.4.self_attn.k_proj": {
376
- "ranks": [
377
- 1,
378
- 32,
379
- 73
380
- ],
381
- "params": 309376,
382
- "rel_err_whitened": 0.583115,
383
- "als_skipped_for_memory": false,
384
- "winner": "tt_padded",
385
- "sep_rel": 0.986749
386
- },
387
- "model.layers.4.self_attn.v_proj": {
388
- "ranks": [
389
- 1,
390
- 32,
391
- 73
392
- ],
393
- "params": 309376,
394
- "rel_err_whitened": 0.589761,
395
- "als_skipped_for_memory": false,
396
- "winner": "tt_padded",
397
- "sep_rel": 0.986749
398
- },
399
- "model.layers.4.self_attn.o_proj": {
400
- "ranks": [
401
- 1,
402
- 64,
403
- 149
404
- ],
405
- "params": 2483456,
406
- "rel_err_whitened": 0.580375,
407
- "als_skipped_for_memory": false,
408
- "winner": "tt_padded",
409
- "sep_rel": 0.891029
410
- },
411
- "model.layers.4.mlp.gate_proj": {
412
- "ranks": [
413
- 1,
414
- 128,
415
- 394
416
- ],
417
- "params": 13198048,
418
- "rel_err_whitened": 0.582431,
419
- "als_skipped_for_memory": true,
420
- "winner": "tt_init",
421
- "sep_rel": 0.999612
422
- },
423
- "model.layers.4.mlp.up_proj": {
424
- "ranks": [
425
- 1,
426
- 128,
427
- 394
428
- ],
429
- "params": 13198048,
430
- "rel_err_whitened": 0.593992,
431
- "als_skipped_for_memory": true,
432
- "winner": "tt_init",
433
- "sep_rel": 0.999612
434
- },
435
- "model.layers.4.mlp.down_proj": {
436
- "ranks": [
437
- 1,
438
- 128,
439
- 394
440
- ],
441
- "params": 13198048,
442
- "rel_err_whitened": 0.527218,
443
- "als_skipped_for_memory": true,
444
- "winner": "tt_init",
445
- "sep_rel": 0.99998
446
- },
447
- "model.layers.5.self_attn.q_proj": {
448
- "ranks": [
449
- 1,
450
- 64,
451
- 149
452
- ],
453
- "params": 2483456,
454
- "rel_err_whitened": 0.575779,
455
- "als_skipped_for_memory": false,
456
- "winner": "tt_padded",
457
- "sep_rel": 0.99185
458
- },
459
- "model.layers.5.self_attn.k_proj": {
460
- "ranks": [
461
- 1,
462
- 32,
463
- 73
464
- ],
465
- "params": 309376,
466
- "rel_err_whitened": 0.57357,
467
- "als_skipped_for_memory": false,
468
- "winner": "tt_padded",
469
- "sep_rel": 0.99185
470
- },
471
- "model.layers.5.self_attn.v_proj": {
472
- "ranks": [
473
- 1,
474
- 32,
475
- 73
476
- ],
477
- "params": 309376,
478
- "rel_err_whitened": 0.589237,
479
- "als_skipped_for_memory": false,
480
- "winner": "tt_padded",
481
- "sep_rel": 0.99185
482
- },
483
- "model.layers.5.self_attn.o_proj": {
484
- "ranks": [
485
- 1,
486
- 64,
487
- 149
488
- ],
489
- "params": 2483456,
490
- "rel_err_whitened": 0.568247,
491
- "als_skipped_for_memory": false,
492
- "winner": "tt_padded",
493
- "sep_rel": 0.955383
494
- },
495
- "model.layers.5.mlp.gate_proj": {
496
- "ranks": [
497
- 1,
498
- 128,
499
- 394
500
- ],
501
- "params": 13198048,
502
- "rel_err_whitened": 0.595462,
503
- "als_skipped_for_memory": true,
504
- "winner": "tt_init",
505
- "sep_rel": 0.999855
506
- },
507
- "model.layers.5.mlp.up_proj": {
508
- "ranks": [
509
- 1,
510
- 128,
511
- 394
512
- ],
513
- "params": 13198048,
514
- "rel_err_whitened": 0.59926,
515
- "als_skipped_for_memory": true,
516
- "winner": "tt_init",
517
- "sep_rel": 0.999855
518
- },
519
- "model.layers.5.mlp.down_proj": {
520
- "ranks": [
521
- 1,
522
- 128,
523
- 394
524
- ],
525
- "params": 13198048,
526
- "rel_err_whitened": 0.550931,
527
- "als_skipped_for_memory": true,
528
- "winner": "tt_init",
529
- "sep_rel": 0.996112
530
- },
531
- "model.layers.6.self_attn.q_proj": {
532
- "ranks": [
533
- 1,
534
- 64,
535
- 149
536
- ],
537
- "params": 2483456,
538
- "rel_err_whitened": 0.584959,
539
- "als_skipped_for_memory": false,
540
- "winner": "tt_padded",
541
- "sep_rel": 0.992755
542
- },
543
- "model.layers.6.self_attn.k_proj": {
544
- "ranks": [
545
- 1,
546
- 32,
547
- 73
548
- ],
549
- "params": 309376,
550
- "rel_err_whitened": 0.583874,
551
- "als_skipped_for_memory": false,
552
- "winner": "tt_padded",
553
- "sep_rel": 0.992755
554
- },
555
- "model.layers.6.self_attn.v_proj": {
556
- "ranks": [
557
- 1,
558
- 32,
559
- 73
560
- ],
561
- "params": 309376,
562
- "rel_err_whitened": 0.584797,
563
- "als_skipped_for_memory": false,
564
- "winner": "tt_padded",
565
- "sep_rel": 0.992755
566
- },
567
- "model.layers.6.self_attn.o_proj": {
568
- "ranks": [
569
- 1,
570
- 64,
571
- 149
572
- ],
573
- "params": 2483456,
574
- "rel_err_whitened": 0.589191,
575
- "als_skipped_for_memory": false,
576
- "winner": "tt_padded",
577
- "sep_rel": 0.826552
578
- },
579
- "model.layers.6.mlp.gate_proj": {
580
- "ranks": [
581
- 1,
582
- 128,
583
- 394
584
- ],
585
- "params": 13198048,
586
- "rel_err_whitened": 0.592956,
587
- "als_skipped_for_memory": true,
588
- "winner": "tt_init",
589
- "sep_rel": 0.999756
590
- },
591
- "model.layers.6.mlp.up_proj": {
592
- "ranks": [
593
- 1,
594
- 128,
595
- 394
596
- ],
597
- "params": 13198048,
598
- "rel_err_whitened": 0.598165,
599
- "als_skipped_for_memory": true,
600
- "winner": "tt_init",
601
- "sep_rel": 0.999756
602
- },
603
- "model.layers.6.mlp.down_proj": {
604
- "ranks": [
605
- 1,
606
- 128,
607
- 394
608
- ],
609
- "params": 13198048,
610
- "rel_err_whitened": 0.56829,
611
- "als_skipped_for_memory": true,
612
- "winner": "tt_init",
613
- "sep_rel": 0.978374
614
- },
615
- "model.layers.7.self_attn.q_proj": {
616
- "ranks": [
617
- 1,
618
- 64,
619
- 149
620
- ],
621
- "params": 2483456,
622
- "rel_err_whitened": 0.582199,
623
- "als_skipped_for_memory": false,
624
- "winner": "tt_padded",
625
- "sep_rel": 0.985806
626
- },
627
- "model.layers.7.self_attn.k_proj": {
628
- "ranks": [
629
- 1,
630
- 32,
631
- 73
632
- ],
633
- "params": 309376,
634
- "rel_err_whitened": 0.577528,
635
- "als_skipped_for_memory": false,
636
- "winner": "tt_padded",
637
- "sep_rel": 0.985806
638
- },
639
- "model.layers.7.self_attn.v_proj": {
640
- "ranks": [
641
- 1,
642
- 32,
643
- 73
644
- ],
645
- "params": 309376,
646
- "rel_err_whitened": 0.588068,
647
- "als_skipped_for_memory": false,
648
- "winner": "tt_padded",
649
- "sep_rel": 0.985806
650
- },
651
- "model.layers.7.self_attn.o_proj": {
652
- "ranks": [
653
- 1,
654
- 64,
655
- 149
656
- ],
657
- "params": 2483456,
658
- "rel_err_whitened": 0.586083,
659
- "als_skipped_for_memory": false,
660
- "winner": "tt_padded",
661
- "sep_rel": 0.654202
662
- },
663
- "model.layers.7.mlp.gate_proj": {
664
- "ranks": [
665
- 1,
666
- 128,
667
- 394
668
- ],
669
- "params": 13198048,
670
- "rel_err_whitened": 0.592096,
671
- "als_skipped_for_memory": true,
672
- "winner": "tt_init",
673
- "sep_rel": 0.999116
674
- },
675
- "model.layers.7.mlp.up_proj": {
676
- "ranks": [
677
- 1,
678
- 128,
679
- 394
680
- ],
681
- "params": 13198048,
682
- "rel_err_whitened": 0.59787,
683
- "als_skipped_for_memory": true,
684
- "winner": "tt_init",
685
- "sep_rel": 0.999116
686
- },
687
- "model.layers.7.mlp.down_proj": {
688
- "ranks": [
689
- 1,
690
- 128,
691
- 394
692
- ],
693
- "params": 13198048,
694
- "rel_err_whitened": 0.560512,
695
- "als_skipped_for_memory": true,
696
- "winner": "tt_init",
697
- "sep_rel": 0.975593
698
- },
699
- "model.layers.8.self_attn.q_proj": {
700
- "ranks": [
701
- 1,
702
- 64,
703
- 149
704
- ],
705
- "params": 2483456,
706
- "rel_err_whitened": 0.588466,
707
- "als_skipped_for_memory": false,
708
- "winner": "tt_padded",
709
- "sep_rel": 0.992369
710
- },
711
- "model.layers.8.self_attn.k_proj": {
712
- "ranks": [
713
- 1,
714
- 32,
715
- 73
716
- ],
717
- "params": 309376,
718
- "rel_err_whitened": 0.582692,
719
- "als_skipped_for_memory": false,
720
- "winner": "tt_padded",
721
- "sep_rel": 0.992369
722
- },
723
- "model.layers.8.self_attn.v_proj": {
724
- "ranks": [
725
- 1,
726
- 32,
727
- 73
728
- ],
729
- "params": 309376,
730
- "rel_err_whitened": 0.590623,
731
- "als_skipped_for_memory": false,
732
- "winner": "tt_padded",
733
- "sep_rel": 0.992369
734
- },
735
- "model.layers.8.self_attn.o_proj": {
736
- "ranks": [
737
- 1,
738
- 64,
739
- 149
740
- ],
741
- "params": 2483456,
742
- "rel_err_whitened": 0.593391,
743
- "als_skipped_for_memory": false,
744
- "winner": "tt_padded",
745
- "sep_rel": 0.697076
746
- },
747
- "model.layers.8.mlp.gate_proj": {
748
- "ranks": [
749
- 1,
750
- 128,
751
- 394
752
- ],
753
- "params": 13198048,
754
- "rel_err_whitened": 0.595773,
755
- "als_skipped_for_memory": true,
756
- "winner": "tt_init",
757
- "sep_rel": 0.998415
758
- },
759
- "model.layers.8.mlp.up_proj": {
760
- "ranks": [
761
- 1,
762
- 128,
763
- 394
764
- ],
765
- "params": 13198048,
766
- "rel_err_whitened": 0.600021,
767
- "als_skipped_for_memory": true,
768
- "winner": "tt_init",
769
- "sep_rel": 0.998415
770
- },
771
- "model.layers.8.mlp.down_proj": {
772
- "ranks": [
773
- 1,
774
- 128,
775
- 394
776
- ],
777
- "params": 13198048,
778
- "rel_err_whitened": 0.59708,
779
- "als_skipped_for_memory": true,
780
- "winner": "tt_init",
781
- "sep_rel": 0.950515
782
- },
783
- "model.layers.9.self_attn.q_proj": {
784
- "ranks": [
785
- 1,
786
- 64,
787
- 149
788
- ],
789
- "params": 2483456,
790
- "rel_err_whitened": 0.591427,
791
- "als_skipped_for_memory": false,
792
- "winner": "tt_padded",
793
- "sep_rel": 0.995453
794
- },
795
- "model.layers.9.self_attn.k_proj": {
796
- "ranks": [
797
- 1,
798
- 32,
799
- 73
800
- ],
801
- "params": 309376,
802
- "rel_err_whitened": 0.584979,
803
- "als_skipped_for_memory": false,
804
- "winner": "tt_padded",
805
- "sep_rel": 0.995453
806
- },
807
- "model.layers.9.self_attn.v_proj": {
808
- "ranks": [
809
- 1,
810
- 32,
811
- 73
812
- ],
813
- "params": 309376,
814
- "rel_err_whitened": 0.594853,
815
- "als_skipped_for_memory": false,
816
- "winner": "tt_padded",
817
- "sep_rel": 0.995453
818
- },
819
- "model.layers.9.self_attn.o_proj": {
820
- "ranks": [
821
- 1,
822
- 64,
823
- 149
824
- ],
825
- "params": 2483456,
826
- "rel_err_whitened": 0.593438,
827
- "als_skipped_for_memory": false,
828
- "winner": "tt_padded",
829
- "sep_rel": 0.768196
830
- },
831
- "model.layers.9.mlp.gate_proj": {
832
- "ranks": [
833
- 1,
834
- 128,
835
- 394
836
- ],
837
- "params": 13198048,
838
- "rel_err_whitened": 0.595729,
839
- "als_skipped_for_memory": true,
840
- "winner": "tt_init",
841
- "sep_rel": 0.997979
842
- },
843
- "model.layers.9.mlp.up_proj": {
844
- "ranks": [
845
- 1,
846
- 128,
847
- 394
848
- ],
849
- "params": 13198048,
850
- "rel_err_whitened": 0.600115,
851
- "als_skipped_for_memory": true,
852
- "winner": "tt_init",
853
- "sep_rel": 0.997979
854
- },
855
- "model.layers.9.mlp.down_proj": {
856
- "ranks": [
857
- 1,
858
- 128,
859
- 394
860
- ],
861
- "params": 13198048,
862
- "rel_err_whitened": 0.594926,
863
- "als_skipped_for_memory": true,
864
- "winner": "tt_init",
865
- "sep_rel": 0.916435
866
- },
867
- "model.layers.10.self_attn.q_proj": {
868
- "ranks": [
869
- 1,
870
- 64,
871
- 149
872
- ],
873
- "params": 2483456,
874
- "rel_err_whitened": 0.581533,
875
- "als_skipped_for_memory": false,
876
- "winner": "tt_padded",
877
- "sep_rel": 0.995031
878
- },
879
- "model.layers.10.self_attn.k_proj": {
880
- "ranks": [
881
- 1,
882
- 32,
883
- 73
884
- ],
885
- "params": 309376,
886
- "rel_err_whitened": 0.575489,
887
- "als_skipped_for_memory": false,
888
- "winner": "tt_padded",
889
- "sep_rel": 0.995031
890
- },
891
- "model.layers.10.self_attn.v_proj": {
892
- "ranks": [
893
- 1,
894
- 32,
895
- 73
896
- ],
897
- "params": 309376,
898
- "rel_err_whitened": 0.592285,
899
- "als_skipped_for_memory": false,
900
- "winner": "tt_padded",
901
- "sep_rel": 0.995031
902
- },
903
- "model.layers.10.self_attn.o_proj": {
904
- "ranks": [
905
- 1,
906
- 64,
907
- 149
908
- ],
909
- "params": 2483456,
910
- "rel_err_whitened": 0.582759,
911
- "als_skipped_for_memory": false,
912
- "winner": "tt_padded",
913
- "sep_rel": 0.874523
914
- },
915
- "model.layers.10.mlp.gate_proj": {
916
- "ranks": [
917
- 1,
918
- 128,
919
- 394
920
- ],
921
- "params": 13198048,
922
- "rel_err_whitened": 0.597822,
923
- "als_skipped_for_memory": true,
924
- "winner": "tt_init",
925
- "sep_rel": 0.997335
926
- },
927
- "model.layers.10.mlp.up_proj": {
928
- "ranks": [
929
- 1,
930
- 128,
931
- 394
932
- ],
933
- "params": 13198048,
934
- "rel_err_whitened": 0.601697,
935
- "als_skipped_for_memory": true,
936
- "winner": "tt_init",
937
- "sep_rel": 0.997335
938
- },
939
- "model.layers.10.mlp.down_proj": {
940
- "ranks": [
941
- 1,
942
- 128,
943
- 394
944
- ],
945
- "params": 13198048,
946
- "rel_err_whitened": 0.602927,
947
- "als_skipped_for_memory": true,
948
- "winner": "tt_init",
949
- "sep_rel": 0.856847
950
- },
951
- "model.layers.11.self_attn.q_proj": {
952
- "ranks": [
953
- 1,
954
- 64,
955
- 149
956
- ],
957
- "params": 2483456,
958
- "rel_err_whitened": 0.584892,
959
- "als_skipped_for_memory": false,
960
- "winner": "tt_padded",
961
- "sep_rel": 0.995701
962
- },
963
- "model.layers.11.self_attn.k_proj": {
964
- "ranks": [
965
- 1,
966
- 32,
967
- 73
968
- ],
969
- "params": 309376,
970
- "rel_err_whitened": 0.581327,
971
- "als_skipped_for_memory": false,
972
- "winner": "tt_padded",
973
- "sep_rel": 0.995701
974
- },
975
- "model.layers.11.self_attn.v_proj": {
976
- "ranks": [
977
- 1,
978
- 32,
979
- 73
980
- ],
981
- "params": 309376,
982
- "rel_err_whitened": 0.591392,
983
- "als_skipped_for_memory": false,
984
- "winner": "tt_padded",
985
- "sep_rel": 0.995701
986
- },
987
- "model.layers.11.self_attn.o_proj": {
988
- "ranks": [
989
- 1,
990
- 64,
991
- 149
992
- ],
993
- "params": 2483456,
994
- "rel_err_whitened": 0.58134,
995
- "als_skipped_for_memory": false,
996
- "winner": "tt_padded",
997
- "sep_rel": 0.761806
998
- },
999
- "model.layers.11.mlp.gate_proj": {
1000
- "ranks": [
1001
- 1,
1002
- 128,
1003
- 394
1004
- ],
1005
- "params": 13198048,
1006
- "rel_err_whitened": 0.601283,
1007
- "als_skipped_for_memory": true,
1008
- "winner": "tt_init",
1009
- "sep_rel": 0.992582
1010
- },
1011
- "model.layers.11.mlp.up_proj": {
1012
- "ranks": [
1013
- 1,
1014
- 128,
1015
- 394
1016
- ],
1017
- "params": 13198048,
1018
- "rel_err_whitened": 0.604655,
1019
- "als_skipped_for_memory": true,
1020
- "winner": "tt_init",
1021
- "sep_rel": 0.992582
1022
- },
1023
- "model.layers.11.mlp.down_proj": {
1024
- "ranks": [
1025
- 1,
1026
- 128,
1027
- 394
1028
- ],
1029
- "params": 13198048,
1030
- "rel_err_whitened": 0.604729,
1031
- "als_skipped_for_memory": true,
1032
- "winner": "tt_init",
1033
- "sep_rel": 0.733887
1034
- },
1035
- "model.layers.12.self_attn.q_proj": {
1036
- "ranks": [
1037
- 1,
1038
- 64,
1039
- 149
1040
- ],
1041
- "params": 2483456,
1042
- "rel_err_whitened": 0.581729,
1043
- "als_skipped_for_memory": false,
1044
- "winner": "tt_padded",
1045
- "sep_rel": 0.995644
1046
- },
1047
- "model.layers.12.self_attn.k_proj": {
1048
- "ranks": [
1049
- 1,
1050
- 32,
1051
- 73
1052
- ],
1053
- "params": 309376,
1054
- "rel_err_whitened": 0.581201,
1055
- "als_skipped_for_memory": false,
1056
- "winner": "tt_padded",
1057
- "sep_rel": 0.995644
1058
- },
1059
- "model.layers.12.self_attn.v_proj": {
1060
- "ranks": [
1061
- 1,
1062
- 32,
1063
- 73
1064
- ],
1065
- "params": 309376,
1066
- "rel_err_whitened": 0.591573,
1067
- "als_skipped_for_memory": false,
1068
- "winner": "tt_padded",
1069
- "sep_rel": 0.995644
1070
- },
1071
- "model.layers.12.self_attn.o_proj": {
1072
- "ranks": [
1073
- 1,
1074
- 64,
1075
- 149
1076
- ],
1077
- "params": 2483456,
1078
- "rel_err_whitened": 0.579305,
1079
- "als_skipped_for_memory": false,
1080
- "winner": "tt_padded",
1081
- "sep_rel": 0.855637
1082
- },
1083
- "model.layers.12.mlp.gate_proj": {
1084
- "ranks": [
1085
- 1,
1086
- 128,
1087
- 394
1088
- ],
1089
- "params": 13198048,
1090
- "rel_err_whitened": 0.601493,
1091
- "als_skipped_for_memory": true,
1092
- "winner": "tt_init",
1093
- "sep_rel": 0.992888
1094
- },
1095
- "model.layers.12.mlp.up_proj": {
1096
- "ranks": [
1097
- 1,
1098
- 128,
1099
- 394
1100
- ],
1101
- "params": 13198048,
1102
- "rel_err_whitened": 0.60531,
1103
- "als_skipped_for_memory": true,
1104
- "winner": "tt_init",
1105
- "sep_rel": 0.992888
1106
- },
1107
- "model.layers.12.mlp.down_proj": {
1108
- "ranks": [
1109
- 1,
1110
- 128,
1111
- 394
1112
- ],
1113
- "params": 13198048,
1114
- "rel_err_whitened": 0.604572,
1115
- "als_skipped_for_memory": true,
1116
- "winner": "tt_init",
1117
- "sep_rel": 0.797294
1118
- },
1119
- "model.layers.13.self_attn.q_proj": {
1120
- "ranks": [
1121
- 1,
1122
- 64,
1123
- 149
1124
- ],
1125
- "params": 2483456,
1126
- "rel_err_whitened": 0.574338,
1127
- "als_skipped_for_memory": false,
1128
- "winner": "tt_padded",
1129
- "sep_rel": 0.99759
1130
- },
1131
- "model.layers.13.self_attn.k_proj": {
1132
- "ranks": [
1133
- 1,
1134
- 32,
1135
- 73
1136
- ],
1137
- "params": 309376,
1138
- "rel_err_whitened": 0.578361,
1139
- "als_skipped_for_memory": false,
1140
- "winner": "tt_padded",
1141
- "sep_rel": 0.99759
1142
- },
1143
- "model.layers.13.self_attn.v_proj": {
1144
- "ranks": [
1145
- 1,
1146
- 32,
1147
- 73
1148
- ],
1149
- "params": 309376,
1150
- "rel_err_whitened": 0.592821,
1151
- "als_skipped_for_memory": false,
1152
- "winner": "tt_padded",
1153
- "sep_rel": 0.99759
1154
- },
1155
- "model.layers.13.self_attn.o_proj": {
1156
- "ranks": [
1157
- 1,
1158
- 64,
1159
- 149
1160
- ],
1161
- "params": 2483456,
1162
- "rel_err_whitened": 0.580568,
1163
- "als_skipped_for_memory": false,
1164
- "winner": "tt_padded",
1165
- "sep_rel": 0.945296
1166
- },
1167
- "model.layers.13.mlp.gate_proj": {
1168
- "ranks": [
1169
- 1,
1170
- 128,
1171
- 394
1172
- ],
1173
- "params": 13198048,
1174
- "rel_err_whitened": 0.602587,
1175
- "als_skipped_for_memory": true,
1176
- "winner": "tt_init",
1177
- "sep_rel": 0.982269
1178
- },
1179
- "model.layers.13.mlp.up_proj": {
1180
- "ranks": [
1181
- 1,
1182
- 128,
1183
- 394
1184
- ],
1185
- "params": 13198048,
1186
- "rel_err_whitened": 0.604851,
1187
- "als_skipped_for_memory": true,
1188
- "winner": "tt_init",
1189
- "sep_rel": 0.982269
1190
- },
1191
- "model.layers.13.mlp.down_proj": {
1192
- "ranks": [
1193
- 1,
1194
- 128,
1195
- 394
1196
- ],
1197
- "params": 13198048,
1198
- "rel_err_whitened": 0.605358,
1199
- "als_skipped_for_memory": true,
1200
- "winner": "tt_init",
1201
- "sep_rel": 0.624047
1202
- },
1203
- "model.layers.14.self_attn.q_proj": {
1204
- "ranks": [
1205
- 1,
1206
- 64,
1207
- 149
1208
- ],
1209
- "params": 2483456,
1210
- "rel_err_whitened": 0.586172,
1211
- "als_skipped_for_memory": false,
1212
- "winner": "tt_padded",
1213
- "sep_rel": 0.996552
1214
- },
1215
- "model.layers.14.self_attn.k_proj": {
1216
- "ranks": [
1217
- 1,
1218
- 32,
1219
- 73
1220
- ],
1221
- "params": 309376,
1222
- "rel_err_whitened": 0.58275,
1223
- "als_skipped_for_memory": false,
1224
- "winner": "tt_padded",
1225
- "sep_rel": 0.996552
1226
- },
1227
- "model.layers.14.self_attn.v_proj": {
1228
- "ranks": [
1229
- 1,
1230
- 32,
1231
- 73
1232
- ],
1233
- "params": 309376,
1234
- "rel_err_whitened": 0.593302,
1235
- "als_skipped_for_memory": false,
1236
- "winner": "tt_padded",
1237
- "sep_rel": 0.996552
1238
- },
1239
- "model.layers.14.self_attn.o_proj": {
1240
- "ranks": [
1241
- 1,
1242
- 64,
1243
- 149
1244
- ],
1245
- "params": 2483456,
1246
- "rel_err_whitened": 0.571619,
1247
- "als_skipped_for_memory": false,
1248
- "winner": "tt_padded",
1249
- "sep_rel": 0.855467
1250
- },
1251
- "model.layers.14.mlp.gate_proj": {
1252
- "ranks": [
1253
- 1,
1254
- 128,
1255
- 394
1256
- ],
1257
- "params": 13198048,
1258
- "rel_err_whitened": 0.602922,
1259
- "als_skipped_for_memory": true,
1260
- "winner": "tt_init",
1261
- "sep_rel": 0.983911
1262
- },
1263
- "model.layers.14.mlp.up_proj": {
1264
- "ranks": [
1265
- 1,
1266
- 128,
1267
- 394
1268
- ],
1269
- "params": 13198048,
1270
- "rel_err_whitened": 0.605371,
1271
- "als_skipped_for_memory": true,
1272
- "winner": "tt_init",
1273
- "sep_rel": 0.983911
1274
- },
1275
- "model.layers.14.mlp.down_proj": {
1276
- "ranks": [
1277
- 1,
1278
- 128,
1279
- 394
1280
- ],
1281
- "params": 13198048,
1282
- "rel_err_whitened": 0.605251,
1283
- "als_skipped_for_memory": true,
1284
- "winner": "tt_init",
1285
- "sep_rel": 0.64462
1286
- },
1287
- "model.layers.15.self_attn.q_proj": {
1288
- "ranks": [
1289
- 1,
1290
- 64,
1291
- 149
1292
- ],
1293
- "params": 2483456,
1294
- "rel_err_whitened": 0.580133,
1295
- "als_skipped_for_memory": false,
1296
- "winner": "tt_padded",
1297
- "sep_rel": 0.995941
1298
- },
1299
- "model.layers.15.self_attn.k_proj": {
1300
- "ranks": [
1301
- 1,
1302
- 32,
1303
- 73
1304
- ],
1305
- "params": 309376,
1306
- "rel_err_whitened": 0.581309,
1307
- "als_skipped_for_memory": false,
1308
- "winner": "tt_padded",
1309
- "sep_rel": 0.995941
1310
- },
1311
- "model.layers.15.self_attn.v_proj": {
1312
- "ranks": [
1313
- 1,
1314
- 32,
1315
- 73
1316
- ],
1317
- "params": 309376,
1318
- "rel_err_whitened": 0.593058,
1319
- "als_skipped_for_memory": false,
1320
- "winner": "tt_padded",
1321
- "sep_rel": 0.995941
1322
- },
1323
- "model.layers.15.self_attn.o_proj": {
1324
- "ranks": [
1325
- 1,
1326
- 64,
1327
- 149
1328
- ],
1329
- "params": 2483456,
1330
- "rel_err_whitened": 0.571475,
1331
- "als_skipped_for_memory": false,
1332
- "winner": "tt_padded",
1333
- "sep_rel": 0.872027
1334
- },
1335
- "model.layers.15.mlp.gate_proj": {
1336
- "ranks": [
1337
- 1,
1338
- 128,
1339
- 394
1340
- ],
1341
- "params": 13198048,
1342
- "rel_err_whitened": 0.603049,
1343
- "als_skipped_for_memory": true,
1344
- "winner": "tt_init",
1345
- "sep_rel": 0.978339
1346
- },
1347
- "model.layers.15.mlp.up_proj": {
1348
- "ranks": [
1349
- 1,
1350
- 128,
1351
- 394
1352
- ],
1353
- "params": 13198048,
1354
- "rel_err_whitened": 0.605095,
1355
- "als_skipped_for_memory": true,
1356
- "winner": "tt_init",
1357
- "sep_rel": 0.978339
1358
- },
1359
- "model.layers.15.mlp.down_proj": {
1360
- "ranks": [
1361
- 1,
1362
- 128,
1363
- 394
1364
- ],
1365
- "params": 13198048,
1366
- "rel_err_whitened": 0.605378,
1367
- "als_skipped_for_memory": true,
1368
- "winner": "tt_init",
1369
- "sep_rel": 0.569849
1370
- },
1371
- "model.layers.16.self_attn.q_proj": {
1372
- "ranks": [
1373
- 1,
1374
- 64,
1375
- 149
1376
- ],
1377
- "params": 2483456,
1378
- "rel_err_whitened": 0.585581,
1379
- "als_skipped_for_memory": false,
1380
- "winner": "tt_padded",
1381
- "sep_rel": 0.992366
1382
- },
1383
- "model.layers.16.self_attn.k_proj": {
1384
- "ranks": [
1385
- 1,
1386
- 32,
1387
- 73
1388
- ],
1389
- "params": 309376,
1390
- "rel_err_whitened": 0.584799,
1391
- "als_skipped_for_memory": false,
1392
- "winner": "tt_padded",
1393
- "sep_rel": 0.992366
1394
- },
1395
- "model.layers.16.self_attn.v_proj": {
1396
- "ranks": [
1397
- 1,
1398
- 32,
1399
- 73
1400
- ],
1401
- "params": 309376,
1402
- "rel_err_whitened": 0.592937,
1403
- "als_skipped_for_memory": false,
1404
- "winner": "tt_padded",
1405
- "sep_rel": 0.992366
1406
- },
1407
- "model.layers.16.self_attn.o_proj": {
1408
- "ranks": [
1409
- 1,
1410
- 64,
1411
- 149
1412
- ],
1413
- "params": 2483456,
1414
- "rel_err_whitened": 0.586766,
1415
- "als_skipped_for_memory": false,
1416
- "winner": "tt_padded",
1417
- "sep_rel": 0.703469
1418
- },
1419
- "model.layers.16.mlp.gate_proj": {
1420
- "ranks": [
1421
- 1,
1422
- 128,
1423
- 394
1424
- ],
1425
- "params": 13198048,
1426
- "rel_err_whitened": 0.60334,
1427
- "als_skipped_for_memory": true,
1428
- "winner": "tt_init",
1429
- "sep_rel": 0.982822
1430
- },
1431
- "model.layers.16.mlp.up_proj": {
1432
- "ranks": [
1433
- 1,
1434
- 128,
1435
- 394
1436
- ],
1437
- "params": 13198048,
1438
- "rel_err_whitened": 0.605226,
1439
- "als_skipped_for_memory": true,
1440
- "winner": "tt_init",
1441
- "sep_rel": 0.982822
1442
- },
1443
- "model.layers.16.mlp.down_proj": {
1444
- "ranks": [
1445
- 1,
1446
- 128,
1447
- 394
1448
- ],
1449
- "params": 13198048,
1450
- "rel_err_whitened": 0.604882,
1451
- "als_skipped_for_memory": true,
1452
- "winner": "tt_init",
1453
- "sep_rel": 0.75453
1454
- },
1455
- "model.layers.17.self_attn.q_proj": {
1456
- "ranks": [
1457
- 1,
1458
- 64,
1459
- 149
1460
- ],
1461
- "params": 2483456,
1462
- "rel_err_whitened": 0.57391,
1463
- "als_skipped_for_memory": false,
1464
- "winner": "tt_padded",
1465
- "sep_rel": 0.99618
1466
- },
1467
- "model.layers.17.self_attn.k_proj": {
1468
- "ranks": [
1469
- 1,
1470
- 32,
1471
- 73
1472
- ],
1473
- "params": 309376,
1474
- "rel_err_whitened": 0.573506,
1475
- "als_skipped_for_memory": false,
1476
- "winner": "tt_padded",
1477
- "sep_rel": 0.99618
1478
- },
1479
- "model.layers.17.self_attn.v_proj": {
1480
- "ranks": [
1481
- 1,
1482
- 32,
1483
- 73
1484
- ],
1485
- "params": 309376,
1486
- "rel_err_whitened": 0.592354,
1487
- "als_skipped_for_memory": false,
1488
- "winner": "tt_padded",
1489
- "sep_rel": 0.99618
1490
- },
1491
- "model.layers.17.self_attn.o_proj": {
1492
- "ranks": [
1493
- 1,
1494
- 64,
1495
- 149
1496
- ],
1497
- "params": 2483456,
1498
- "rel_err_whitened": 0.570643,
1499
- "als_skipped_for_memory": false,
1500
- "winner": "tt_padded",
1501
- "sep_rel": 0.906692
1502
- },
1503
- "model.layers.17.mlp.gate_proj": {
1504
- "ranks": [
1505
- 1,
1506
- 128,
1507
- 394
1508
- ],
1509
- "params": 13198048,
1510
- "rel_err_whitened": 0.602791,
1511
- "als_skipped_for_memory": true,
1512
- "winner": "tt_init",
1513
- "sep_rel": 0.981482
1514
- },
1515
- "model.layers.17.mlp.up_proj": {
1516
- "ranks": [
1517
- 1,
1518
- 128,
1519
- 394
1520
- ],
1521
- "params": 13198048,
1522
- "rel_err_whitened": 0.60461,
1523
- "als_skipped_for_memory": true,
1524
- "winner": "tt_init",
1525
- "sep_rel": 0.981482
1526
- },
1527
- "model.layers.17.mlp.down_proj": {
1528
- "ranks": [
1529
- 1,
1530
- 128,
1531
- 394
1532
- ],
1533
- "params": 13198048,
1534
- "rel_err_whitened": 0.604469,
1535
- "als_skipped_for_memory": true,
1536
- "winner": "tt_init",
1537
- "sep_rel": 0.876613
1538
- },
1539
- "model.layers.18.self_attn.q_proj": {
1540
- "ranks": [
1541
- 1,
1542
- 64,
1543
- 149
1544
- ],
1545
- "params": 2483456,
1546
- "rel_err_whitened": 0.587562,
1547
- "als_skipped_for_memory": false,
1548
- "winner": "tt_padded",
1549
- "sep_rel": 0.995034
1550
- },
1551
- "model.layers.18.self_attn.k_proj": {
1552
- "ranks": [
1553
- 1,
1554
- 32,
1555
- 73
1556
- ],
1557
- "params": 309376,
1558
- "rel_err_whitened": 0.584489,
1559
- "als_skipped_for_memory": false,
1560
- "winner": "tt_padded",
1561
- "sep_rel": 0.995034
1562
- },
1563
- "model.layers.18.self_attn.v_proj": {
1564
- "ranks": [
1565
- 1,
1566
- 32,
1567
- 73
1568
- ],
1569
- "params": 309376,
1570
- "rel_err_whitened": 0.593622,
1571
- "als_skipped_for_memory": false,
1572
- "winner": "tt_padded",
1573
- "sep_rel": 0.995034
1574
- },
1575
- "model.layers.18.self_attn.o_proj": {
1576
- "ranks": [
1577
- 1,
1578
- 64,
1579
- 149
1580
- ],
1581
- "params": 2483456,
1582
- "rel_err_whitened": 0.581197,
1583
- "als_skipped_for_memory": false,
1584
- "winner": "tt_padded",
1585
- "sep_rel": 0.857926
1586
- },
1587
- "model.layers.18.mlp.gate_proj": {
1588
- "ranks": [
1589
- 1,
1590
- 128,
1591
- 394
1592
- ],
1593
- "params": 13198048,
1594
- "rel_err_whitened": 0.60253,
1595
- "als_skipped_for_memory": true,
1596
- "winner": "tt_init",
1597
- "sep_rel": 0.982396
1598
- },
1599
- "model.layers.18.mlp.up_proj": {
1600
- "ranks": [
1601
- 1,
1602
- 128,
1603
- 394
1604
- ],
1605
- "params": 13198048,
1606
- "rel_err_whitened": 0.604572,
1607
- "als_skipped_for_memory": true,
1608
- "winner": "tt_init",
1609
- "sep_rel": 0.982396
1610
- },
1611
- "model.layers.18.mlp.down_proj": {
1612
- "ranks": [
1613
- 1,
1614
- 128,
1615
- 394
1616
- ],
1617
- "params": 13198048,
1618
- "rel_err_whitened": 0.60415,
1619
- "als_skipped_for_memory": true,
1620
- "winner": "tt_init",
1621
- "sep_rel": 0.73992
1622
- },
1623
- "model.layers.19.self_attn.q_proj": {
1624
- "ranks": [
1625
- 1,
1626
- 64,
1627
- 149
1628
- ],
1629
- "params": 2483456,
1630
- "rel_err_whitened": 0.571471,
1631
- "als_skipped_for_memory": false,
1632
- "winner": "tt_padded",
1633
- "sep_rel": 0.993618
1634
- },
1635
- "model.layers.19.self_attn.k_proj": {
1636
- "ranks": [
1637
- 1,
1638
- 32,
1639
- 73
1640
- ],
1641
- "params": 309376,
1642
- "rel_err_whitened": 0.573816,
1643
- "als_skipped_for_memory": false,
1644
- "winner": "tt_padded",
1645
- "sep_rel": 0.993618
1646
- },
1647
- "model.layers.19.self_attn.v_proj": {
1648
- "ranks": [
1649
- 1,
1650
- 32,
1651
- 73
1652
- ],
1653
- "params": 309376,
1654
- "rel_err_whitened": 0.591658,
1655
- "als_skipped_for_memory": false,
1656
- "winner": "tt_padded",
1657
- "sep_rel": 0.993618
1658
- },
1659
- "model.layers.19.self_attn.o_proj": {
1660
- "ranks": [
1661
- 1,
1662
- 64,
1663
- 149
1664
- ],
1665
- "params": 2483456,
1666
- "rel_err_whitened": 0.561333,
1667
- "als_skipped_for_memory": false,
1668
- "winner": "tt_padded",
1669
- "sep_rel": 0.904653
1670
- },
1671
- "model.layers.19.mlp.gate_proj": {
1672
- "ranks": [
1673
- 1,
1674
- 128,
1675
- 394
1676
- ],
1677
- "params": 13198048,
1678
- "rel_err_whitened": 0.602647,
1679
- "als_skipped_for_memory": true,
1680
- "winner": "tt_init",
1681
- "sep_rel": 0.970502
1682
- },
1683
- "model.layers.19.mlp.up_proj": {
1684
- "ranks": [
1685
- 1,
1686
- 128,
1687
- 394
1688
- ],
1689
- "params": 13198048,
1690
- "rel_err_whitened": 0.604022,
1691
- "als_skipped_for_memory": true,
1692
- "winner": "tt_init",
1693
- "sep_rel": 0.970502
1694
- },
1695
- "model.layers.19.mlp.down_proj": {
1696
- "ranks": [
1697
- 1,
1698
- 128,
1699
- 394
1700
- ],
1701
- "params": 13198048,
1702
- "rel_err_whitened": 0.604459,
1703
- "als_skipped_for_memory": true,
1704
- "winner": "tt_init",
1705
- "sep_rel": 0.647441
1706
- },
1707
- "model.layers.20.self_attn.q_proj": {
1708
- "ranks": [
1709
- 1,
1710
- 64,
1711
- 149
1712
- ],
1713
- "params": 2483456,
1714
- "rel_err_whitened": 0.560264,
1715
- "als_skipped_for_memory": false,
1716
- "winner": "tt_padded",
1717
- "sep_rel": 0.992759
1718
- },
1719
- "model.layers.20.self_attn.k_proj": {
1720
- "ranks": [
1721
- 1,
1722
- 32,
1723
- 73
1724
- ],
1725
- "params": 309376,
1726
- "rel_err_whitened": 0.558552,
1727
- "als_skipped_for_memory": false,
1728
- "winner": "tt_padded",
1729
- "sep_rel": 0.992759
1730
- },
1731
- "model.layers.20.self_attn.v_proj": {
1732
- "ranks": [
1733
- 1,
1734
- 32,
1735
- 73
1736
- ],
1737
- "params": 309376,
1738
- "rel_err_whitened": 0.590322,
1739
- "als_skipped_for_memory": false,
1740
- "winner": "tt_padded",
1741
- "sep_rel": 0.992759
1742
- },
1743
- "model.layers.20.self_attn.o_proj": {
1744
- "ranks": [
1745
- 1,
1746
- 64,
1747
- 149
1748
- ],
1749
- "params": 2483456,
1750
- "rel_err_whitened": 0.560928,
1751
- "als_skipped_for_memory": false,
1752
- "winner": "tt_padded",
1753
- "sep_rel": 0.812791
1754
- },
1755
- "model.layers.20.mlp.gate_proj": {
1756
- "ranks": [
1757
- 1,
1758
- 128,
1759
- 394
1760
- ],
1761
- "params": 13198048,
1762
- "rel_err_whitened": 0.602939,
1763
- "als_skipped_for_memory": true,
1764
- "winner": "tt_init",
1765
- "sep_rel": 0.981784
1766
- },
1767
- "model.layers.20.mlp.up_proj": {
1768
- "ranks": [
1769
- 1,
1770
- 128,
1771
- 394
1772
- ],
1773
- "params": 13198048,
1774
- "rel_err_whitened": 0.604862,
1775
- "als_skipped_for_memory": true,
1776
- "winner": "tt_init",
1777
- "sep_rel": 0.981784
1778
- },
1779
- "model.layers.20.mlp.down_proj": {
1780
- "ranks": [
1781
- 1,
1782
- 128,
1783
- 394
1784
- ],
1785
- "params": 13198048,
1786
- "rel_err_whitened": 0.603267,
1787
- "als_skipped_for_memory": true,
1788
- "winner": "tt_init",
1789
- "sep_rel": 0.85096
1790
- },
1791
- "model.layers.21.self_attn.q_proj": {
1792
- "ranks": [
1793
- 1,
1794
- 64,
1795
- 149
1796
- ],
1797
- "params": 2483456,
1798
- "rel_err_whitened": 0.574825,
1799
- "als_skipped_for_memory": false,
1800
- "winner": "tt_padded",
1801
- "sep_rel": 0.990238
1802
- },
1803
- "model.layers.21.self_attn.k_proj": {
1804
- "ranks": [
1805
- 1,
1806
- 32,
1807
- 73
1808
- ],
1809
- "params": 309376,
1810
- "rel_err_whitened": 0.575251,
1811
- "als_skipped_for_memory": false,
1812
- "winner": "tt_padded",
1813
- "sep_rel": 0.990238
1814
- },
1815
- "model.layers.21.self_attn.v_proj": {
1816
- "ranks": [
1817
- 1,
1818
- 32,
1819
- 73
1820
- ],
1821
- "params": 309376,
1822
- "rel_err_whitened": 0.592117,
1823
- "als_skipped_for_memory": false,
1824
- "winner": "tt_padded",
1825
- "sep_rel": 0.990238
1826
- },
1827
- "model.layers.21.self_attn.o_proj": {
1828
- "ranks": [
1829
- 1,
1830
- 64,
1831
- 149
1832
- ],
1833
- "params": 2483456,
1834
- "rel_err_whitened": 0.575068,
1835
- "als_skipped_for_memory": false,
1836
- "winner": "tt_padded",
1837
- "sep_rel": 0.84186
1838
- },
1839
- "model.layers.21.mlp.gate_proj": {
1840
- "ranks": [
1841
- 1,
1842
- 128,
1843
- 394
1844
- ],
1845
- "params": 13198048,
1846
- "rel_err_whitened": 0.602772,
1847
- "als_skipped_for_memory": true,
1848
- "winner": "tt_init",
1849
- "sep_rel": 0.982316
1850
- },
1851
- "model.layers.21.mlp.up_proj": {
1852
- "ranks": [
1853
- 1,
1854
- 128,
1855
- 394
1856
- ],
1857
- "params": 13198048,
1858
- "rel_err_whitened": 0.604826,
1859
- "als_skipped_for_memory": true,
1860
- "winner": "tt_init",
1861
- "sep_rel": 0.982316
1862
- },
1863
- "model.layers.21.mlp.down_proj": {
1864
- "ranks": [
1865
- 1,
1866
- 128,
1867
- 394
1868
- ],
1869
- "params": 13198048,
1870
- "rel_err_whitened": 0.604536,
1871
- "als_skipped_for_memory": true,
1872
- "winner": "tt_init",
1873
- "sep_rel": 0.800122
1874
- },
1875
- "model.layers.22.self_attn.q_proj": {
1876
- "ranks": [
1877
- 1,
1878
- 64,
1879
- 149
1880
- ],
1881
- "params": 2483456,
1882
- "rel_err_whitened": 0.578384,
1883
- "als_skipped_for_memory": false,
1884
- "winner": "tt_padded",
1885
- "sep_rel": 0.992639
1886
- },
1887
- "model.layers.22.self_attn.k_proj": {
1888
- "ranks": [
1889
- 1,
1890
- 32,
1891
- 73
1892
- ],
1893
- "params": 309376,
1894
- "rel_err_whitened": 0.575871,
1895
- "als_skipped_for_memory": false,
1896
- "winner": "tt_padded",
1897
- "sep_rel": 0.992639
1898
- },
1899
- "model.layers.22.self_attn.v_proj": {
1900
- "ranks": [
1901
- 1,
1902
- 32,
1903
- 73
1904
- ],
1905
- "params": 309376,
1906
- "rel_err_whitened": 0.592281,
1907
- "als_skipped_for_memory": false,
1908
- "winner": "tt_padded",
1909
- "sep_rel": 0.992639
1910
- },
1911
- "model.layers.22.self_attn.o_proj": {
1912
- "ranks": [
1913
- 1,
1914
- 64,
1915
- 149
1916
- ],
1917
- "params": 2483456,
1918
- "rel_err_whitened": 0.580003,
1919
- "als_skipped_for_memory": false,
1920
- "winner": "tt_padded",
1921
- "sep_rel": 0.84194
1922
- },
1923
- "model.layers.22.mlp.gate_proj": {
1924
- "ranks": [
1925
- 1,
1926
- 128,
1927
- 394
1928
- ],
1929
- "params": 13198048,
1930
- "rel_err_whitened": 0.603092,
1931
- "als_skipped_for_memory": true,
1932
- "winner": "tt_init",
1933
- "sep_rel": 0.978805
1934
- },
1935
- "model.layers.22.mlp.up_proj": {
1936
- "ranks": [
1937
- 1,
1938
- 128,
1939
- 394
1940
- ],
1941
- "params": 13198048,
1942
- "rel_err_whitened": 0.604892,
1943
- "als_skipped_for_memory": true,
1944
- "winner": "tt_init",
1945
- "sep_rel": 0.978805
1946
- },
1947
- "model.layers.22.mlp.down_proj": {
1948
- "ranks": [
1949
- 1,
1950
- 128,
1951
- 394
1952
- ],
1953
- "params": 13198048,
1954
- "rel_err_whitened": 0.604266,
1955
- "als_skipped_for_memory": true,
1956
- "winner": "tt_init",
1957
- "sep_rel": 0.82127
1958
- },
1959
- "model.layers.23.self_attn.q_proj": {
1960
- "ranks": [
1961
- 1,
1962
- 64,
1963
- 149
1964
- ],
1965
- "params": 2483456,
1966
- "rel_err_whitened": 0.579412,
1967
- "als_skipped_for_memory": false,
1968
- "winner": "tt_padded",
1969
- "sep_rel": 0.99389
1970
- },
1971
- "model.layers.23.self_attn.k_proj": {
1972
- "ranks": [
1973
- 1,
1974
- 32,
1975
- 73
1976
- ],
1977
- "params": 309376,
1978
- "rel_err_whitened": 0.583444,
1979
- "als_skipped_for_memory": false,
1980
- "winner": "tt_padded",
1981
- "sep_rel": 0.99389
1982
- },
1983
- "model.layers.23.self_attn.v_proj": {
1984
- "ranks": [
1985
- 1,
1986
- 32,
1987
- 73
1988
- ],
1989
- "params": 309376,
1990
- "rel_err_whitened": 0.592978,
1991
- "als_skipped_for_memory": false,
1992
- "winner": "tt_padded",
1993
- "sep_rel": 0.99389
1994
- },
1995
- "model.layers.23.self_attn.o_proj": {
1996
- "ranks": [
1997
- 1,
1998
- 64,
1999
- 149
2000
- ],
2001
- "params": 2483456,
2002
- "rel_err_whitened": 0.573672,
2003
- "als_skipped_for_memory": false,
2004
- "winner": "tt_padded",
2005
- "sep_rel": 0.935109
2006
- },
2007
- "model.layers.23.mlp.gate_proj": {
2008
- "ranks": [
2009
- 1,
2010
- 128,
2011
- 394
2012
- ],
2013
- "params": 13198048,
2014
- "rel_err_whitened": 0.603107,
2015
- "als_skipped_for_memory": true,
2016
- "winner": "tt_init",
2017
- "sep_rel": 0.975713
2018
- },
2019
- "model.layers.23.mlp.up_proj": {
2020
- "ranks": [
2021
- 1,
2022
- 128,
2023
- 394
2024
- ],
2025
- "params": 13198048,
2026
- "rel_err_whitened": 0.604776,
2027
- "als_skipped_for_memory": true,
2028
- "winner": "tt_init",
2029
- "sep_rel": 0.975713
2030
- },
2031
- "model.layers.23.mlp.down_proj": {
2032
- "ranks": [
2033
- 1,
2034
- 128,
2035
- 394
2036
- ],
2037
- "params": 13198048,
2038
- "rel_err_whitened": 0.604398,
2039
- "als_skipped_for_memory": true,
2040
- "winner": "tt_init",
2041
- "sep_rel": 0.785305
2042
- },
2043
- "model.layers.24.self_attn.q_proj": {
2044
- "ranks": [
2045
- 1,
2046
- 64,
2047
- 149
2048
- ],
2049
- "params": 2483456,
2050
- "rel_err_whitened": 0.580083,
2051
- "als_skipped_for_memory": false,
2052
- "winner": "tt_padded",
2053
- "sep_rel": 0.992837
2054
- },
2055
- "model.layers.24.self_attn.k_proj": {
2056
- "ranks": [
2057
- 1,
2058
- 32,
2059
- 73
2060
- ],
2061
- "params": 309376,
2062
- "rel_err_whitened": 0.580854,
2063
- "als_skipped_for_memory": false,
2064
- "winner": "tt_padded",
2065
- "sep_rel": 0.992837
2066
- },
2067
- "model.layers.24.self_attn.v_proj": {
2068
- "ranks": [
2069
- 1,
2070
- 32,
2071
- 73
2072
- ],
2073
- "params": 309376,
2074
- "rel_err_whitened": 0.595272,
2075
- "als_skipped_for_memory": false,
2076
- "winner": "tt_padded",
2077
- "sep_rel": 0.992837
2078
- },
2079
- "model.layers.24.self_attn.o_proj": {
2080
- "ranks": [
2081
- 1,
2082
- 64,
2083
- 149
2084
- ],
2085
- "params": 2483456,
2086
- "rel_err_whitened": 0.574078,
2087
- "als_skipped_for_memory": false,
2088
- "winner": "tt_padded",
2089
- "sep_rel": 0.820589
2090
- },
2091
- "model.layers.24.mlp.gate_proj": {
2092
- "ranks": [
2093
- 1,
2094
- 128,
2095
- 394
2096
- ],
2097
- "params": 13198048,
2098
- "rel_err_whitened": 0.60295,
2099
- "als_skipped_for_memory": true,
2100
- "winner": "tt_init",
2101
- "sep_rel": 0.978518
2102
- },
2103
- "model.layers.24.mlp.up_proj": {
2104
- "ranks": [
2105
- 1,
2106
- 128,
2107
- 394
2108
- ],
2109
- "params": 13198048,
2110
- "rel_err_whitened": 0.604438,
2111
- "als_skipped_for_memory": true,
2112
- "winner": "tt_init",
2113
- "sep_rel": 0.978518
2114
- },
2115
- "model.layers.24.mlp.down_proj": {
2116
- "ranks": [
2117
- 1,
2118
- 128,
2119
- 394
2120
- ],
2121
- "params": 13198048,
2122
- "rel_err_whitened": 0.604592,
2123
- "als_skipped_for_memory": true,
2124
- "winner": "tt_init",
2125
- "sep_rel": 0.952028
2126
- },
2127
- "model.layers.25.self_attn.q_proj": {
2128
- "ranks": [
2129
- 1,
2130
- 64,
2131
- 149
2132
- ],
2133
- "params": 2483456,
2134
- "rel_err_whitened": 0.565376,
2135
- "als_skipped_for_memory": false,
2136
- "winner": "tt_padded",
2137
- "sep_rel": 0.988722
2138
- },
2139
- "model.layers.25.self_attn.k_proj": {
2140
- "ranks": [
2141
- 1,
2142
- 32,
2143
- 73
2144
- ],
2145
- "params": 309376,
2146
- "rel_err_whitened": 0.575472,
2147
- "als_skipped_for_memory": false,
2148
- "winner": "tt_padded",
2149
- "sep_rel": 0.988722
2150
- },
2151
- "model.layers.25.self_attn.v_proj": {
2152
- "ranks": [
2153
- 1,
2154
- 32,
2155
- 73
2156
- ],
2157
- "params": 309376,
2158
- "rel_err_whitened": 0.592335,
2159
- "als_skipped_for_memory": false,
2160
- "winner": "tt_padded",
2161
- "sep_rel": 0.988722
2162
- },
2163
- "model.layers.25.self_attn.o_proj": {
2164
- "ranks": [
2165
- 1,
2166
- 64,
2167
- 149
2168
- ],
2169
- "params": 2483456,
2170
- "rel_err_whitened": 0.577098,
2171
- "als_skipped_for_memory": false,
2172
- "winner": "tt_padded",
2173
- "sep_rel": 0.879787
2174
- },
2175
- "model.layers.25.mlp.gate_proj": {
2176
- "ranks": [
2177
- 1,
2178
- 128,
2179
- 394
2180
- ],
2181
- "params": 13198048,
2182
- "rel_err_whitened": 0.603017,
2183
- "als_skipped_for_memory": true,
2184
- "winner": "tt_init",
2185
- "sep_rel": 0.978046
2186
- },
2187
- "model.layers.25.mlp.up_proj": {
2188
- "ranks": [
2189
- 1,
2190
- 128,
2191
- 394
2192
- ],
2193
- "params": 13198048,
2194
- "rel_err_whitened": 0.604961,
2195
- "als_skipped_for_memory": true,
2196
- "winner": "tt_init",
2197
- "sep_rel": 0.978046
2198
- },
2199
- "model.layers.25.mlp.down_proj": {
2200
- "ranks": [
2201
- 1,
2202
- 128,
2203
- 394
2204
- ],
2205
- "params": 13198048,
2206
- "rel_err_whitened": 0.604355,
2207
- "als_skipped_for_memory": true,
2208
- "winner": "tt_init",
2209
- "sep_rel": 0.8204
2210
- },
2211
- "model.layers.26.self_attn.q_proj": {
2212
- "ranks": [
2213
- 1,
2214
- 64,
2215
- 149
2216
- ],
2217
- "params": 2483456,
2218
- "rel_err_whitened": 0.582811,
2219
- "als_skipped_for_memory": false,
2220
- "winner": "tt_padded",
2221
- "sep_rel": 0.985436
2222
- },
2223
- "model.layers.26.self_attn.k_proj": {
2224
- "ranks": [
2225
- 1,
2226
- 32,
2227
- 73
2228
- ],
2229
- "params": 309376,
2230
- "rel_err_whitened": 0.581964,
2231
- "als_skipped_for_memory": false,
2232
- "winner": "tt_padded",
2233
- "sep_rel": 0.985436
2234
- },
2235
- "model.layers.26.self_attn.v_proj": {
2236
- "ranks": [
2237
- 1,
2238
- 32,
2239
- 73
2240
- ],
2241
- "params": 309376,
2242
- "rel_err_whitened": 0.5938,
2243
- "als_skipped_for_memory": false,
2244
- "winner": "tt_padded",
2245
- "sep_rel": 0.985436
2246
- },
2247
- "model.layers.26.self_attn.o_proj": {
2248
- "ranks": [
2249
- 1,
2250
- 64,
2251
- 149
2252
- ],
2253
- "params": 2483456,
2254
- "rel_err_whitened": 0.581201,
2255
- "als_skipped_for_memory": false,
2256
- "winner": "tt_padded",
2257
- "sep_rel": 0.67731
2258
- },
2259
- "model.layers.26.mlp.gate_proj": {
2260
- "ranks": [
2261
- 1,
2262
- 128,
2263
- 394
2264
- ],
2265
- "params": 13198048,
2266
- "rel_err_whitened": 0.602511,
2267
- "als_skipped_for_memory": true,
2268
- "winner": "tt_init",
2269
- "sep_rel": 0.979429
2270
- },
2271
- "model.layers.26.mlp.up_proj": {
2272
- "ranks": [
2273
- 1,
2274
- 128,
2275
- 394
2276
- ],
2277
- "params": 13198048,
2278
- "rel_err_whitened": 0.604568,
2279
- "als_skipped_for_memory": true,
2280
- "winner": "tt_init",
2281
- "sep_rel": 0.979429
2282
- },
2283
- "model.layers.26.mlp.down_proj": {
2284
- "ranks": [
2285
- 1,
2286
- 128,
2287
- 394
2288
- ],
2289
- "params": 13198048,
2290
- "rel_err_whitened": 0.604637,
2291
- "als_skipped_for_memory": true,
2292
- "winner": "tt_init",
2293
- "sep_rel": 0.907833
2294
- },
2295
- "model.layers.27.self_attn.q_proj": {
2296
- "ranks": [
2297
- 1,
2298
- 64,
2299
- 149
2300
- ],
2301
- "params": 2483456,
2302
- "rel_err_whitened": 0.574056,
2303
- "als_skipped_for_memory": false,
2304
- "winner": "tt_padded",
2305
- "sep_rel": 0.988292
2306
- },
2307
- "model.layers.27.self_attn.k_proj": {
2308
- "ranks": [
2309
- 1,
2310
- 32,
2311
- 73
2312
- ],
2313
- "params": 309376,
2314
- "rel_err_whitened": 0.573832,
2315
- "als_skipped_for_memory": false,
2316
- "winner": "tt_padded",
2317
- "sep_rel": 0.988292
2318
- },
2319
- "model.layers.27.self_attn.v_proj": {
2320
- "ranks": [
2321
- 1,
2322
- 32,
2323
- 73
2324
- ],
2325
- "params": 309376,
2326
- "rel_err_whitened": 0.591914,
2327
- "als_skipped_for_memory": false,
2328
- "winner": "tt_padded",
2329
- "sep_rel": 0.988292
2330
- },
2331
- "model.layers.27.self_attn.o_proj": {
2332
- "ranks": [
2333
- 1,
2334
- 64,
2335
- 149
2336
- ],
2337
- "params": 2483456,
2338
- "rel_err_whitened": 0.566219,
2339
- "als_skipped_for_memory": false,
2340
- "winner": "tt_padded",
2341
- "sep_rel": 0.754294
2342
- },
2343
- "model.layers.27.mlp.gate_proj": {
2344
- "ranks": [
2345
- 1,
2346
- 128,
2347
- 394
2348
- ],
2349
- "params": 13198048,
2350
- "rel_err_whitened": 0.602249,
2351
- "als_skipped_for_memory": true,
2352
- "winner": "tt_init",
2353
- "sep_rel": 0.9843
2354
- },
2355
- "model.layers.27.mlp.up_proj": {
2356
- "ranks": [
2357
- 1,
2358
- 128,
2359
- 394
2360
- ],
2361
- "params": 13198048,
2362
- "rel_err_whitened": 0.604358,
2363
- "als_skipped_for_memory": true,
2364
- "winner": "tt_init",
2365
- "sep_rel": 0.9843
2366
- },
2367
- "model.layers.27.mlp.down_proj": {
2368
- "ranks": [
2369
- 1,
2370
- 128,
2371
- 394
2372
- ],
2373
- "params": 13198048,
2374
- "rel_err_whitened": 0.604866,
2375
- "als_skipped_for_memory": true,
2376
- "winner": "tt_init",
2377
- "sep_rel": 0.853358
2378
- },
2379
- "model.layers.28.self_attn.q_proj": {
2380
- "ranks": [
2381
- 1,
2382
- 64,
2383
- 149
2384
- ],
2385
- "params": 2483456,
2386
- "rel_err_whitened": 0.581122,
2387
- "als_skipped_for_memory": false,
2388
- "winner": "tt_padded",
2389
- "sep_rel": 0.985108
2390
- },
2391
- "model.layers.28.self_attn.k_proj": {
2392
- "ranks": [
2393
- 1,
2394
- 32,
2395
- 73
2396
- ],
2397
- "params": 309376,
2398
- "rel_err_whitened": 0.58168,
2399
- "als_skipped_for_memory": false,
2400
- "winner": "tt_padded",
2401
- "sep_rel": 0.985108
2402
- },
2403
- "model.layers.28.self_attn.v_proj": {
2404
- "ranks": [
2405
- 1,
2406
- 32,
2407
- 73
2408
- ],
2409
- "params": 309376,
2410
- "rel_err_whitened": 0.591338,
2411
- "als_skipped_for_memory": false,
2412
- "winner": "tt_padded",
2413
- "sep_rel": 0.985108
2414
- },
2415
- "model.layers.28.self_attn.o_proj": {
2416
- "ranks": [
2417
- 1,
2418
- 64,
2419
- 149
2420
- ],
2421
- "params": 2483456,
2422
- "rel_err_whitened": 0.569068,
2423
- "als_skipped_for_memory": false,
2424
- "winner": "tt_padded",
2425
- "sep_rel": 0.660721
2426
- },
2427
- "model.layers.28.mlp.gate_proj": {
2428
- "ranks": [
2429
- 1,
2430
- 128,
2431
- 394
2432
- ],
2433
- "params": 13198048,
2434
- "rel_err_whitened": 0.602277,
2435
- "als_skipped_for_memory": true,
2436
- "winner": "tt_init",
2437
- "sep_rel": 0.983002
2438
- },
2439
- "model.layers.28.mlp.up_proj": {
2440
- "ranks": [
2441
- 1,
2442
- 128,
2443
- 394
2444
- ],
2445
- "params": 13198048,
2446
- "rel_err_whitened": 0.60458,
2447
- "als_skipped_for_memory": true,
2448
- "winner": "tt_init",
2449
- "sep_rel": 0.983002
2450
- },
2451
- "model.layers.28.mlp.down_proj": {
2452
- "ranks": [
2453
- 1,
2454
- 128,
2455
- 394
2456
- ],
2457
- "params": 13198048,
2458
- "rel_err_whitened": 0.603847,
2459
- "als_skipped_for_memory": true,
2460
- "winner": "tt_init",
2461
- "sep_rel": 0.85938
2462
- },
2463
- "model.layers.29.self_attn.q_proj": {
2464
- "ranks": [
2465
- 1,
2466
- 64,
2467
- 149
2468
- ],
2469
- "params": 2483456,
2470
- "rel_err_whitened": 0.579048,
2471
- "als_skipped_for_memory": false,
2472
- "winner": "tt_padded",
2473
- "sep_rel": 0.979686
2474
- },
2475
- "model.layers.29.self_attn.k_proj": {
2476
- "ranks": [
2477
- 1,
2478
- 32,
2479
- 73
2480
- ],
2481
- "params": 309376,
2482
- "rel_err_whitened": 0.579616,
2483
- "als_skipped_for_memory": false,
2484
- "winner": "tt_padded",
2485
- "sep_rel": 0.979686
2486
- },
2487
- "model.layers.29.self_attn.v_proj": {
2488
- "ranks": [
2489
- 1,
2490
- 32,
2491
- 73
2492
- ],
2493
- "params": 309376,
2494
- "rel_err_whitened": 0.593305,
2495
- "als_skipped_for_memory": false,
2496
- "winner": "tt_padded",
2497
- "sep_rel": 0.979686
2498
- },
2499
- "model.layers.29.self_attn.o_proj": {
2500
- "ranks": [
2501
- 1,
2502
- 64,
2503
- 149
2504
- ],
2505
- "params": 2483456,
2506
- "rel_err_whitened": 0.581411,
2507
- "als_skipped_for_memory": false,
2508
- "winner": "tt_padded",
2509
- "sep_rel": 0.727209
2510
- },
2511
- "model.layers.29.mlp.gate_proj": {
2512
- "ranks": [
2513
- 1,
2514
- 128,
2515
- 394
2516
- ],
2517
- "params": 13198048,
2518
- "rel_err_whitened": 0.602287,
2519
- "als_skipped_for_memory": true,
2520
- "winner": "tt_init",
2521
- "sep_rel": 0.984022
2522
- },
2523
- "model.layers.29.mlp.up_proj": {
2524
- "ranks": [
2525
- 1,
2526
- 128,
2527
- 394
2528
- ],
2529
- "params": 13198048,
2530
- "rel_err_whitened": 0.604357,
2531
- "als_skipped_for_memory": true,
2532
- "winner": "tt_init",
2533
- "sep_rel": 0.984022
2534
- },
2535
- "model.layers.29.mlp.down_proj": {
2536
- "ranks": [
2537
- 1,
2538
- 128,
2539
- 394
2540
- ],
2541
- "params": 13198048,
2542
- "rel_err_whitened": 0.604497,
2543
- "als_skipped_for_memory": true,
2544
- "winner": "tt_init",
2545
- "sep_rel": 0.888887
2546
- },
2547
- "model.layers.30.self_attn.q_proj": {
2548
- "ranks": [
2549
- 1,
2550
- 64,
2551
- 149
2552
- ],
2553
- "params": 2483456,
2554
- "rel_err_whitened": 0.583251,
2555
- "als_skipped_for_memory": false,
2556
- "winner": "tt_padded",
2557
- "sep_rel": 0.982799
2558
- },
2559
- "model.layers.30.self_attn.k_proj": {
2560
- "ranks": [
2561
- 1,
2562
- 32,
2563
- 73
2564
- ],
2565
- "params": 309376,
2566
- "rel_err_whitened": 0.58287,
2567
- "als_skipped_for_memory": false,
2568
- "winner": "tt_padded",
2569
- "sep_rel": 0.982799
2570
- },
2571
- "model.layers.30.self_attn.v_proj": {
2572
- "ranks": [
2573
- 1,
2574
- 32,
2575
- 73
2576
- ],
2577
- "params": 309376,
2578
- "rel_err_whitened": 0.583469,
2579
- "als_skipped_for_memory": false,
2580
- "winner": "tt_padded",
2581
- "sep_rel": 0.982799
2582
- },
2583
- "model.layers.30.self_attn.o_proj": {
2584
- "ranks": [
2585
- 1,
2586
- 64,
2587
- 149
2588
- ],
2589
- "params": 2483456,
2590
- "rel_err_whitened": 0.577949,
2591
- "als_skipped_for_memory": false,
2592
- "winner": "tt_padded",
2593
- "sep_rel": 0.656925
2594
- },
2595
- "model.layers.30.mlp.gate_proj": {
2596
- "ranks": [
2597
- 1,
2598
- 128,
2599
- 394
2600
- ],
2601
- "params": 13198048,
2602
- "rel_err_whitened": 0.601955,
2603
- "als_skipped_for_memory": true,
2604
- "winner": "tt_init",
2605
- "sep_rel": 0.988163
2606
- },
2607
- "model.layers.30.mlp.up_proj": {
2608
- "ranks": [
2609
- 1,
2610
- 128,
2611
- 394
2612
- ],
2613
- "params": 13198048,
2614
- "rel_err_whitened": 0.604064,
2615
- "als_skipped_for_memory": true,
2616
- "winner": "tt_init",
2617
- "sep_rel": 0.988163
2618
- },
2619
- "model.layers.30.mlp.down_proj": {
2620
- "ranks": [
2621
- 1,
2622
- 128,
2623
- 394
2624
- ],
2625
- "params": 13198048,
2626
- "rel_err_whitened": 0.603453,
2627
- "als_skipped_for_memory": true,
2628
- "winner": "tt_init",
2629
- "sep_rel": 0.999968
2630
- },
2631
- "model.layers.31.self_attn.q_proj": {
2632
- "ranks": [
2633
- 1,
2634
- 64,
2635
- 149
2636
- ],
2637
- "params": 2483456,
2638
- "rel_err_whitened": 0.578224,
2639
- "als_skipped_for_memory": false,
2640
- "winner": "tt_padded",
2641
- "sep_rel": 0.98595
2642
- },
2643
- "model.layers.31.self_attn.k_proj": {
2644
- "ranks": [
2645
- 1,
2646
- 32,
2647
- 73
2648
- ],
2649
- "params": 309376,
2650
- "rel_err_whitened": 0.576528,
2651
- "als_skipped_for_memory": false,
2652
- "winner": "tt_padded",
2653
- "sep_rel": 0.98595
2654
- },
2655
- "model.layers.31.self_attn.v_proj": {
2656
- "ranks": [
2657
- 1,
2658
- 32,
2659
- 73
2660
- ],
2661
- "params": 309376,
2662
- "rel_err_whitened": 0.57388,
2663
- "als_skipped_for_memory": false,
2664
- "winner": "tt_padded",
2665
- "sep_rel": 0.98595
2666
- },
2667
- "model.layers.31.self_attn.o_proj": {
2668
- "ranks": [
2669
- 1,
2670
- 64,
2671
- 149
2672
- ],
2673
- "params": 2483456,
2674
- "rel_err_whitened": 0.581784,
2675
- "als_skipped_for_memory": false,
2676
- "winner": "tt_padded",
2677
- "sep_rel": 0.983155
2678
- },
2679
- "model.layers.31.mlp.gate_proj": {
2680
- "ranks": [
2681
- 1,
2682
- 128,
2683
- 394
2684
- ],
2685
- "params": 13198048,
2686
- "rel_err_whitened": 0.601618,
2687
- "als_skipped_for_memory": true,
2688
- "winner": "tt_init",
2689
- "sep_rel": 0.981401
2690
- },
2691
- "model.layers.31.mlp.up_proj": {
2692
- "ranks": [
2693
- 1,
2694
- 128,
2695
- 394
2696
- ],
2697
- "params": 13198048,
2698
- "rel_err_whitened": 0.604113,
2699
- "als_skipped_for_memory": true,
2700
- "winner": "tt_init",
2701
- "sep_rel": 0.981401
2702
- },
2703
- "model.layers.31.mlp.down_proj": {
2704
- "ranks": [
2705
- 1,
2706
- 128,
2707
- 394
2708
- ],
2709
- "params": 13198048,
2710
- "rel_err_whitened": 0.603022,
2711
- "als_skipped_for_memory": true,
2712
- "winner": "tt_init",
2713
- "sep_rel": 0.866292
2714
- },
2715
- "model.layers.32.self_attn.q_proj": {
2716
- "ranks": [
2717
- 1,
2718
- 64,
2719
- 149
2720
- ],
2721
- "params": 2483456,
2722
- "rel_err_whitened": 0.565073,
2723
- "als_skipped_for_memory": false,
2724
- "winner": "tt_padded",
2725
- "sep_rel": 0.985945
2726
- },
2727
- "model.layers.32.self_attn.k_proj": {
2728
- "ranks": [
2729
- 1,
2730
- 32,
2731
- 73
2732
- ],
2733
- "params": 309376,
2734
- "rel_err_whitened": 0.565539,
2735
- "als_skipped_for_memory": false,
2736
- "winner": "tt_padded",
2737
- "sep_rel": 0.985945
2738
- },
2739
- "model.layers.32.self_attn.v_proj": {
2740
- "ranks": [
2741
- 1,
2742
- 32,
2743
- 73
2744
- ],
2745
- "params": 309376,
2746
- "rel_err_whitened": 0.552391,
2747
- "als_skipped_for_memory": false,
2748
- "winner": "tt_padded",
2749
- "sep_rel": 0.985945
2750
- },
2751
- "model.layers.32.self_attn.o_proj": {
2752
- "ranks": [
2753
- 1,
2754
- 64,
2755
- 149
2756
- ],
2757
- "params": 2483456,
2758
- "rel_err_whitened": 0.590005,
2759
- "als_skipped_for_memory": false,
2760
- "winner": "tt_padded",
2761
- "sep_rel": 0.987203
2762
- },
2763
- "model.layers.32.mlp.gate_proj": {
2764
- "ranks": [
2765
- 1,
2766
- 128,
2767
- 394
2768
- ],
2769
- "params": 13198048,
2770
- "rel_err_whitened": 0.601321,
2771
- "als_skipped_for_memory": true,
2772
- "winner": "tt_init",
2773
- "sep_rel": 0.978413
2774
- },
2775
- "model.layers.32.mlp.up_proj": {
2776
- "ranks": [
2777
- 1,
2778
- 128,
2779
- 394
2780
- ],
2781
- "params": 13198048,
2782
- "rel_err_whitened": 0.603662,
2783
- "als_skipped_for_memory": true,
2784
- "winner": "tt_init",
2785
- "sep_rel": 0.978413
2786
- },
2787
- "model.layers.32.mlp.down_proj": {
2788
- "ranks": [
2789
- 1,
2790
- 128,
2791
- 394
2792
- ],
2793
- "params": 13198048,
2794
- "rel_err_whitened": 0.603514,
2795
- "als_skipped_for_memory": true,
2796
- "winner": "tt_init",
2797
- "sep_rel": 0.990104
2798
- },
2799
- "model.layers.33.self_attn.q_proj": {
2800
- "ranks": [
2801
- 1,
2802
- 64,
2803
- 149
2804
- ],
2805
- "params": 2483456,
2806
- "rel_err_whitened": 0.541786,
2807
- "als_skipped_for_memory": false,
2808
- "winner": "tt_padded",
2809
- "sep_rel": 0.989849
2810
- },
2811
- "model.layers.33.self_attn.k_proj": {
2812
- "ranks": [
2813
- 1,
2814
- 32,
2815
- 73
2816
- ],
2817
- "params": 309376,
2818
- "rel_err_whitened": 0.554814,
2819
- "als_skipped_for_memory": false,
2820
- "winner": "tt_padded",
2821
- "sep_rel": 0.989849
2822
- },
2823
- "model.layers.33.self_attn.v_proj": {
2824
- "ranks": [
2825
- 1,
2826
- 32,
2827
- 73
2828
- ],
2829
- "params": 309376,
2830
- "rel_err_whitened": 0.551823,
2831
- "als_skipped_for_memory": false,
2832
- "winner": "tt_padded",
2833
- "sep_rel": 0.989849
2834
- },
2835
- "model.layers.33.self_attn.o_proj": {
2836
- "ranks": [
2837
- 1,
2838
- 64,
2839
- 149
2840
- ],
2841
- "params": 2483456,
2842
- "rel_err_whitened": 0.593854,
2843
- "als_skipped_for_memory": false,
2844
- "winner": "tt_padded",
2845
- "sep_rel": 0.929093
2846
- },
2847
- "model.layers.33.mlp.gate_proj": {
2848
- "ranks": [
2849
- 1,
2850
- 128,
2851
- 394
2852
- ],
2853
- "params": 13198048,
2854
- "rel_err_whitened": 0.601464,
2855
- "als_skipped_for_memory": true,
2856
- "winner": "tt_init",
2857
- "sep_rel": 0.977111
2858
- },
2859
- "model.layers.33.mlp.up_proj": {
2860
- "ranks": [
2861
- 1,
2862
- 128,
2863
- 394
2864
- ],
2865
- "params": 13198048,
2866
- "rel_err_whitened": 0.603281,
2867
- "als_skipped_for_memory": true,
2868
- "winner": "tt_init",
2869
- "sep_rel": 0.977111
2870
- },
2871
- "model.layers.33.mlp.down_proj": {
2872
- "ranks": [
2873
- 1,
2874
- 128,
2875
- 394
2876
- ],
2877
- "params": 13198048,
2878
- "rel_err_whitened": 0.603885,
2879
- "als_skipped_for_memory": true,
2880
- "winner": "tt_init",
2881
- "sep_rel": 0.989971
2882
- },
2883
- "model.layers.34.self_attn.q_proj": {
2884
- "ranks": [
2885
- 1,
2886
- 64,
2887
- 149
2888
- ],
2889
- "params": 2483456,
2890
- "rel_err_whitened": 0.589411,
2891
- "als_skipped_for_memory": false,
2892
- "winner": "tt_padded",
2893
- "sep_rel": 0.989416
2894
- },
2895
- "model.layers.34.self_attn.k_proj": {
2896
- "ranks": [
2897
- 1,
2898
- 32,
2899
- 73
2900
- ],
2901
- "params": 309376,
2902
- "rel_err_whitened": 0.58627,
2903
- "als_skipped_for_memory": false,
2904
- "winner": "tt_padded",
2905
- "sep_rel": 0.989416
2906
- },
2907
- "model.layers.34.self_attn.v_proj": {
2908
- "ranks": [
2909
- 1,
2910
- 32,
2911
- 73
2912
- ],
2913
- "params": 309376,
2914
- "rel_err_whitened": 0.593381,
2915
- "als_skipped_for_memory": false,
2916
- "winner": "tt_padded",
2917
- "sep_rel": 0.989416
2918
- },
2919
- "model.layers.34.self_attn.o_proj": {
2920
- "ranks": [
2921
- 1,
2922
- 64,
2923
- 149
2924
- ],
2925
- "params": 2483456,
2926
- "rel_err_whitened": 0.57693,
2927
- "als_skipped_for_memory": false,
2928
- "winner": "tt_padded",
2929
- "sep_rel": 0.985777
2930
- },
2931
- "model.layers.34.mlp.gate_proj": {
2932
- "ranks": [
2933
- 1,
2934
- 128,
2935
- 394
2936
- ],
2937
- "params": 13198048,
2938
- "rel_err_whitened": 0.602183,
2939
- "als_skipped_for_memory": true,
2940
- "winner": "tt_init",
2941
- "sep_rel": 0.987293
2942
- },
2943
- "model.layers.34.mlp.up_proj": {
2944
- "ranks": [
2945
- 1,
2946
- 128,
2947
- 394
2948
- ],
2949
- "params": 13198048,
2950
- "rel_err_whitened": 0.60416,
2951
- "als_skipped_for_memory": true,
2952
- "winner": "tt_init",
2953
- "sep_rel": 0.987293
2954
- },
2955
- "model.layers.34.mlp.down_proj": {
2956
- "ranks": [
2957
- 1,
2958
- 128,
2959
- 394
2960
- ],
2961
- "params": 13198048,
2962
- "rel_err_whitened": 0.60453,
2963
- "als_skipped_for_memory": true,
2964
- "winner": "tt_init",
2965
- "sep_rel": 0.992712
2966
- },
2967
- "model.layers.35.self_attn.q_proj": {
2968
- "ranks": [
2969
- 1,
2970
- 64,
2971
- 149
2972
- ],
2973
- "params": 2483456,
2974
- "rel_err_whitened": 0.594823,
2975
- "als_skipped_for_memory": false,
2976
- "winner": "tt_padded",
2977
- "sep_rel": 0.963134
2978
- },
2979
- "model.layers.35.self_attn.k_proj": {
2980
- "ranks": [
2981
- 1,
2982
- 32,
2983
- 73
2984
- ],
2985
- "params": 309376,
2986
- "rel_err_whitened": 0.58898,
2987
- "als_skipped_for_memory": false,
2988
- "winner": "tt_padded",
2989
- "sep_rel": 0.963134
2990
- },
2991
- "model.layers.35.self_attn.v_proj": {
2992
- "ranks": [
2993
- 1,
2994
- 32,
2995
- 73
2996
- ],
2997
- "params": 309376,
2998
- "rel_err_whitened": 0.59314,
2999
- "als_skipped_for_memory": false,
3000
- "winner": "tt_padded",
3001
- "sep_rel": 0.963134
3002
- },
3003
- "model.layers.35.self_attn.o_proj": {
3004
- "ranks": [
3005
- 1,
3006
- 64,
3007
- 149
3008
- ],
3009
- "params": 2483456,
3010
- "rel_err_whitened": 0.578685,
3011
- "als_skipped_for_memory": false,
3012
- "winner": "tt_padded",
3013
- "sep_rel": 0.967955
3014
- },
3015
- "model.layers.35.mlp.gate_proj": {
3016
- "ranks": [
3017
- 1,
3018
- 128,
3019
- 394
3020
- ],
3021
- "params": 13198048,
3022
- "rel_err_whitened": 0.599325,
3023
- "als_skipped_for_memory": true,
3024
- "winner": "tt_init",
3025
- "sep_rel": 0.997148
3026
- },
3027
- "model.layers.35.mlp.up_proj": {
3028
- "ranks": [
3029
- 1,
3030
- 128,
3031
- 394
3032
- ],
3033
- "params": 13198048,
3034
- "rel_err_whitened": 0.604294,
3035
- "als_skipped_for_memory": true,
3036
- "winner": "tt_init",
3037
- "sep_rel": 0.997148
3038
- },
3039
- "model.layers.35.mlp.down_proj": {
3040
- "ranks": [
3041
- 1,
3042
- 128,
3043
- 394
3044
- ],
3045
- "params": 13198048,
3046
- "rel_err_whitened": 0.602678,
3047
- "als_skipped_for_memory": true,
3048
- "winner": "tt_init",
3049
- "sep_rel": 0.999802
3050
- }
3051
- }
3052
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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n.k_proj": {
15
- "o1": 4,
16
- "o2": 8,
17
- "o3": 8,
18
- "i1": 8,
19
- "i2": 16,
20
- "i3": 16,
21
- "r0": 1,
22
- "r1": 32,
23
- "r2": 73,
24
- "nnz": 26214
25
- },
26
- "model.layers.0.self_attn.v_proj": {
27
- "o1": 4,
28
- "o2": 8,
29
- "o3": 8,
30
- "i1": 8,
31
- "i2": 16,
32
- "i3": 16,
33
- "r0": 1,
34
- "r1": 32,
35
- "r2": 73,
36
- "nnz": 26214
37
- },
38
- "model.layers.0.self_attn.o_proj": {
39
- "o1": 8,
40
- "o2": 16,
41
- "o3": 16,
42
- "i1": 8,
43
- "i2": 16,
44
- "i3": 16,
45
- "r0": 1,
46
- "r1": 64,
47
- "r2": 149,
48
- "nnz": 209715
49
- },
50
- "model.layers.0.mlp.gate_proj": {
51
- "o1": 16,
52
- "o2": 16,
53
- "o3": 43,
54
- "i1": 8,
55
- "i2": 16,
56
- "i3": 16,
57
- "r0": 1,
58
- "r1": 128,
59
- "r2": 394,
60
- "nnz": 1127219
61
- },
62
- "model.layers.0.mlp.up_proj": {
63
- "o1": 16,
64
- "o2": 16,
65
- "o3": 43,
66
- "i1": 8,
67
- "i2": 16,
68
- "i3": 16,
69
- "r0": 1,
70
- "r1": 128,
71
- "r2": 394,
72
- "nnz": 1127219
73
- },
74
- "model.layers.0.mlp.down_proj": {
75
- "o1": 8,
76
- "o2": 16,
77
- "o3": 16,
78
- "i1": 16,
79
- "i2": 16,
80
- "i3": 43,
81
- "r0": 1,
82
- "r1": 128,
83
- "r2": 394,
84
- "nnz": 1127219
85
- },
86
- "model.layers.1.self_attn.q_proj": {
87
- "o1": 8,
88
- "o2": 16,
89
- "o3": 16,
90
- "i1": 8,
91
- "i2": 16,
92
- "i3": 16,
93
- "r0": 1,
94
- "r1": 64,
95
- "r2": 149,
96
- "nnz": 209715
97
- },
98
- "model.layers.1.self_attn.k_proj": {
99
- "o1": 4,
100
- "o2": 8,
101
- "o3": 8,
102
- "i1": 8,
103
- "i2": 16,
104
- "i3": 16,
105
- "r0": 1,
106
- "r1": 32,
107
- "r2": 73,
108
- "nnz": 26214
109
- },
110
- "model.layers.1.self_attn.v_proj": {
111
- "o1": 4,
112
- "o2": 8,
113
- "o3": 8,
114
- "i1": 8,
115
- "i2": 16,
116
- "i3": 16,
117
- "r0": 1,
118
- "r1": 32,
119
- "r2": 73,
120
- "nnz": 26214
121
- },
122
- "model.layers.1.self_attn.o_proj": {
123
- "o1": 8,
124
- "o2": 16,
125
- "o3": 16,
126
- "i1": 8,
127
- "i2": 16,
128
- "i3": 16,
129
- "r0": 1,
130
- "r1": 64,
131
- "r2": 149,
132
- "nnz": 209715
133
- },
134
- "model.layers.1.mlp.gate_proj": {
135
- "o1": 16,
136
- "o2": 16,
137
- "o3": 43,
138
- "i1": 8,
139
- "i2": 16,
140
- "i3": 16,
141
- "r0": 1,
142
- "r1": 128,
143
- "r2": 394,
144
- "nnz": 1127219
145
- },
146
- "model.layers.1.mlp.up_proj": {
147
- "o1": 16,
148
- "o2": 16,
149
- "o3": 43,
150
- "i1": 8,
151
- "i2": 16,
152
- "i3": 16,
153
- "r0": 1,
154
- "r1": 128,
155
- "r2": 394,
156
- "nnz": 1127219
157
- },
158
- "model.layers.1.mlp.down_proj": {
159
- "o1": 8,
160
- "o2": 16,
161
- "o3": 16,
162
- "i1": 16,
163
- "i2": 16,
164
- "i3": 43,
165
- "r0": 1,
166
- "r1": 128,
167
- "r2": 394,
168
- "nnz": 1127219
169
- },
170
- "model.layers.2.self_attn.q_proj": {
171
- "o1": 8,
172
- "o2": 16,
173
- "o3": 16,
174
- "i1": 8,
175
- "i2": 16,
176
- "i3": 16,
177
- "r0": 1,
178
- "r1": 64,
179
- "r2": 149,
180
- "nnz": 209715
181
- },
182
- "model.layers.2.self_attn.k_proj": {
183
- "o1": 4,
184
- "o2": 8,
185
- "o3": 8,
186
- "i1": 8,
187
- "i2": 16,
188
- "i3": 16,
189
- "r0": 1,
190
- "r1": 32,
191
- "r2": 73,
192
- "nnz": 26214
193
- },
194
- "model.layers.2.self_attn.v_proj": {
195
- "o1": 4,
196
- "o2": 8,
197
- "o3": 8,
198
- "i1": 8,
199
- "i2": 16,
200
- "i3": 16,
201
- "r0": 1,
202
- "r1": 32,
203
- "r2": 73,
204
- "nnz": 26214
205
- },
206
- "model.layers.2.self_attn.o_proj": {
207
- "o1": 8,
208
- "o2": 16,
209
- "o3": 16,
210
- "i1": 8,
211
- "i2": 16,
212
- "i3": 16,
213
- "r0": 1,
214
- "r1": 64,
215
- "r2": 149,
216
- "nnz": 209715
217
- },
218
- "model.layers.2.mlp.gate_proj": {
219
- "o1": 16,
220
- "o2": 16,
221
- "o3": 43,
222
- "i1": 8,
223
- "i2": 16,
224
- "i3": 16,
225
- "r0": 1,
226
- "r1": 128,
227
- "r2": 394,
228
- "nnz": 1127219
229
- },
230
- "model.layers.2.mlp.up_proj": {
231
- "o1": 16,
232
- "o2": 16,
233
- "o3": 43,
234
- "i1": 8,
235
- "i2": 16,
236
- "i3": 16,
237
- "r0": 1,
238
- "r1": 128,
239
- "r2": 394,
240
- "nnz": 1127219
241
- },
242
- "model.layers.2.mlp.down_proj": {
243
- "o1": 8,
244
- "o2": 16,
245
- "o3": 16,
246
- "i1": 16,
247
- "i2": 16,
248
- "i3": 43,
249
- "r0": 1,
250
- "r1": 128,
251
- "r2": 394,
252
- "nnz": 1127219
253
- },
254
- "model.layers.3.self_attn.q_proj": {
255
- "o1": 8,
256
- "o2": 16,
257
- "o3": 16,
258
- "i1": 8,
259
- "i2": 16,
260
- "i3": 16,
261
- "r0": 1,
262
- "r1": 64,
263
- "r2": 149,
264
- "nnz": 209715
265
- },
266
- "model.layers.3.self_attn.k_proj": {
267
- "o1": 4,
268
- "o2": 8,
269
- "o3": 8,
270
- "i1": 8,
271
- "i2": 16,
272
- "i3": 16,
273
- "r0": 1,
274
- "r1": 32,
275
- "r2": 73,
276
- "nnz": 26214
277
- },
278
- "model.layers.3.self_attn.v_proj": {
279
- "o1": 4,
280
- "o2": 8,
281
- "o3": 8,
282
- "i1": 8,
283
- "i2": 16,
284
- "i3": 16,
285
- "r0": 1,
286
- "r1": 32,
287
- "r2": 73,
288
- "nnz": 26214
289
- },
290
- "model.layers.3.self_attn.o_proj": {
291
- "o1": 8,
292
- "o2": 16,
293
- "o3": 16,
294
- "i1": 8,
295
- "i2": 16,
296
- "i3": 16,
297
- "r0": 1,
298
- "r1": 64,
299
- "r2": 149,
300
- "nnz": 209715
301
- },
302
- "model.layers.3.mlp.gate_proj": {
303
- "o1": 16,
304
- "o2": 16,
305
- "o3": 43,
306
- "i1": 8,
307
- "i2": 16,
308
- "i3": 16,
309
- "r0": 1,
310
- "r1": 128,
311
- "r2": 394,
312
- "nnz": 1127219
313
- },
314
- "model.layers.3.mlp.up_proj": {
315
- "o1": 16,
316
- "o2": 16,
317
- "o3": 43,
318
- "i1": 8,
319
- "i2": 16,
320
- "i3": 16,
321
- "r0": 1,
322
- "r1": 128,
323
- "r2": 394,
324
- "nnz": 1127219
325
- },
326
- "model.layers.3.mlp.down_proj": {
327
- "o1": 8,
328
- "o2": 16,
329
- "o3": 16,
330
- "i1": 16,
331
- "i2": 16,
332
- "i3": 43,
333
- "r0": 1,
334
- "r1": 128,
335
- "r2": 394,
336
- "nnz": 1127219
337
- },
338
- "model.layers.4.self_attn.q_proj": {
339
- "o1": 8,
340
- "o2": 16,
341
- "o3": 16,
342
- "i1": 8,
343
- "i2": 16,
344
- "i3": 16,
345
- "r0": 1,
346
- "r1": 64,
347
- "r2": 149,
348
- "nnz": 209715
349
- },
350
- "model.layers.4.self_attn.k_proj": {
351
- "o1": 4,
352
- "o2": 8,
353
- "o3": 8,
354
- "i1": 8,
355
- "i2": 16,
356
- "i3": 16,
357
- "r0": 1,
358
- "r1": 32,
359
- "r2": 73,
360
- "nnz": 26214
361
- },
362
- "model.layers.4.self_attn.v_proj": {
363
- "o1": 4,
364
- "o2": 8,
365
- "o3": 8,
366
- "i1": 8,
367
- "i2": 16,
368
- "i3": 16,
369
- "r0": 1,
370
- "r1": 32,
371
- "r2": 73,
372
- "nnz": 26214
373
- },
374
- "model.layers.4.self_attn.o_proj": {
375
- "o1": 8,
376
- "o2": 16,
377
- "o3": 16,
378
- "i1": 8,
379
- "i2": 16,
380
- "i3": 16,
381
- "r0": 1,
382
- "r1": 64,
383
- "r2": 149,
384
- "nnz": 209715
385
- },
386
- "model.layers.4.mlp.gate_proj": {
387
- "o1": 16,
388
- "o2": 16,
389
- "o3": 43,
390
- "i1": 8,
391
- "i2": 16,
392
- "i3": 16,
393
- "r0": 1,
394
- "r1": 128,
395
- "r2": 394,
396
- "nnz": 1127219
397
- },
398
- "model.layers.4.mlp.up_proj": {
399
- "o1": 16,
400
- "o2": 16,
401
- "o3": 43,
402
- "i1": 8,
403
- "i2": 16,
404
- "i3": 16,
405
- "r0": 1,
406
- "r1": 128,
407
- "r2": 394,
408
- "nnz": 1127219
409
- },
410
- "model.layers.4.mlp.down_proj": {
411
- "o1": 8,
412
- "o2": 16,
413
- "o3": 16,
414
- "i1": 16,
415
- "i2": 16,
416
- "i3": 43,
417
- "r0": 1,
418
- "r1": 128,
419
- "r2": 394,
420
- "nnz": 1127219
421
- },
422
- "model.layers.5.self_attn.q_proj": {
423
- "o1": 8,
424
- "o2": 16,
425
- "o3": 16,
426
- "i1": 8,
427
- "i2": 16,
428
- "i3": 16,
429
- "r0": 1,
430
- "r1": 64,
431
- "r2": 149,
432
- "nnz": 209715
433
- },
434
- "model.layers.5.self_attn.k_proj": {
435
- "o1": 4,
436
- "o2": 8,
437
- "o3": 8,
438
- "i1": 8,
439
- "i2": 16,
440
- "i3": 16,
441
- "r0": 1,
442
- "r1": 32,
443
- "r2": 73,
444
- "nnz": 26214
445
- },
446
- "model.layers.5.self_attn.v_proj": {
447
- "o1": 4,
448
- "o2": 8,
449
- "o3": 8,
450
- "i1": 8,
451
- "i2": 16,
452
- "i3": 16,
453
- "r0": 1,
454
- "r1": 32,
455
- "r2": 73,
456
- "nnz": 26214
457
- },
458
- "model.layers.5.self_attn.o_proj": {
459
- "o1": 8,
460
- "o2": 16,
461
- "o3": 16,
462
- "i1": 8,
463
- "i2": 16,
464
- "i3": 16,
465
- "r0": 1,
466
- "r1": 64,
467
- "r2": 149,
468
- "nnz": 209715
469
- },
470
- "model.layers.5.mlp.gate_proj": {
471
- "o1": 16,
472
- "o2": 16,
473
- "o3": 43,
474
- "i1": 8,
475
- "i2": 16,
476
- "i3": 16,
477
- "r0": 1,
478
- "r1": 128,
479
- "r2": 394,
480
- "nnz": 1127219
481
- },
482
- "model.layers.5.mlp.up_proj": {
483
- "o1": 16,
484
- "o2": 16,
485
- "o3": 43,
486
- "i1": 8,
487
- "i2": 16,
488
- "i3": 16,
489
- "r0": 1,
490
- "r1": 128,
491
- "r2": 394,
492
- "nnz": 1127219
493
- },
494
- "model.layers.5.mlp.down_proj": {
495
- "o1": 8,
496
- "o2": 16,
497
- "o3": 16,
498
- "i1": 16,
499
- "i2": 16,
500
- "i3": 43,
501
- "r0": 1,
502
- "r1": 128,
503
- "r2": 394,
504
- "nnz": 1127219
505
- },
506
- "model.layers.6.self_attn.q_proj": {
507
- "o1": 8,
508
- "o2": 16,
509
- "o3": 16,
510
- "i1": 8,
511
- "i2": 16,
512
- "i3": 16,
513
- "r0": 1,
514
- "r1": 64,
515
- "r2": 149,
516
- "nnz": 209715
517
- },
518
- "model.layers.6.self_attn.k_proj": {
519
- "o1": 4,
520
- "o2": 8,
521
- "o3": 8,
522
- "i1": 8,
523
- "i2": 16,
524
- "i3": 16,
525
- "r0": 1,
526
- "r1": 32,
527
- "r2": 73,
528
- "nnz": 26214
529
- },
530
- "model.layers.6.self_attn.v_proj": {
531
- "o1": 4,
532
- "o2": 8,
533
- "o3": 8,
534
- "i1": 8,
535
- "i2": 16,
536
- "i3": 16,
537
- "r0": 1,
538
- "r1": 32,
539
- "r2": 73,
540
- "nnz": 26214
541
- },
542
- "model.layers.6.self_attn.o_proj": {
543
- "o1": 8,
544
- "o2": 16,
545
- "o3": 16,
546
- "i1": 8,
547
- "i2": 16,
548
- "i3": 16,
549
- "r0": 1,
550
- "r1": 64,
551
- "r2": 149,
552
- "nnz": 209715
553
- },
554
- "model.layers.6.mlp.gate_proj": {
555
- "o1": 16,
556
- "o2": 16,
557
- "o3": 43,
558
- "i1": 8,
559
- "i2": 16,
560
- "i3": 16,
561
- "r0": 1,
562
- "r1": 128,
563
- "r2": 394,
564
- "nnz": 1127219
565
- },
566
- "model.layers.6.mlp.up_proj": {
567
- "o1": 16,
568
- "o2": 16,
569
- "o3": 43,
570
- "i1": 8,
571
- "i2": 16,
572
- "i3": 16,
573
- "r0": 1,
574
- "r1": 128,
575
- "r2": 394,
576
- "nnz": 1127219
577
- },
578
- "model.layers.6.mlp.down_proj": {
579
- "o1": 8,
580
- "o2": 16,
581
- "o3": 16,
582
- "i1": 16,
583
- "i2": 16,
584
- "i3": 43,
585
- "r0": 1,
586
- "r1": 128,
587
- "r2": 394,
588
- "nnz": 1127219
589
- },
590
- "model.layers.7.self_attn.q_proj": {
591
- "o1": 8,
592
- "o2": 16,
593
- "o3": 16,
594
- "i1": 8,
595
- "i2": 16,
596
- "i3": 16,
597
- "r0": 1,
598
- "r1": 64,
599
- "r2": 149,
600
- "nnz": 209715
601
- },
602
- "model.layers.7.self_attn.k_proj": {
603
- "o1": 4,
604
- "o2": 8,
605
- "o3": 8,
606
- "i1": 8,
607
- "i2": 16,
608
- "i3": 16,
609
- "r0": 1,
610
- "r1": 32,
611
- "r2": 73,
612
- "nnz": 26214
613
- },
614
- "model.layers.7.self_attn.v_proj": {
615
- "o1": 4,
616
- "o2": 8,
617
- "o3": 8,
618
- "i1": 8,
619
- "i2": 16,
620
- "i3": 16,
621
- "r0": 1,
622
- "r1": 32,
623
- "r2": 73,
624
- "nnz": 26214
625
- },
626
- "model.layers.7.self_attn.o_proj": {
627
- "o1": 8,
628
- "o2": 16,
629
- "o3": 16,
630
- "i1": 8,
631
- "i2": 16,
632
- "i3": 16,
633
- "r0": 1,
634
- "r1": 64,
635
- "r2": 149,
636
- "nnz": 209715
637
- },
638
- "model.layers.7.mlp.gate_proj": {
639
- "o1": 16,
640
- "o2": 16,
641
- "o3": 43,
642
- "i1": 8,
643
- "i2": 16,
644
- "i3": 16,
645
- "r0": 1,
646
- "r1": 128,
647
- "r2": 394,
648
- "nnz": 1127219
649
- },
650
- "model.layers.7.mlp.up_proj": {
651
- "o1": 16,
652
- "o2": 16,
653
- "o3": 43,
654
- "i1": 8,
655
- "i2": 16,
656
- "i3": 16,
657
- "r0": 1,
658
- "r1": 128,
659
- "r2": 394,
660
- "nnz": 1127219
661
- },
662
- "model.layers.7.mlp.down_proj": {
663
- "o1": 8,
664
- "o2": 16,
665
- "o3": 16,
666
- "i1": 16,
667
- "i2": 16,
668
- "i3": 43,
669
- "r0": 1,
670
- "r1": 128,
671
- "r2": 394,
672
- "nnz": 1127219
673
- },
674
- "model.layers.8.self_attn.q_proj": {
675
- "o1": 8,
676
- "o2": 16,
677
- "o3": 16,
678
- "i1": 8,
679
- "i2": 16,
680
- "i3": 16,
681
- "r0": 1,
682
- "r1": 64,
683
- "r2": 149,
684
- "nnz": 209715
685
- },
686
- "model.layers.8.self_attn.k_proj": {
687
- "o1": 4,
688
- "o2": 8,
689
- "o3": 8,
690
- "i1": 8,
691
- "i2": 16,
692
- "i3": 16,
693
- "r0": 1,
694
- "r1": 32,
695
- "r2": 73,
696
- "nnz": 26214
697
- },
698
- "model.layers.8.self_attn.v_proj": {
699
- "o1": 4,
700
- "o2": 8,
701
- "o3": 8,
702
- "i1": 8,
703
- "i2": 16,
704
- "i3": 16,
705
- "r0": 1,
706
- "r1": 32,
707
- "r2": 73,
708
- "nnz": 26214
709
- },
710
- "model.layers.8.self_attn.o_proj": {
711
- "o1": 8,
712
- "o2": 16,
713
- "o3": 16,
714
- "i1": 8,
715
- "i2": 16,
716
- "i3": 16,
717
- "r0": 1,
718
- "r1": 64,
719
- "r2": 149,
720
- "nnz": 209715
721
- },
722
- "model.layers.8.mlp.gate_proj": {
723
- "o1": 16,
724
- "o2": 16,
725
- "o3": 43,
726
- "i1": 8,
727
- "i2": 16,
728
- "i3": 16,
729
- "r0": 1,
730
- "r1": 128,
731
- "r2": 394,
732
- "nnz": 1127219
733
- },
734
- "model.layers.8.mlp.up_proj": {
735
- "o1": 16,
736
- "o2": 16,
737
- "o3": 43,
738
- "i1": 8,
739
- "i2": 16,
740
- "i3": 16,
741
- "r0": 1,
742
- "r1": 128,
743
- "r2": 394,
744
- "nnz": 1127219
745
- },
746
- "model.layers.8.mlp.down_proj": {
747
- "o1": 8,
748
- "o2": 16,
749
- "o3": 16,
750
- "i1": 16,
751
- "i2": 16,
752
- "i3": 43,
753
- "r0": 1,
754
- "r1": 128,
755
- "r2": 394,
756
- "nnz": 1127219
757
- },
758
- "model.layers.9.self_attn.q_proj": {
759
- "o1": 8,
760
- "o2": 16,
761
- "o3": 16,
762
- "i1": 8,
763
- "i2": 16,
764
- "i3": 16,
765
- "r0": 1,
766
- "r1": 64,
767
- "r2": 149,
768
- "nnz": 209715
769
- },
770
- "model.layers.9.self_attn.k_proj": {
771
- "o1": 4,
772
- "o2": 8,
773
- "o3": 8,
774
- "i1": 8,
775
- "i2": 16,
776
- "i3": 16,
777
- "r0": 1,
778
- "r1": 32,
779
- "r2": 73,
780
- "nnz": 26214
781
- },
782
- "model.layers.9.self_attn.v_proj": {
783
- "o1": 4,
784
- "o2": 8,
785
- "o3": 8,
786
- "i1": 8,
787
- "i2": 16,
788
- "i3": 16,
789
- "r0": 1,
790
- "r1": 32,
791
- "r2": 73,
792
- "nnz": 26214
793
- },
794
- "model.layers.9.self_attn.o_proj": {
795
- "o1": 8,
796
- "o2": 16,
797
- "o3": 16,
798
- "i1": 8,
799
- "i2": 16,
800
- "i3": 16,
801
- "r0": 1,
802
- "r1": 64,
803
- "r2": 149,
804
- "nnz": 209715
805
- },
806
- "model.layers.9.mlp.gate_proj": {
807
- "o1": 16,
808
- "o2": 16,
809
- "o3": 43,
810
- "i1": 8,
811
- "i2": 16,
812
- "i3": 16,
813
- "r0": 1,
814
- "r1": 128,
815
- "r2": 394,
816
- "nnz": 1127219
817
- },
818
- "model.layers.9.mlp.up_proj": {
819
- "o1": 16,
820
- "o2": 16,
821
- "o3": 43,
822
- "i1": 8,
823
- "i2": 16,
824
- "i3": 16,
825
- "r0": 1,
826
- "r1": 128,
827
- "r2": 394,
828
- "nnz": 1127219
829
- },
830
- "model.layers.9.mlp.down_proj": {
831
- "o1": 8,
832
- "o2": 16,
833
- "o3": 16,
834
- "i1": 16,
835
- "i2": 16,
836
- "i3": 43,
837
- "r0": 1,
838
- "r1": 128,
839
- "r2": 394,
840
- "nnz": 1127219
841
- },
842
- "model.layers.10.self_attn.q_proj": {
843
- "o1": 8,
844
- "o2": 16,
845
- "o3": 16,
846
- "i1": 8,
847
- "i2": 16,
848
- "i3": 16,
849
- "r0": 1,
850
- "r1": 64,
851
- "r2": 149,
852
- "nnz": 209715
853
- },
854
- "model.layers.10.self_attn.k_proj": {
855
- "o1": 4,
856
- "o2": 8,
857
- "o3": 8,
858
- "i1": 8,
859
- "i2": 16,
860
- "i3": 16,
861
- "r0": 1,
862
- "r1": 32,
863
- "r2": 73,
864
- "nnz": 26214
865
- },
866
- "model.layers.10.self_attn.v_proj": {
867
- "o1": 4,
868
- "o2": 8,
869
- "o3": 8,
870
- "i1": 8,
871
- "i2": 16,
872
- "i3": 16,
873
- "r0": 1,
874
- "r1": 32,
875
- "r2": 73,
876
- "nnz": 26214
877
- },
878
- "model.layers.10.self_attn.o_proj": {
879
- "o1": 8,
880
- "o2": 16,
881
- "o3": 16,
882
- "i1": 8,
883
- "i2": 16,
884
- "i3": 16,
885
- "r0": 1,
886
- "r1": 64,
887
- "r2": 149,
888
- "nnz": 209715
889
- },
890
- "model.layers.10.mlp.gate_proj": {
891
- "o1": 16,
892
- "o2": 16,
893
- "o3": 43,
894
- "i1": 8,
895
- "i2": 16,
896
- "i3": 16,
897
- "r0": 1,
898
- "r1": 128,
899
- "r2": 394,
900
- "nnz": 1127219
901
- },
902
- "model.layers.10.mlp.up_proj": {
903
- "o1": 16,
904
- "o2": 16,
905
- "o3": 43,
906
- "i1": 8,
907
- "i2": 16,
908
- "i3": 16,
909
- "r0": 1,
910
- "r1": 128,
911
- "r2": 394,
912
- "nnz": 1127219
913
- },
914
- "model.layers.10.mlp.down_proj": {
915
- "o1": 8,
916
- "o2": 16,
917
- "o3": 16,
918
- "i1": 16,
919
- "i2": 16,
920
- "i3": 43,
921
- "r0": 1,
922
- "r1": 128,
923
- "r2": 394,
924
- "nnz": 1127219
925
- },
926
- "model.layers.11.self_attn.q_proj": {
927
- "o1": 8,
928
- "o2": 16,
929
- "o3": 16,
930
- "i1": 8,
931
- "i2": 16,
932
- "i3": 16,
933
- "r0": 1,
934
- "r1": 64,
935
- "r2": 149,
936
- "nnz": 209715
937
- },
938
- "model.layers.11.self_attn.k_proj": {
939
- "o1": 4,
940
- "o2": 8,
941
- "o3": 8,
942
- "i1": 8,
943
- "i2": 16,
944
- "i3": 16,
945
- "r0": 1,
946
- "r1": 32,
947
- "r2": 73,
948
- "nnz": 26214
949
- },
950
- "model.layers.11.self_attn.v_proj": {
951
- "o1": 4,
952
- "o2": 8,
953
- "o3": 8,
954
- "i1": 8,
955
- "i2": 16,
956
- "i3": 16,
957
- "r0": 1,
958
- "r1": 32,
959
- "r2": 73,
960
- "nnz": 26214
961
- },
962
- "model.layers.11.self_attn.o_proj": {
963
- "o1": 8,
964
- "o2": 16,
965
- "o3": 16,
966
- "i1": 8,
967
- "i2": 16,
968
- "i3": 16,
969
- "r0": 1,
970
- "r1": 64,
971
- "r2": 149,
972
- "nnz": 209715
973
- },
974
- "model.layers.11.mlp.gate_proj": {
975
- "o1": 16,
976
- "o2": 16,
977
- "o3": 43,
978
- "i1": 8,
979
- "i2": 16,
980
- "i3": 16,
981
- "r0": 1,
982
- "r1": 128,
983
- "r2": 394,
984
- "nnz": 1127219
985
- },
986
- "model.layers.11.mlp.up_proj": {
987
- "o1": 16,
988
- "o2": 16,
989
- "o3": 43,
990
- "i1": 8,
991
- "i2": 16,
992
- "i3": 16,
993
- "r0": 1,
994
- "r1": 128,
995
- "r2": 394,
996
- "nnz": 1127219
997
- },
998
- "model.layers.11.mlp.down_proj": {
999
- "o1": 8,
1000
- "o2": 16,
1001
- "o3": 16,
1002
- "i1": 16,
1003
- "i2": 16,
1004
- "i3": 43,
1005
- "r0": 1,
1006
- "r1": 128,
1007
- "r2": 394,
1008
- "nnz": 1127219
1009
- },
1010
- "model.layers.12.self_attn.q_proj": {
1011
- "o1": 8,
1012
- "o2": 16,
1013
- "o3": 16,
1014
- "i1": 8,
1015
- "i2": 16,
1016
- "i3": 16,
1017
- "r0": 1,
1018
- "r1": 64,
1019
- "r2": 149,
1020
- "nnz": 209715
1021
- },
1022
- "model.layers.12.self_attn.k_proj": {
1023
- "o1": 4,
1024
- "o2": 8,
1025
- "o3": 8,
1026
- "i1": 8,
1027
- "i2": 16,
1028
- "i3": 16,
1029
- "r0": 1,
1030
- "r1": 32,
1031
- "r2": 73,
1032
- "nnz": 26214
1033
- },
1034
- "model.layers.12.self_attn.v_proj": {
1035
- "o1": 4,
1036
- "o2": 8,
1037
- "o3": 8,
1038
- "i1": 8,
1039
- "i2": 16,
1040
- "i3": 16,
1041
- "r0": 1,
1042
- "r1": 32,
1043
- "r2": 73,
1044
- "nnz": 26214
1045
- },
1046
- "model.layers.12.self_attn.o_proj": {
1047
- "o1": 8,
1048
- "o2": 16,
1049
- "o3": 16,
1050
- "i1": 8,
1051
- "i2": 16,
1052
- "i3": 16,
1053
- "r0": 1,
1054
- "r1": 64,
1055
- "r2": 149,
1056
- "nnz": 209715
1057
- },
1058
- "model.layers.12.mlp.gate_proj": {
1059
- "o1": 16,
1060
- "o2": 16,
1061
- "o3": 43,
1062
- "i1": 8,
1063
- "i2": 16,
1064
- "i3": 16,
1065
- "r0": 1,
1066
- "r1": 128,
1067
- "r2": 394,
1068
- "nnz": 1127219
1069
- },
1070
- "model.layers.12.mlp.up_proj": {
1071
- "o1": 16,
1072
- "o2": 16,
1073
- "o3": 43,
1074
- "i1": 8,
1075
- "i2": 16,
1076
- "i3": 16,
1077
- "r0": 1,
1078
- "r1": 128,
1079
- "r2": 394,
1080
- "nnz": 1127219
1081
- },
1082
- "model.layers.12.mlp.down_proj": {
1083
- "o1": 8,
1084
- "o2": 16,
1085
- "o3": 16,
1086
- "i1": 16,
1087
- "i2": 16,
1088
- "i3": 43,
1089
- "r0": 1,
1090
- "r1": 128,
1091
- "r2": 394,
1092
- "nnz": 1127219
1093
- },
1094
- "model.layers.13.self_attn.q_proj": {
1095
- "o1": 8,
1096
- "o2": 16,
1097
- "o3": 16,
1098
- "i1": 8,
1099
- "i2": 16,
1100
- "i3": 16,
1101
- "r0": 1,
1102
- "r1": 64,
1103
- "r2": 149,
1104
- "nnz": 209715
1105
- },
1106
- "model.layers.13.self_attn.k_proj": {
1107
- "o1": 4,
1108
- "o2": 8,
1109
- "o3": 8,
1110
- "i1": 8,
1111
- "i2": 16,
1112
- "i3": 16,
1113
- "r0": 1,
1114
- "r1": 32,
1115
- "r2": 73,
1116
- "nnz": 26214
1117
- },
1118
- "model.layers.13.self_attn.v_proj": {
1119
- "o1": 4,
1120
- "o2": 8,
1121
- "o3": 8,
1122
- "i1": 8,
1123
- "i2": 16,
1124
- "i3": 16,
1125
- "r0": 1,
1126
- "r1": 32,
1127
- "r2": 73,
1128
- "nnz": 26214
1129
- },
1130
- "model.layers.13.self_attn.o_proj": {
1131
- "o1": 8,
1132
- "o2": 16,
1133
- "o3": 16,
1134
- "i1": 8,
1135
- "i2": 16,
1136
- "i3": 16,
1137
- "r0": 1,
1138
- "r1": 64,
1139
- "r2": 149,
1140
- "nnz": 209715
1141
- },
1142
- "model.layers.13.mlp.gate_proj": {
1143
- "o1": 16,
1144
- "o2": 16,
1145
- "o3": 43,
1146
- "i1": 8,
1147
- "i2": 16,
1148
- "i3": 16,
1149
- "r0": 1,
1150
- "r1": 128,
1151
- "r2": 394,
1152
- "nnz": 1127219
1153
- },
1154
- "model.layers.13.mlp.up_proj": {
1155
- "o1": 16,
1156
- "o2": 16,
1157
- "o3": 43,
1158
- "i1": 8,
1159
- "i2": 16,
1160
- "i3": 16,
1161
- "r0": 1,
1162
- "r1": 128,
1163
- "r2": 394,
1164
- "nnz": 1127219
1165
- },
1166
- "model.layers.13.mlp.down_proj": {
1167
- "o1": 8,
1168
- "o2": 16,
1169
- "o3": 16,
1170
- "i1": 16,
1171
- "i2": 16,
1172
- "i3": 43,
1173
- "r0": 1,
1174
- "r1": 128,
1175
- "r2": 394,
1176
- "nnz": 1127219
1177
- },
1178
- "model.layers.14.self_attn.q_proj": {
1179
- "o1": 8,
1180
- "o2": 16,
1181
- "o3": 16,
1182
- "i1": 8,
1183
- "i2": 16,
1184
- "i3": 16,
1185
- "r0": 1,
1186
- "r1": 64,
1187
- "r2": 149,
1188
- "nnz": 209715
1189
- },
1190
- "model.layers.14.self_attn.k_proj": {
1191
- "o1": 4,
1192
- "o2": 8,
1193
- "o3": 8,
1194
- "i1": 8,
1195
- "i2": 16,
1196
- "i3": 16,
1197
- "r0": 1,
1198
- "r1": 32,
1199
- "r2": 73,
1200
- "nnz": 26214
1201
- },
1202
- "model.layers.14.self_attn.v_proj": {
1203
- "o1": 4,
1204
- "o2": 8,
1205
- "o3": 8,
1206
- "i1": 8,
1207
- "i2": 16,
1208
- "i3": 16,
1209
- "r0": 1,
1210
- "r1": 32,
1211
- "r2": 73,
1212
- "nnz": 26214
1213
- },
1214
- "model.layers.14.self_attn.o_proj": {
1215
- "o1": 8,
1216
- "o2": 16,
1217
- "o3": 16,
1218
- "i1": 8,
1219
- "i2": 16,
1220
- "i3": 16,
1221
- "r0": 1,
1222
- "r1": 64,
1223
- "r2": 149,
1224
- "nnz": 209715
1225
- },
1226
- "model.layers.14.mlp.gate_proj": {
1227
- "o1": 16,
1228
- "o2": 16,
1229
- "o3": 43,
1230
- "i1": 8,
1231
- "i2": 16,
1232
- "i3": 16,
1233
- "r0": 1,
1234
- "r1": 128,
1235
- "r2": 394,
1236
- "nnz": 1127219
1237
- },
1238
- "model.layers.14.mlp.up_proj": {
1239
- "o1": 16,
1240
- "o2": 16,
1241
- "o3": 43,
1242
- "i1": 8,
1243
- "i2": 16,
1244
- "i3": 16,
1245
- "r0": 1,
1246
- "r1": 128,
1247
- "r2": 394,
1248
- "nnz": 1127219
1249
- },
1250
- "model.layers.14.mlp.down_proj": {
1251
- "o1": 8,
1252
- "o2": 16,
1253
- "o3": 16,
1254
- "i1": 16,
1255
- "i2": 16,
1256
- "i3": 43,
1257
- "r0": 1,
1258
- "r1": 128,
1259
- "r2": 394,
1260
- "nnz": 1127219
1261
- },
1262
- "model.layers.15.self_attn.q_proj": {
1263
- "o1": 8,
1264
- "o2": 16,
1265
- "o3": 16,
1266
- "i1": 8,
1267
- "i2": 16,
1268
- "i3": 16,
1269
- "r0": 1,
1270
- "r1": 64,
1271
- "r2": 149,
1272
- "nnz": 209715
1273
- },
1274
- "model.layers.15.self_attn.k_proj": {
1275
- "o1": 4,
1276
- "o2": 8,
1277
- "o3": 8,
1278
- "i1": 8,
1279
- "i2": 16,
1280
- "i3": 16,
1281
- "r0": 1,
1282
- "r1": 32,
1283
- "r2": 73,
1284
- "nnz": 26214
1285
- },
1286
- "model.layers.15.self_attn.v_proj": {
1287
- "o1": 4,
1288
- "o2": 8,
1289
- "o3": 8,
1290
- "i1": 8,
1291
- "i2": 16,
1292
- "i3": 16,
1293
- "r0": 1,
1294
- "r1": 32,
1295
- "r2": 73,
1296
- "nnz": 26214
1297
- },
1298
- "model.layers.15.self_attn.o_proj": {
1299
- "o1": 8,
1300
- "o2": 16,
1301
- "o3": 16,
1302
- "i1": 8,
1303
- "i2": 16,
1304
- "i3": 16,
1305
- "r0": 1,
1306
- "r1": 64,
1307
- "r2": 149,
1308
- "nnz": 209715
1309
- },
1310
- "model.layers.15.mlp.gate_proj": {
1311
- "o1": 16,
1312
- "o2": 16,
1313
- "o3": 43,
1314
- "i1": 8,
1315
- "i2": 16,
1316
- "i3": 16,
1317
- "r0": 1,
1318
- "r1": 128,
1319
- "r2": 394,
1320
- "nnz": 1127219
1321
- },
1322
- "model.layers.15.mlp.up_proj": {
1323
- "o1": 16,
1324
- "o2": 16,
1325
- "o3": 43,
1326
- "i1": 8,
1327
- "i2": 16,
1328
- "i3": 16,
1329
- "r0": 1,
1330
- "r1": 128,
1331
- "r2": 394,
1332
- "nnz": 1127219
1333
- },
1334
- "model.layers.15.mlp.down_proj": {
1335
- "o1": 8,
1336
- "o2": 16,
1337
- "o3": 16,
1338
- "i1": 16,
1339
- "i2": 16,
1340
- "i3": 43,
1341
- "r0": 1,
1342
- "r1": 128,
1343
- "r2": 394,
1344
- "nnz": 1127219
1345
- },
1346
- "model.layers.16.self_attn.q_proj": {
1347
- "o1": 8,
1348
- "o2": 16,
1349
- "o3": 16,
1350
- "i1": 8,
1351
- "i2": 16,
1352
- "i3": 16,
1353
- "r0": 1,
1354
- "r1": 64,
1355
- "r2": 149,
1356
- "nnz": 209715
1357
- },
1358
- "model.layers.16.self_attn.k_proj": {
1359
- "o1": 4,
1360
- "o2": 8,
1361
- "o3": 8,
1362
- "i1": 8,
1363
- "i2": 16,
1364
- "i3": 16,
1365
- "r0": 1,
1366
- "r1": 32,
1367
- "r2": 73,
1368
- "nnz": 26214
1369
- },
1370
- "model.layers.16.self_attn.v_proj": {
1371
- "o1": 4,
1372
- "o2": 8,
1373
- "o3": 8,
1374
- "i1": 8,
1375
- "i2": 16,
1376
- "i3": 16,
1377
- "r0": 1,
1378
- "r1": 32,
1379
- "r2": 73,
1380
- "nnz": 26214
1381
- },
1382
- "model.layers.16.self_attn.o_proj": {
1383
- "o1": 8,
1384
- "o2": 16,
1385
- "o3": 16,
1386
- "i1": 8,
1387
- "i2": 16,
1388
- "i3": 16,
1389
- "r0": 1,
1390
- "r1": 64,
1391
- "r2": 149,
1392
- "nnz": 209715
1393
- },
1394
- "model.layers.16.mlp.gate_proj": {
1395
- "o1": 16,
1396
- "o2": 16,
1397
- "o3": 43,
1398
- "i1": 8,
1399
- "i2": 16,
1400
- "i3": 16,
1401
- "r0": 1,
1402
- "r1": 128,
1403
- "r2": 394,
1404
- "nnz": 1127219
1405
- },
1406
- "model.layers.16.mlp.up_proj": {
1407
- "o1": 16,
1408
- "o2": 16,
1409
- "o3": 43,
1410
- "i1": 8,
1411
- "i2": 16,
1412
- "i3": 16,
1413
- "r0": 1,
1414
- "r1": 128,
1415
- "r2": 394,
1416
- "nnz": 1127219
1417
- },
1418
- "model.layers.16.mlp.down_proj": {
1419
- "o1": 8,
1420
- "o2": 16,
1421
- "o3": 16,
1422
- "i1": 16,
1423
- "i2": 16,
1424
- "i3": 43,
1425
- "r0": 1,
1426
- "r1": 128,
1427
- "r2": 394,
1428
- "nnz": 1127219
1429
- },
1430
- "model.layers.17.self_attn.q_proj": {
1431
- "o1": 8,
1432
- "o2": 16,
1433
- "o3": 16,
1434
- "i1": 8,
1435
- "i2": 16,
1436
- "i3": 16,
1437
- "r0": 1,
1438
- "r1": 64,
1439
- "r2": 149,
1440
- "nnz": 209715
1441
- },
1442
- "model.layers.17.self_attn.k_proj": {
1443
- "o1": 4,
1444
- "o2": 8,
1445
- "o3": 8,
1446
- "i1": 8,
1447
- "i2": 16,
1448
- "i3": 16,
1449
- "r0": 1,
1450
- "r1": 32,
1451
- "r2": 73,
1452
- "nnz": 26214
1453
- },
1454
- "model.layers.17.self_attn.v_proj": {
1455
- "o1": 4,
1456
- "o2": 8,
1457
- "o3": 8,
1458
- "i1": 8,
1459
- "i2": 16,
1460
- "i3": 16,
1461
- "r0": 1,
1462
- "r1": 32,
1463
- "r2": 73,
1464
- "nnz": 26214
1465
- },
1466
- "model.layers.17.self_attn.o_proj": {
1467
- "o1": 8,
1468
- "o2": 16,
1469
- "o3": 16,
1470
- "i1": 8,
1471
- "i2": 16,
1472
- "i3": 16,
1473
- "r0": 1,
1474
- "r1": 64,
1475
- "r2": 149,
1476
- "nnz": 209715
1477
- },
1478
- "model.layers.17.mlp.gate_proj": {
1479
- "o1": 16,
1480
- "o2": 16,
1481
- "o3": 43,
1482
- "i1": 8,
1483
- "i2": 16,
1484
- "i3": 16,
1485
- "r0": 1,
1486
- "r1": 128,
1487
- "r2": 394,
1488
- "nnz": 1127219
1489
- },
1490
- "model.layers.17.mlp.up_proj": {
1491
- "o1": 16,
1492
- "o2": 16,
1493
- "o3": 43,
1494
- "i1": 8,
1495
- "i2": 16,
1496
- "i3": 16,
1497
- "r0": 1,
1498
- "r1": 128,
1499
- "r2": 394,
1500
- "nnz": 1127219
1501
- },
1502
- "model.layers.17.mlp.down_proj": {
1503
- "o1": 8,
1504
- "o2": 16,
1505
- "o3": 16,
1506
- "i1": 16,
1507
- "i2": 16,
1508
- "i3": 43,
1509
- "r0": 1,
1510
- "r1": 128,
1511
- "r2": 394,
1512
- "nnz": 1127219
1513
- },
1514
- "model.layers.18.self_attn.q_proj": {
1515
- "o1": 8,
1516
- "o2": 16,
1517
- "o3": 16,
1518
- "i1": 8,
1519
- "i2": 16,
1520
- "i3": 16,
1521
- "r0": 1,
1522
- "r1": 64,
1523
- "r2": 149,
1524
- "nnz": 209715
1525
- },
1526
- "model.layers.18.self_attn.k_proj": {
1527
- "o1": 4,
1528
- "o2": 8,
1529
- "o3": 8,
1530
- "i1": 8,
1531
- "i2": 16,
1532
- "i3": 16,
1533
- "r0": 1,
1534
- "r1": 32,
1535
- "r2": 73,
1536
- "nnz": 26214
1537
- },
1538
- "model.layers.18.self_attn.v_proj": {
1539
- "o1": 4,
1540
- "o2": 8,
1541
- "o3": 8,
1542
- "i1": 8,
1543
- "i2": 16,
1544
- "i3": 16,
1545
- "r0": 1,
1546
- "r1": 32,
1547
- "r2": 73,
1548
- "nnz": 26214
1549
- },
1550
- "model.layers.18.self_attn.o_proj": {
1551
- "o1": 8,
1552
- "o2": 16,
1553
- "o3": 16,
1554
- "i1": 8,
1555
- "i2": 16,
1556
- "i3": 16,
1557
- "r0": 1,
1558
- "r1": 64,
1559
- "r2": 149,
1560
- "nnz": 209715
1561
- },
1562
- "model.layers.18.mlp.gate_proj": {
1563
- "o1": 16,
1564
- "o2": 16,
1565
- "o3": 43,
1566
- "i1": 8,
1567
- "i2": 16,
1568
- "i3": 16,
1569
- "r0": 1,
1570
- "r1": 128,
1571
- "r2": 394,
1572
- "nnz": 1127219
1573
- },
1574
- "model.layers.18.mlp.up_proj": {
1575
- "o1": 16,
1576
- "o2": 16,
1577
- "o3": 43,
1578
- "i1": 8,
1579
- "i2": 16,
1580
- "i3": 16,
1581
- "r0": 1,
1582
- "r1": 128,
1583
- "r2": 394,
1584
- "nnz": 1127219
1585
- },
1586
- "model.layers.18.mlp.down_proj": {
1587
- "o1": 8,
1588
- "o2": 16,
1589
- "o3": 16,
1590
- "i1": 16,
1591
- "i2": 16,
1592
- "i3": 43,
1593
- "r0": 1,
1594
- "r1": 128,
1595
- "r2": 394,
1596
- "nnz": 1127219
1597
- },
1598
- "model.layers.19.self_attn.q_proj": {
1599
- "o1": 8,
1600
- "o2": 16,
1601
- "o3": 16,
1602
- "i1": 8,
1603
- "i2": 16,
1604
- "i3": 16,
1605
- "r0": 1,
1606
- "r1": 64,
1607
- "r2": 149,
1608
- "nnz": 209715
1609
- },
1610
- "model.layers.19.self_attn.k_proj": {
1611
- "o1": 4,
1612
- "o2": 8,
1613
- "o3": 8,
1614
- "i1": 8,
1615
- "i2": 16,
1616
- "i3": 16,
1617
- "r0": 1,
1618
- "r1": 32,
1619
- "r2": 73,
1620
- "nnz": 26214
1621
- },
1622
- "model.layers.19.self_attn.v_proj": {
1623
- "o1": 4,
1624
- "o2": 8,
1625
- "o3": 8,
1626
- "i1": 8,
1627
- "i2": 16,
1628
- "i3": 16,
1629
- "r0": 1,
1630
- "r1": 32,
1631
- "r2": 73,
1632
- "nnz": 26214
1633
- },
1634
- "model.layers.19.self_attn.o_proj": {
1635
- "o1": 8,
1636
- "o2": 16,
1637
- "o3": 16,
1638
- "i1": 8,
1639
- "i2": 16,
1640
- "i3": 16,
1641
- "r0": 1,
1642
- "r1": 64,
1643
- "r2": 149,
1644
- "nnz": 209715
1645
- },
1646
- "model.layers.19.mlp.gate_proj": {
1647
- "o1": 16,
1648
- "o2": 16,
1649
- "o3": 43,
1650
- "i1": 8,
1651
- "i2": 16,
1652
- "i3": 16,
1653
- "r0": 1,
1654
- "r1": 128,
1655
- "r2": 394,
1656
- "nnz": 1127219
1657
- },
1658
- "model.layers.19.mlp.up_proj": {
1659
- "o1": 16,
1660
- "o2": 16,
1661
- "o3": 43,
1662
- "i1": 8,
1663
- "i2": 16,
1664
- "i3": 16,
1665
- "r0": 1,
1666
- "r1": 128,
1667
- "r2": 394,
1668
- "nnz": 1127219
1669
- },
1670
- "model.layers.19.mlp.down_proj": {
1671
- "o1": 8,
1672
- "o2": 16,
1673
- "o3": 16,
1674
- "i1": 16,
1675
- "i2": 16,
1676
- "i3": 43,
1677
- "r0": 1,
1678
- "r1": 128,
1679
- "r2": 394,
1680
- "nnz": 1127219
1681
- },
1682
- "model.layers.20.self_attn.q_proj": {
1683
- "o1": 8,
1684
- "o2": 16,
1685
- "o3": 16,
1686
- "i1": 8,
1687
- "i2": 16,
1688
- "i3": 16,
1689
- "r0": 1,
1690
- "r1": 64,
1691
- "r2": 149,
1692
- "nnz": 209715
1693
- },
1694
- "model.layers.20.self_attn.k_proj": {
1695
- "o1": 4,
1696
- "o2": 8,
1697
- "o3": 8,
1698
- "i1": 8,
1699
- "i2": 16,
1700
- "i3": 16,
1701
- "r0": 1,
1702
- "r1": 32,
1703
- "r2": 73,
1704
- "nnz": 26214
1705
- },
1706
- "model.layers.20.self_attn.v_proj": {
1707
- "o1": 4,
1708
- "o2": 8,
1709
- "o3": 8,
1710
- "i1": 8,
1711
- "i2": 16,
1712
- "i3": 16,
1713
- "r0": 1,
1714
- "r1": 32,
1715
- "r2": 73,
1716
- "nnz": 26214
1717
- },
1718
- "model.layers.20.self_attn.o_proj": {
1719
- "o1": 8,
1720
- "o2": 16,
1721
- "o3": 16,
1722
- "i1": 8,
1723
- "i2": 16,
1724
- "i3": 16,
1725
- "r0": 1,
1726
- "r1": 64,
1727
- "r2": 149,
1728
- "nnz": 209715
1729
- },
1730
- "model.layers.20.mlp.gate_proj": {
1731
- "o1": 16,
1732
- "o2": 16,
1733
- "o3": 43,
1734
- "i1": 8,
1735
- "i2": 16,
1736
- "i3": 16,
1737
- "r0": 1,
1738
- "r1": 128,
1739
- "r2": 394,
1740
- "nnz": 1127219
1741
- },
1742
- "model.layers.20.mlp.up_proj": {
1743
- "o1": 16,
1744
- "o2": 16,
1745
- "o3": 43,
1746
- "i1": 8,
1747
- "i2": 16,
1748
- "i3": 16,
1749
- "r0": 1,
1750
- "r1": 128,
1751
- "r2": 394,
1752
- "nnz": 1127219
1753
- },
1754
- "model.layers.20.mlp.down_proj": {
1755
- "o1": 8,
1756
- "o2": 16,
1757
- "o3": 16,
1758
- "i1": 16,
1759
- "i2": 16,
1760
- "i3": 43,
1761
- "r0": 1,
1762
- "r1": 128,
1763
- "r2": 394,
1764
- "nnz": 1127219
1765
- },
1766
- "model.layers.21.self_attn.q_proj": {
1767
- "o1": 8,
1768
- "o2": 16,
1769
- "o3": 16,
1770
- "i1": 8,
1771
- "i2": 16,
1772
- "i3": 16,
1773
- "r0": 1,
1774
- "r1": 64,
1775
- "r2": 149,
1776
- "nnz": 209715
1777
- },
1778
- "model.layers.21.self_attn.k_proj": {
1779
- "o1": 4,
1780
- "o2": 8,
1781
- "o3": 8,
1782
- "i1": 8,
1783
- "i2": 16,
1784
- "i3": 16,
1785
- "r0": 1,
1786
- "r1": 32,
1787
- "r2": 73,
1788
- "nnz": 26214
1789
- },
1790
- "model.layers.21.self_attn.v_proj": {
1791
- "o1": 4,
1792
- "o2": 8,
1793
- "o3": 8,
1794
- "i1": 8,
1795
- "i2": 16,
1796
- "i3": 16,
1797
- "r0": 1,
1798
- "r1": 32,
1799
- "r2": 73,
1800
- "nnz": 26214
1801
- },
1802
- "model.layers.21.self_attn.o_proj": {
1803
- "o1": 8,
1804
- "o2": 16,
1805
- "o3": 16,
1806
- "i1": 8,
1807
- "i2": 16,
1808
- "i3": 16,
1809
- "r0": 1,
1810
- "r1": 64,
1811
- "r2": 149,
1812
- "nnz": 209715
1813
- },
1814
- "model.layers.21.mlp.gate_proj": {
1815
- "o1": 16,
1816
- "o2": 16,
1817
- "o3": 43,
1818
- "i1": 8,
1819
- "i2": 16,
1820
- "i3": 16,
1821
- "r0": 1,
1822
- "r1": 128,
1823
- "r2": 394,
1824
- "nnz": 1127219
1825
- },
1826
- "model.layers.21.mlp.up_proj": {
1827
- "o1": 16,
1828
- "o2": 16,
1829
- "o3": 43,
1830
- "i1": 8,
1831
- "i2": 16,
1832
- "i3": 16,
1833
- "r0": 1,
1834
- "r1": 128,
1835
- "r2": 394,
1836
- "nnz": 1127219
1837
- },
1838
- "model.layers.21.mlp.down_proj": {
1839
- "o1": 8,
1840
- "o2": 16,
1841
- "o3": 16,
1842
- "i1": 16,
1843
- "i2": 16,
1844
- "i3": 43,
1845
- "r0": 1,
1846
- "r1": 128,
1847
- "r2": 394,
1848
- "nnz": 1127219
1849
- },
1850
- "model.layers.22.self_attn.q_proj": {
1851
- "o1": 8,
1852
- "o2": 16,
1853
- "o3": 16,
1854
- "i1": 8,
1855
- "i2": 16,
1856
- "i3": 16,
1857
- "r0": 1,
1858
- "r1": 64,
1859
- "r2": 149,
1860
- "nnz": 209715
1861
- },
1862
- "model.layers.22.self_attn.k_proj": {
1863
- "o1": 4,
1864
- "o2": 8,
1865
- "o3": 8,
1866
- "i1": 8,
1867
- "i2": 16,
1868
- "i3": 16,
1869
- "r0": 1,
1870
- "r1": 32,
1871
- "r2": 73,
1872
- "nnz": 26214
1873
- },
1874
- "model.layers.22.self_attn.v_proj": {
1875
- "o1": 4,
1876
- "o2": 8,
1877
- "o3": 8,
1878
- "i1": 8,
1879
- "i2": 16,
1880
- "i3": 16,
1881
- "r0": 1,
1882
- "r1": 32,
1883
- "r2": 73,
1884
- "nnz": 26214
1885
- },
1886
- "model.layers.22.self_attn.o_proj": {
1887
- "o1": 8,
1888
- "o2": 16,
1889
- "o3": 16,
1890
- "i1": 8,
1891
- "i2": 16,
1892
- "i3": 16,
1893
- "r0": 1,
1894
- "r1": 64,
1895
- "r2": 149,
1896
- "nnz": 209715
1897
- },
1898
- "model.layers.22.mlp.gate_proj": {
1899
- "o1": 16,
1900
- "o2": 16,
1901
- "o3": 43,
1902
- "i1": 8,
1903
- "i2": 16,
1904
- "i3": 16,
1905
- "r0": 1,
1906
- "r1": 128,
1907
- "r2": 394,
1908
- "nnz": 1127219
1909
- },
1910
- "model.layers.22.mlp.up_proj": {
1911
- "o1": 16,
1912
- "o2": 16,
1913
- "o3": 43,
1914
- "i1": 8,
1915
- "i2": 16,
1916
- "i3": 16,
1917
- "r0": 1,
1918
- "r1": 128,
1919
- "r2": 394,
1920
- "nnz": 1127219
1921
- },
1922
- "model.layers.22.mlp.down_proj": {
1923
- "o1": 8,
1924
- "o2": 16,
1925
- "o3": 16,
1926
- "i1": 16,
1927
- "i2": 16,
1928
- "i3": 43,
1929
- "r0": 1,
1930
- "r1": 128,
1931
- "r2": 394,
1932
- "nnz": 1127219
1933
- },
1934
- "model.layers.23.self_attn.q_proj": {
1935
- "o1": 8,
1936
- "o2": 16,
1937
- "o3": 16,
1938
- "i1": 8,
1939
- "i2": 16,
1940
- "i3": 16,
1941
- "r0": 1,
1942
- "r1": 64,
1943
- "r2": 149,
1944
- "nnz": 209715
1945
- },
1946
- "model.layers.23.self_attn.k_proj": {
1947
- "o1": 4,
1948
- "o2": 8,
1949
- "o3": 8,
1950
- "i1": 8,
1951
- "i2": 16,
1952
- "i3": 16,
1953
- "r0": 1,
1954
- "r1": 32,
1955
- "r2": 73,
1956
- "nnz": 26214
1957
- },
1958
- "model.layers.23.self_attn.v_proj": {
1959
- "o1": 4,
1960
- "o2": 8,
1961
- "o3": 8,
1962
- "i1": 8,
1963
- "i2": 16,
1964
- "i3": 16,
1965
- "r0": 1,
1966
- "r1": 32,
1967
- "r2": 73,
1968
- "nnz": 26214
1969
- },
1970
- "model.layers.23.self_attn.o_proj": {
1971
- "o1": 8,
1972
- "o2": 16,
1973
- "o3": 16,
1974
- "i1": 8,
1975
- "i2": 16,
1976
- "i3": 16,
1977
- "r0": 1,
1978
- "r1": 64,
1979
- "r2": 149,
1980
- "nnz": 209715
1981
- },
1982
- "model.layers.23.mlp.gate_proj": {
1983
- "o1": 16,
1984
- "o2": 16,
1985
- "o3": 43,
1986
- "i1": 8,
1987
- "i2": 16,
1988
- "i3": 16,
1989
- "r0": 1,
1990
- "r1": 128,
1991
- "r2": 394,
1992
- "nnz": 1127219
1993
- },
1994
- "model.layers.23.mlp.up_proj": {
1995
- "o1": 16,
1996
- "o2": 16,
1997
- "o3": 43,
1998
- "i1": 8,
1999
- "i2": 16,
2000
- "i3": 16,
2001
- "r0": 1,
2002
- "r1": 128,
2003
- "r2": 394,
2004
- "nnz": 1127219
2005
- },
2006
- "model.layers.23.mlp.down_proj": {
2007
- "o1": 8,
2008
- "o2": 16,
2009
- "o3": 16,
2010
- "i1": 16,
2011
- "i2": 16,
2012
- "i3": 43,
2013
- "r0": 1,
2014
- "r1": 128,
2015
- "r2": 394,
2016
- "nnz": 1127219
2017
- },
2018
- "model.layers.24.self_attn.q_proj": {
2019
- "o1": 8,
2020
- "o2": 16,
2021
- "o3": 16,
2022
- "i1": 8,
2023
- "i2": 16,
2024
- "i3": 16,
2025
- "r0": 1,
2026
- "r1": 64,
2027
- "r2": 149,
2028
- "nnz": 209715
2029
- },
2030
- "model.layers.24.self_attn.k_proj": {
2031
- "o1": 4,
2032
- "o2": 8,
2033
- "o3": 8,
2034
- "i1": 8,
2035
- "i2": 16,
2036
- "i3": 16,
2037
- "r0": 1,
2038
- "r1": 32,
2039
- "r2": 73,
2040
- "nnz": 26214
2041
- },
2042
- "model.layers.24.self_attn.v_proj": {
2043
- "o1": 4,
2044
- "o2": 8,
2045
- "o3": 8,
2046
- "i1": 8,
2047
- "i2": 16,
2048
- "i3": 16,
2049
- "r0": 1,
2050
- "r1": 32,
2051
- "r2": 73,
2052
- "nnz": 26214
2053
- },
2054
- "model.layers.24.self_attn.o_proj": {
2055
- "o1": 8,
2056
- "o2": 16,
2057
- "o3": 16,
2058
- "i1": 8,
2059
- "i2": 16,
2060
- "i3": 16,
2061
- "r0": 1,
2062
- "r1": 64,
2063
- "r2": 149,
2064
- "nnz": 209715
2065
- },
2066
- "model.layers.24.mlp.gate_proj": {
2067
- "o1": 16,
2068
- "o2": 16,
2069
- "o3": 43,
2070
- "i1": 8,
2071
- "i2": 16,
2072
- "i3": 16,
2073
- "r0": 1,
2074
- "r1": 128,
2075
- "r2": 394,
2076
- "nnz": 1127219
2077
- },
2078
- "model.layers.24.mlp.up_proj": {
2079
- "o1": 16,
2080
- "o2": 16,
2081
- "o3": 43,
2082
- "i1": 8,
2083
- "i2": 16,
2084
- "i3": 16,
2085
- "r0": 1,
2086
- "r1": 128,
2087
- "r2": 394,
2088
- "nnz": 1127219
2089
- },
2090
- "model.layers.24.mlp.down_proj": {
2091
- "o1": 8,
2092
- "o2": 16,
2093
- "o3": 16,
2094
- "i1": 16,
2095
- "i2": 16,
2096
- "i3": 43,
2097
- "r0": 1,
2098
- "r1": 128,
2099
- "r2": 394,
2100
- "nnz": 1127219
2101
- },
2102
- "model.layers.25.self_attn.q_proj": {
2103
- "o1": 8,
2104
- "o2": 16,
2105
- "o3": 16,
2106
- "i1": 8,
2107
- "i2": 16,
2108
- "i3": 16,
2109
- "r0": 1,
2110
- "r1": 64,
2111
- "r2": 149,
2112
- "nnz": 209715
2113
- },
2114
- "model.layers.25.self_attn.k_proj": {
2115
- "o1": 4,
2116
- "o2": 8,
2117
- "o3": 8,
2118
- "i1": 8,
2119
- "i2": 16,
2120
- "i3": 16,
2121
- "r0": 1,
2122
- "r1": 32,
2123
- "r2": 73,
2124
- "nnz": 26214
2125
- },
2126
- "model.layers.25.self_attn.v_proj": {
2127
- "o1": 4,
2128
- "o2": 8,
2129
- "o3": 8,
2130
- "i1": 8,
2131
- "i2": 16,
2132
- "i3": 16,
2133
- "r0": 1,
2134
- "r1": 32,
2135
- "r2": 73,
2136
- "nnz": 26214
2137
- },
2138
- "model.layers.25.self_attn.o_proj": {
2139
- "o1": 8,
2140
- "o2": 16,
2141
- "o3": 16,
2142
- "i1": 8,
2143
- "i2": 16,
2144
- "i3": 16,
2145
- "r0": 1,
2146
- "r1": 64,
2147
- "r2": 149,
2148
- "nnz": 209715
2149
- },
2150
- "model.layers.25.mlp.gate_proj": {
2151
- "o1": 16,
2152
- "o2": 16,
2153
- "o3": 43,
2154
- "i1": 8,
2155
- "i2": 16,
2156
- "i3": 16,
2157
- "r0": 1,
2158
- "r1": 128,
2159
- "r2": 394,
2160
- "nnz": 1127219
2161
- },
2162
- "model.layers.25.mlp.up_proj": {
2163
- "o1": 16,
2164
- "o2": 16,
2165
- "o3": 43,
2166
- "i1": 8,
2167
- "i2": 16,
2168
- "i3": 16,
2169
- "r0": 1,
2170
- "r1": 128,
2171
- "r2": 394,
2172
- "nnz": 1127219
2173
- },
2174
- "model.layers.25.mlp.down_proj": {
2175
- "o1": 8,
2176
- "o2": 16,
2177
- "o3": 16,
2178
- "i1": 16,
2179
- "i2": 16,
2180
- "i3": 43,
2181
- "r0": 1,
2182
- "r1": 128,
2183
- "r2": 394,
2184
- "nnz": 1127219
2185
- },
2186
- "model.layers.26.self_attn.q_proj": {
2187
- "o1": 8,
2188
- "o2": 16,
2189
- "o3": 16,
2190
- "i1": 8,
2191
- "i2": 16,
2192
- "i3": 16,
2193
- "r0": 1,
2194
- "r1": 64,
2195
- "r2": 149,
2196
- "nnz": 209715
2197
- },
2198
- "model.layers.26.self_attn.k_proj": {
2199
- "o1": 4,
2200
- "o2": 8,
2201
- "o3": 8,
2202
- "i1": 8,
2203
- "i2": 16,
2204
- "i3": 16,
2205
- "r0": 1,
2206
- "r1": 32,
2207
- "r2": 73,
2208
- "nnz": 26214
2209
- },
2210
- "model.layers.26.self_attn.v_proj": {
2211
- "o1": 4,
2212
- "o2": 8,
2213
- "o3": 8,
2214
- "i1": 8,
2215
- "i2": 16,
2216
- "i3": 16,
2217
- "r0": 1,
2218
- "r1": 32,
2219
- "r2": 73,
2220
- "nnz": 26214
2221
- },
2222
- "model.layers.26.self_attn.o_proj": {
2223
- "o1": 8,
2224
- "o2": 16,
2225
- "o3": 16,
2226
- "i1": 8,
2227
- "i2": 16,
2228
- "i3": 16,
2229
- "r0": 1,
2230
- "r1": 64,
2231
- "r2": 149,
2232
- "nnz": 209715
2233
- },
2234
- "model.layers.26.mlp.gate_proj": {
2235
- "o1": 16,
2236
- "o2": 16,
2237
- "o3": 43,
2238
- "i1": 8,
2239
- "i2": 16,
2240
- "i3": 16,
2241
- "r0": 1,
2242
- "r1": 128,
2243
- "r2": 394,
2244
- "nnz": 1127219
2245
- },
2246
- "model.layers.26.mlp.up_proj": {
2247
- "o1": 16,
2248
- "o2": 16,
2249
- "o3": 43,
2250
- "i1": 8,
2251
- "i2": 16,
2252
- "i3": 16,
2253
- "r0": 1,
2254
- "r1": 128,
2255
- "r2": 394,
2256
- "nnz": 1127219
2257
- },
2258
- "model.layers.26.mlp.down_proj": {
2259
- "o1": 8,
2260
- "o2": 16,
2261
- "o3": 16,
2262
- "i1": 16,
2263
- "i2": 16,
2264
- "i3": 43,
2265
- "r0": 1,
2266
- "r1": 128,
2267
- "r2": 394,
2268
- "nnz": 1127219
2269
- },
2270
- "model.layers.27.self_attn.q_proj": {
2271
- "o1": 8,
2272
- "o2": 16,
2273
- "o3": 16,
2274
- "i1": 8,
2275
- "i2": 16,
2276
- "i3": 16,
2277
- "r0": 1,
2278
- "r1": 64,
2279
- "r2": 149,
2280
- "nnz": 209715
2281
- },
2282
- "model.layers.27.self_attn.k_proj": {
2283
- "o1": 4,
2284
- "o2": 8,
2285
- "o3": 8,
2286
- "i1": 8,
2287
- "i2": 16,
2288
- "i3": 16,
2289
- "r0": 1,
2290
- "r1": 32,
2291
- "r2": 73,
2292
- "nnz": 26214
2293
- },
2294
- "model.layers.27.self_attn.v_proj": {
2295
- "o1": 4,
2296
- "o2": 8,
2297
- "o3": 8,
2298
- "i1": 8,
2299
- "i2": 16,
2300
- "i3": 16,
2301
- "r0": 1,
2302
- "r1": 32,
2303
- "r2": 73,
2304
- "nnz": 26214
2305
- },
2306
- "model.layers.27.self_attn.o_proj": {
2307
- "o1": 8,
2308
- "o2": 16,
2309
- "o3": 16,
2310
- "i1": 8,
2311
- "i2": 16,
2312
- "i3": 16,
2313
- "r0": 1,
2314
- "r1": 64,
2315
- "r2": 149,
2316
- "nnz": 209715
2317
- },
2318
- "model.layers.27.mlp.gate_proj": {
2319
- "o1": 16,
2320
- "o2": 16,
2321
- "o3": 43,
2322
- "i1": 8,
2323
- "i2": 16,
2324
- "i3": 16,
2325
- "r0": 1,
2326
- "r1": 128,
2327
- "r2": 394,
2328
- "nnz": 1127219
2329
- },
2330
- "model.layers.27.mlp.up_proj": {
2331
- "o1": 16,
2332
- "o2": 16,
2333
- "o3": 43,
2334
- "i1": 8,
2335
- "i2": 16,
2336
- "i3": 16,
2337
- "r0": 1,
2338
- "r1": 128,
2339
- "r2": 394,
2340
- "nnz": 1127219
2341
- },
2342
- "model.layers.27.mlp.down_proj": {
2343
- "o1": 8,
2344
- "o2": 16,
2345
- "o3": 16,
2346
- "i1": 16,
2347
- "i2": 16,
2348
- "i3": 43,
2349
- "r0": 1,
2350
- "r1": 128,
2351
- "r2": 394,
2352
- "nnz": 1127219
2353
- },
2354
- "model.layers.28.self_attn.q_proj": {
2355
- "o1": 8,
2356
- "o2": 16,
2357
- "o3": 16,
2358
- "i1": 8,
2359
- "i2": 16,
2360
- "i3": 16,
2361
- "r0": 1,
2362
- "r1": 64,
2363
- "r2": 149,
2364
- "nnz": 209715
2365
- },
2366
- "model.layers.28.self_attn.k_proj": {
2367
- "o1": 4,
2368
- "o2": 8,
2369
- "o3": 8,
2370
- "i1": 8,
2371
- "i2": 16,
2372
- "i3": 16,
2373
- "r0": 1,
2374
- "r1": 32,
2375
- "r2": 73,
2376
- "nnz": 26214
2377
- },
2378
- "model.layers.28.self_attn.v_proj": {
2379
- "o1": 4,
2380
- "o2": 8,
2381
- "o3": 8,
2382
- "i1": 8,
2383
- "i2": 16,
2384
- "i3": 16,
2385
- "r0": 1,
2386
- "r1": 32,
2387
- "r2": 73,
2388
- "nnz": 26214
2389
- },
2390
- "model.layers.28.self_attn.o_proj": {
2391
- "o1": 8,
2392
- "o2": 16,
2393
- "o3": 16,
2394
- "i1": 8,
2395
- "i2": 16,
2396
- "i3": 16,
2397
- "r0": 1,
2398
- "r1": 64,
2399
- "r2": 149,
2400
- "nnz": 209715
2401
- },
2402
- "model.layers.28.mlp.gate_proj": {
2403
- "o1": 16,
2404
- "o2": 16,
2405
- "o3": 43,
2406
- "i1": 8,
2407
- "i2": 16,
2408
- "i3": 16,
2409
- "r0": 1,
2410
- "r1": 128,
2411
- "r2": 394,
2412
- "nnz": 1127219
2413
- },
2414
- "model.layers.28.mlp.up_proj": {
2415
- "o1": 16,
2416
- "o2": 16,
2417
- "o3": 43,
2418
- "i1": 8,
2419
- "i2": 16,
2420
- "i3": 16,
2421
- "r0": 1,
2422
- "r1": 128,
2423
- "r2": 394,
2424
- "nnz": 1127219
2425
- },
2426
- "model.layers.28.mlp.down_proj": {
2427
- "o1": 8,
2428
- "o2": 16,
2429
- "o3": 16,
2430
- "i1": 16,
2431
- "i2": 16,
2432
- "i3": 43,
2433
- "r0": 1,
2434
- "r1": 128,
2435
- "r2": 394,
2436
- "nnz": 1127219
2437
- },
2438
- "model.layers.29.self_attn.q_proj": {
2439
- "o1": 8,
2440
- "o2": 16,
2441
- "o3": 16,
2442
- "i1": 8,
2443
- "i2": 16,
2444
- "i3": 16,
2445
- "r0": 1,
2446
- "r1": 64,
2447
- "r2": 149,
2448
- "nnz": 209715
2449
- },
2450
- "model.layers.29.self_attn.k_proj": {
2451
- "o1": 4,
2452
- "o2": 8,
2453
- "o3": 8,
2454
- "i1": 8,
2455
- "i2": 16,
2456
- "i3": 16,
2457
- "r0": 1,
2458
- "r1": 32,
2459
- "r2": 73,
2460
- "nnz": 26214
2461
- },
2462
- "model.layers.29.self_attn.v_proj": {
2463
- "o1": 4,
2464
- "o2": 8,
2465
- "o3": 8,
2466
- "i1": 8,
2467
- "i2": 16,
2468
- "i3": 16,
2469
- "r0": 1,
2470
- "r1": 32,
2471
- "r2": 73,
2472
- "nnz": 26214
2473
- },
2474
- "model.layers.29.self_attn.o_proj": {
2475
- "o1": 8,
2476
- "o2": 16,
2477
- "o3": 16,
2478
- "i1": 8,
2479
- "i2": 16,
2480
- "i3": 16,
2481
- "r0": 1,
2482
- "r1": 64,
2483
- "r2": 149,
2484
- "nnz": 209715
2485
- },
2486
- "model.layers.29.mlp.gate_proj": {
2487
- "o1": 16,
2488
- "o2": 16,
2489
- "o3": 43,
2490
- "i1": 8,
2491
- "i2": 16,
2492
- "i3": 16,
2493
- "r0": 1,
2494
- "r1": 128,
2495
- "r2": 394,
2496
- "nnz": 1127219
2497
- },
2498
- "model.layers.29.mlp.up_proj": {
2499
- "o1": 16,
2500
- "o2": 16,
2501
- "o3": 43,
2502
- "i1": 8,
2503
- "i2": 16,
2504
- "i3": 16,
2505
- "r0": 1,
2506
- "r1": 128,
2507
- "r2": 394,
2508
- "nnz": 1127219
2509
- },
2510
- "model.layers.29.mlp.down_proj": {
2511
- "o1": 8,
2512
- "o2": 16,
2513
- "o3": 16,
2514
- "i1": 16,
2515
- "i2": 16,
2516
- "i3": 43,
2517
- "r0": 1,
2518
- "r1": 128,
2519
- "r2": 394,
2520
- "nnz": 1127219
2521
- },
2522
- "model.layers.30.self_attn.q_proj": {
2523
- "o1": 8,
2524
- "o2": 16,
2525
- "o3": 16,
2526
- "i1": 8,
2527
- "i2": 16,
2528
- "i3": 16,
2529
- "r0": 1,
2530
- "r1": 64,
2531
- "r2": 149,
2532
- "nnz": 209715
2533
- },
2534
- "model.layers.30.self_attn.k_proj": {
2535
- "o1": 4,
2536
- "o2": 8,
2537
- "o3": 8,
2538
- "i1": 8,
2539
- "i2": 16,
2540
- "i3": 16,
2541
- "r0": 1,
2542
- "r1": 32,
2543
- "r2": 73,
2544
- "nnz": 26214
2545
- },
2546
- "model.layers.30.self_attn.v_proj": {
2547
- "o1": 4,
2548
- "o2": 8,
2549
- "o3": 8,
2550
- "i1": 8,
2551
- "i2": 16,
2552
- "i3": 16,
2553
- "r0": 1,
2554
- "r1": 32,
2555
- "r2": 73,
2556
- "nnz": 26214
2557
- },
2558
- "model.layers.30.self_attn.o_proj": {
2559
- "o1": 8,
2560
- "o2": 16,
2561
- "o3": 16,
2562
- "i1": 8,
2563
- "i2": 16,
2564
- "i3": 16,
2565
- "r0": 1,
2566
- "r1": 64,
2567
- "r2": 149,
2568
- "nnz": 209715
2569
- },
2570
- "model.layers.30.mlp.gate_proj": {
2571
- "o1": 16,
2572
- "o2": 16,
2573
- "o3": 43,
2574
- "i1": 8,
2575
- "i2": 16,
2576
- "i3": 16,
2577
- "r0": 1,
2578
- "r1": 128,
2579
- "r2": 394,
2580
- "nnz": 1127219
2581
- },
2582
- "model.layers.30.mlp.up_proj": {
2583
- "o1": 16,
2584
- "o2": 16,
2585
- "o3": 43,
2586
- "i1": 8,
2587
- "i2": 16,
2588
- "i3": 16,
2589
- "r0": 1,
2590
- "r1": 128,
2591
- "r2": 394,
2592
- "nnz": 1127219
2593
- },
2594
- "model.layers.30.mlp.down_proj": {
2595
- "o1": 8,
2596
- "o2": 16,
2597
- "o3": 16,
2598
- "i1": 16,
2599
- "i2": 16,
2600
- "i3": 43,
2601
- "r0": 1,
2602
- "r1": 128,
2603
- "r2": 394,
2604
- "nnz": 1127219
2605
- },
2606
- "model.layers.31.self_attn.q_proj": {
2607
- "o1": 8,
2608
- "o2": 16,
2609
- "o3": 16,
2610
- "i1": 8,
2611
- "i2": 16,
2612
- "i3": 16,
2613
- "r0": 1,
2614
- "r1": 64,
2615
- "r2": 149,
2616
- "nnz": 209715
2617
- },
2618
- "model.layers.31.self_attn.k_proj": {
2619
- "o1": 4,
2620
- "o2": 8,
2621
- "o3": 8,
2622
- "i1": 8,
2623
- "i2": 16,
2624
- "i3": 16,
2625
- "r0": 1,
2626
- "r1": 32,
2627
- "r2": 73,
2628
- "nnz": 26214
2629
- },
2630
- "model.layers.31.self_attn.v_proj": {
2631
- "o1": 4,
2632
- "o2": 8,
2633
- "o3": 8,
2634
- "i1": 8,
2635
- "i2": 16,
2636
- "i3": 16,
2637
- "r0": 1,
2638
- "r1": 32,
2639
- "r2": 73,
2640
- "nnz": 26214
2641
- },
2642
- "model.layers.31.self_attn.o_proj": {
2643
- "o1": 8,
2644
- "o2": 16,
2645
- "o3": 16,
2646
- "i1": 8,
2647
- "i2": 16,
2648
- "i3": 16,
2649
- "r0": 1,
2650
- "r1": 64,
2651
- "r2": 149,
2652
- "nnz": 209715
2653
- },
2654
- "model.layers.31.mlp.gate_proj": {
2655
- "o1": 16,
2656
- "o2": 16,
2657
- "o3": 43,
2658
- "i1": 8,
2659
- "i2": 16,
2660
- "i3": 16,
2661
- "r0": 1,
2662
- "r1": 128,
2663
- "r2": 394,
2664
- "nnz": 1127219
2665
- },
2666
- "model.layers.31.mlp.up_proj": {
2667
- "o1": 16,
2668
- "o2": 16,
2669
- "o3": 43,
2670
- "i1": 8,
2671
- "i2": 16,
2672
- "i3": 16,
2673
- "r0": 1,
2674
- "r1": 128,
2675
- "r2": 394,
2676
- "nnz": 1127219
2677
- },
2678
- "model.layers.31.mlp.down_proj": {
2679
- "o1": 8,
2680
- "o2": 16,
2681
- "o3": 16,
2682
- "i1": 16,
2683
- "i2": 16,
2684
- "i3": 43,
2685
- "r0": 1,
2686
- "r1": 128,
2687
- "r2": 394,
2688
- "nnz": 1127219
2689
- },
2690
- "model.layers.32.self_attn.q_proj": {
2691
- "o1": 8,
2692
- "o2": 16,
2693
- "o3": 16,
2694
- "i1": 8,
2695
- "i2": 16,
2696
- "i3": 16,
2697
- "r0": 1,
2698
- "r1": 64,
2699
- "r2": 149,
2700
- "nnz": 209715
2701
- },
2702
- "model.layers.32.self_attn.k_proj": {
2703
- "o1": 4,
2704
- "o2": 8,
2705
- "o3": 8,
2706
- "i1": 8,
2707
- "i2": 16,
2708
- "i3": 16,
2709
- "r0": 1,
2710
- "r1": 32,
2711
- "r2": 73,
2712
- "nnz": 26214
2713
- },
2714
- "model.layers.32.self_attn.v_proj": {
2715
- "o1": 4,
2716
- "o2": 8,
2717
- "o3": 8,
2718
- "i1": 8,
2719
- "i2": 16,
2720
- "i3": 16,
2721
- "r0": 1,
2722
- "r1": 32,
2723
- "r2": 73,
2724
- "nnz": 26214
2725
- },
2726
- "model.layers.32.self_attn.o_proj": {
2727
- "o1": 8,
2728
- "o2": 16,
2729
- "o3": 16,
2730
- "i1": 8,
2731
- "i2": 16,
2732
- "i3": 16,
2733
- "r0": 1,
2734
- "r1": 64,
2735
- "r2": 149,
2736
- "nnz": 209715
2737
- },
2738
- "model.layers.32.mlp.gate_proj": {
2739
- "o1": 16,
2740
- "o2": 16,
2741
- "o3": 43,
2742
- "i1": 8,
2743
- "i2": 16,
2744
- "i3": 16,
2745
- "r0": 1,
2746
- "r1": 128,
2747
- "r2": 394,
2748
- "nnz": 1127219
2749
- },
2750
- "model.layers.32.mlp.up_proj": {
2751
- "o1": 16,
2752
- "o2": 16,
2753
- "o3": 43,
2754
- "i1": 8,
2755
- "i2": 16,
2756
- "i3": 16,
2757
- "r0": 1,
2758
- "r1": 128,
2759
- "r2": 394,
2760
- "nnz": 1127219
2761
- },
2762
- "model.layers.32.mlp.down_proj": {
2763
- "o1": 8,
2764
- "o2": 16,
2765
- "o3": 16,
2766
- "i1": 16,
2767
- "i2": 16,
2768
- "i3": 43,
2769
- "r0": 1,
2770
- "r1": 128,
2771
- "r2": 394,
2772
- "nnz": 1127219
2773
- },
2774
- "model.layers.33.self_attn.q_proj": {
2775
- "o1": 8,
2776
- "o2": 16,
2777
- "o3": 16,
2778
- "i1": 8,
2779
- "i2": 16,
2780
- "i3": 16,
2781
- "r0": 1,
2782
- "r1": 64,
2783
- "r2": 149,
2784
- "nnz": 209715
2785
- },
2786
- "model.layers.33.self_attn.k_proj": {
2787
- "o1": 4,
2788
- "o2": 8,
2789
- "o3": 8,
2790
- "i1": 8,
2791
- "i2": 16,
2792
- "i3": 16,
2793
- "r0": 1,
2794
- "r1": 32,
2795
- "r2": 73,
2796
- "nnz": 26214
2797
- },
2798
- "model.layers.33.self_attn.v_proj": {
2799
- "o1": 4,
2800
- "o2": 8,
2801
- "o3": 8,
2802
- "i1": 8,
2803
- "i2": 16,
2804
- "i3": 16,
2805
- "r0": 1,
2806
- "r1": 32,
2807
- "r2": 73,
2808
- "nnz": 26214
2809
- },
2810
- "model.layers.33.self_attn.o_proj": {
2811
- "o1": 8,
2812
- "o2": 16,
2813
- "o3": 16,
2814
- "i1": 8,
2815
- "i2": 16,
2816
- "i3": 16,
2817
- "r0": 1,
2818
- "r1": 64,
2819
- "r2": 149,
2820
- "nnz": 209715
2821
- },
2822
- "model.layers.33.mlp.gate_proj": {
2823
- "o1": 16,
2824
- "o2": 16,
2825
- "o3": 43,
2826
- "i1": 8,
2827
- "i2": 16,
2828
- "i3": 16,
2829
- "r0": 1,
2830
- "r1": 128,
2831
- "r2": 394,
2832
- "nnz": 1127219
2833
- },
2834
- "model.layers.33.mlp.up_proj": {
2835
- "o1": 16,
2836
- "o2": 16,
2837
- "o3": 43,
2838
- "i1": 8,
2839
- "i2": 16,
2840
- "i3": 16,
2841
- "r0": 1,
2842
- "r1": 128,
2843
- "r2": 394,
2844
- "nnz": 1127219
2845
- },
2846
- "model.layers.33.mlp.down_proj": {
2847
- "o1": 8,
2848
- "o2": 16,
2849
- "o3": 16,
2850
- "i1": 16,
2851
- "i2": 16,
2852
- "i3": 43,
2853
- "r0": 1,
2854
- "r1": 128,
2855
- "r2": 394,
2856
- "nnz": 1127219
2857
- },
2858
- "model.layers.34.self_attn.q_proj": {
2859
- "o1": 8,
2860
- "o2": 16,
2861
- "o3": 16,
2862
- "i1": 8,
2863
- "i2": 16,
2864
- "i3": 16,
2865
- "r0": 1,
2866
- "r1": 64,
2867
- "r2": 149,
2868
- "nnz": 209715
2869
- },
2870
- "model.layers.34.self_attn.k_proj": {
2871
- "o1": 4,
2872
- "o2": 8,
2873
- "o3": 8,
2874
- "i1": 8,
2875
- "i2": 16,
2876
- "i3": 16,
2877
- "r0": 1,
2878
- "r1": 32,
2879
- "r2": 73,
2880
- "nnz": 26214
2881
- },
2882
- "model.layers.34.self_attn.v_proj": {
2883
- "o1": 4,
2884
- "o2": 8,
2885
- "o3": 8,
2886
- "i1": 8,
2887
- "i2": 16,
2888
- "i3": 16,
2889
- "r0": 1,
2890
- "r1": 32,
2891
- "r2": 73,
2892
- "nnz": 26214
2893
- },
2894
- "model.layers.34.self_attn.o_proj": {
2895
- "o1": 8,
2896
- "o2": 16,
2897
- "o3": 16,
2898
- "i1": 8,
2899
- "i2": 16,
2900
- "i3": 16,
2901
- "r0": 1,
2902
- "r1": 64,
2903
- "r2": 149,
2904
- "nnz": 209715
2905
- },
2906
- "model.layers.34.mlp.gate_proj": {
2907
- "o1": 16,
2908
- "o2": 16,
2909
- "o3": 43,
2910
- "i1": 8,
2911
- "i2": 16,
2912
- "i3": 16,
2913
- "r0": 1,
2914
- "r1": 128,
2915
- "r2": 394,
2916
- "nnz": 1127219
2917
- },
2918
- "model.layers.34.mlp.up_proj": {
2919
- "o1": 16,
2920
- "o2": 16,
2921
- "o3": 43,
2922
- "i1": 8,
2923
- "i2": 16,
2924
- "i3": 16,
2925
- "r0": 1,
2926
- "r1": 128,
2927
- "r2": 394,
2928
- "nnz": 1127219
2929
- },
2930
- "model.layers.34.mlp.down_proj": {
2931
- "o1": 8,
2932
- "o2": 16,
2933
- "o3": 16,
2934
- "i1": 16,
2935
- "i2": 16,
2936
- "i3": 43,
2937
- "r0": 1,
2938
- "r1": 128,
2939
- "r2": 394,
2940
- "nnz": 1127219
2941
- },
2942
- "model.layers.35.self_attn.q_proj": {
2943
- "o1": 8,
2944
- "o2": 16,
2945
- "o3": 16,
2946
- "i1": 8,
2947
- "i2": 16,
2948
- "i3": 16,
2949
- "r0": 1,
2950
- "r1": 64,
2951
- "r2": 149,
2952
- "nnz": 209715
2953
- },
2954
- "model.layers.35.self_attn.k_proj": {
2955
- "o1": 4,
2956
- "o2": 8,
2957
- "o3": 8,
2958
- "i1": 8,
2959
- "i2": 16,
2960
- "i3": 16,
2961
- "r0": 1,
2962
- "r1": 32,
2963
- "r2": 73,
2964
- "nnz": 26214
2965
- },
2966
- "model.layers.35.self_attn.v_proj": {
2967
- "o1": 4,
2968
- "o2": 8,
2969
- "o3": 8,
2970
- "i1": 8,
2971
- "i2": 16,
2972
- "i3": 16,
2973
- "r0": 1,
2974
- "r1": 32,
2975
- "r2": 73,
2976
- "nnz": 26214
2977
- },
2978
- "model.layers.35.self_attn.o_proj": {
2979
- "o1": 8,
2980
- "o2": 16,
2981
- "o3": 16,
2982
- "i1": 8,
2983
- "i2": 16,
2984
- "i3": 16,
2985
- "r0": 1,
2986
- "r1": 64,
2987
- "r2": 149,
2988
- "nnz": 209715
2989
- },
2990
- "model.layers.35.mlp.gate_proj": {
2991
- "o1": 16,
2992
- "o2": 16,
2993
- "o3": 43,
2994
- "i1": 8,
2995
- "i2": 16,
2996
- "i3": 16,
2997
- "r0": 1,
2998
- "r1": 128,
2999
- "r2": 394,
3000
- "nnz": 1127219
3001
- },
3002
- "model.layers.35.mlp.up_proj": {
3003
- "o1": 16,
3004
- "o2": 16,
3005
- "o3": 43,
3006
- "i1": 8,
3007
- "i2": 16,
3008
- "i3": 16,
3009
- "r0": 1,
3010
- "r1": 128,
3011
- "r2": 394,
3012
- "nnz": 1127219
3013
- },
3014
- "model.layers.35.mlp.down_proj": {
3015
- "o1": 8,
3016
- "o2": 16,
3017
- "o3": 16,
3018
- "i1": 16,
3019
- "i2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3b/state_dict_fp16_healed.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c8aa2603b1f4f07df7212de0822e2c040e07a46b18e79e0a305b0a2bc21b526e
3
- size 5885822151
 
 
 
 
tt3-qwen2.5-3b/state_dict_fp16_unhealed.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:213a70c30131976d02054e2000ed0df4bb2238fe6bb33b8948803268456c073e
3
- size 5263492198
 
 
 
 
tt3-qwen2.5-3b/tensor_formats.py DELETED
@@ -1,890 +0,0 @@
1
- from __future__ import annotations
2
-
3
- """General N-core tensor formats for a linear layer: tensor train (MPO) and tensor ring.
4
-
5
- WHY THIS EXISTS. The 2-core and 3-core results say the tensorisation step, not the healing
6
- step, is where the leverage is: at equal parameters the 3-core beat the 2-core AFTER healing
7
- at both budgets tried (4.72B: 38.94 vs ~36.5 full MMLU at 60M tokens; 5.74B: 44.91 vs 41.54
8
- probe), and it got there on roughly a quarter of the tokens. That invites two orthogonal
9
- questions this module exists to answer: how many cores, and which topology.
10
-
11
- TENSOR TRAIN vs TENSOR RING. A TT/MPO pins the two boundary bonds to 1 -- the chain has open
12
- ends. A tensor ring closes the chain: core k has shape (r_{k-1}, d_k, r_k) with r_N == r_0,
13
- and the weight is the TRACE of the cyclic product. TT is exactly the TR special case r_0 = 1,
14
- so at equal ranks TR is strictly more expressive. It is also strictly harder to fit: TT-SVD
15
- is a sequence of Eckart-Young-optimal truncations, while a ring has no such closed form, so
16
- TR is fitted here by TT initialisation followed by alternating least squares. That asymmetry
17
- matters when reading results -- a TR loss could mean "the format is worse" OR "the fit did
18
- not converge", so `fit_tr` reports its per-sweep error curve and refuses to return a fit
19
- worse than its own TT initialisation.
20
-
21
- INDEX CONVENTION (shared with mpo2.py / mpo3.py). Output mode k travels with input mode k:
22
-
23
- R(W)[d_1, ..., d_N] = W[(o_1..o_N), (i_1..i_N)], d_k = (o_k, i_k) flattened
24
-
25
- Every mode must be > 1. A mode of 1 collapses a site and silently reduces the core count,
26
- which would make an "N-core" result actually be an (N-1)-core one.
27
-
28
- WHITENING is diagonal and factorised across the N input modes, as in mpo3.py: the whitening
29
- is then a mode-local rescaling that survives the fit exactly and un-whitens by division.
30
- """
31
-
32
- import torch
33
-
34
-
35
- # --------------------------------------------------------------------------- rearrangement
36
- def rearrange_n(W: torch.Tensor, osplit, isplit) -> torch.Tensor:
37
- """W[(o_1..o_N),(i_1..i_N)] -> R[d_1,...,d_N] with d_k = o_k*i_k."""
38
- n = len(osplit)
39
- if len(isplit) != n:
40
- raise ValueError("output and input must be split into the same number of modes")
41
- perm = [j for k in range(n) for j in (k, n + k)]
42
- return (W.reshape(*osplit, *isplit).permute(*perm)
43
- .reshape(*[o * i for o, i in zip(osplit, isplit)]))
44
-
45
-
46
- def inv_rearrange_n(R: torch.Tensor, osplit, isplit) -> torch.Tensor:
47
- """Inverse of `rearrange_n`."""
48
- n = len(osplit)
49
- inter = [x for k in range(n) for x in (osplit[k], isplit[k])]
50
- perm = list(range(0, 2 * n, 2)) + list(range(1, 2 * n, 2))
51
- o = 1
52
- i = 1
53
- for k in range(n):
54
- o *= osplit[k]
55
- i *= isplit[k]
56
- return R.reshape(*inter).permute(*perm).reshape(o, i)
57
-
58
-
59
- def _apply_scales(R: torch.Tensor, osplit, isplit, scales, invert: bool):
60
- """Multiply (or divide) R by sqrt(d_k[i_k]) along each input mode, in place of a dense L."""
61
- n = len(osplit)
62
- shape = [x for k in range(n) for x in (osplit[k], isplit[k])]
63
- T = R.reshape(*shape)
64
- for k in range(n):
65
- s = scales[k].clamp_min(1e-12).sqrt()
66
- view = [1] * (2 * n)
67
- view[2 * k + 1] = isplit[k]
68
- T = T / s.view(*view) if invert else T * s.view(*view)
69
- return T.reshape(R.shape)
70
-
71
-
72
- # --------------------------------------------------------------------------- contraction
73
- def contract_tt(cores) -> torch.Tensor:
74
- """Contract TT cores [(1,d1,r1), (r1,d2,r2), ..., (r_{N-1},dN,1)] -> R[d_1,...,d_N]."""
75
- out = cores[0]
76
- for g in cores[1:]:
77
- a, b = out.shape[-1], g.shape[0]
78
- if a != b:
79
- raise ValueError(f"TT bond mismatch {a} vs {b}")
80
- out = torch.tensordot(out, g, dims=([out.dim() - 1], [0]))
81
- if out.shape[0] != 1 or out.shape[-1] != 1:
82
- raise ValueError("TT boundary bonds must be 1")
83
- return out.reshape(*out.shape[1:-1])
84
-
85
-
86
- def contract_tr(cores, chunk: int = 0) -> torch.Tensor:
87
- """Contract TR cores [(r0,d1,r1), ..., (r_{N-1},dN,r0)] -> R[d_1,...,d_N].
88
-
89
- The obvious route -- chain every tensordot, then take the diagonal over the two ring
90
- indices -- materialises (r_0, d_1..d_N, r_0), i.e. r_0^2 times the size of the ANSWER.
91
- On one LLaMA attention layer at ring rank 118 that is 934 GB, so it does not merely run
92
- slowly, it cannot run at all. Folding the last contraction and the trace into a single
93
- einsum keeps the peak at r_0 * prod(d_1..d_{N-1}) * r_{N-1}, and chunking the first mode
94
- bounds it further for the wide MLP layers.
95
- """
96
- n = len(cores)
97
- if cores[0].shape[0] != cores[-1].shape[-1]:
98
- raise ValueError(f"ring does not close: {cores[0].shape[0]} vs {cores[-1].shape[-1]}")
99
- d0 = cores[0].shape[1]
100
- if chunk and d0 > chunk:
101
- parts = []
102
- for lo in range(0, d0, chunk):
103
- sub = [cores[0][:, lo:min(lo + chunk, d0), :]] + list(cores[1:])
104
- parts.append(contract_tr(sub, chunk=0))
105
- return torch.cat(parts, dim=0)
106
- out = cores[0]
107
- for g in cores[1:-1]:
108
- out = torch.tensordot(out, g, dims=([out.dim() - 1], [0]))
109
- return torch.einsum("i...k,kdi->...d", out, cores[-1])
110
-
111
-
112
- # --------------------------------------------------------------------------- fitting
113
- def fit_tt(R: torch.Tensor, ranks):
114
- """TT-SVD with the given internal ranks. Singular values split symmetrically at each bond,
115
- matching fit_mpo2/fit_mpo3's gauge so cores stay on comparable scales (fp16-safe and
116
- kinder to a blockwise quantizer)."""
117
- dims = list(R.shape)
118
- n = len(dims)
119
- if len(ranks) != n - 1:
120
- raise ValueError(f"{n} sites need {n-1} internal ranks, got {len(ranks)}")
121
- cores, rest, rprev = [], R.reshape(dims[0], -1), 1
122
- for k in range(n - 1):
123
- M = rest.reshape(rprev * dims[k], -1)
124
- U, S, Vh = torch.linalg.svd(M, full_matrices=False)
125
- r = min(int(ranks[k]), S.shape[0])
126
- q = S[:r].clamp_min(0).sqrt()
127
- cores.append((U[:, :r] * q).reshape(rprev, dims[k], r))
128
- rest = q[:, None] * Vh[:r]
129
- rprev = r
130
- cores.append(rest.reshape(rprev, dims[-1], 1))
131
- return cores
132
-
133
-
134
- def tt_to_tr(cores):
135
- """Reinterpret TT cores as TR cores with r_0 = 1 (an exact, lossless re-labelling)."""
136
- return [c.clone() for c in cores]
137
-
138
-
139
- def _subchain(cores, k):
140
- """Contract every core except k, in cyclic order, -> E[r_k, D, r_{k-1}] with D = prod_{j!=k} d_j."""
141
- n = len(cores)
142
- order = [(k + 1 + t) % n for t in range(n - 1)]
143
- out = cores[order[0]]
144
- for j in order[1:]:
145
- out = torch.tensordot(out, cores[j], dims=([out.dim() - 1], [0]))
146
- return out
147
-
148
-
149
- def _subchain_chunk(cores, k, lo, hi):
150
- """`_subchain` with the FIRST following mode restricted to [lo, hi). The restriction rides
151
- along the contraction untouched, so concatenating the chunks reproduces `_subchain`."""
152
- n = len(cores)
153
- order = [(k + 1 + t) % n for t in range(n - 1)]
154
- out = cores[order[0]][:, lo:hi, :]
155
- for j in order[1:]:
156
- out = torch.tensordot(out, cores[j], dims=([out.dim() - 1], [0]))
157
- return out
158
-
159
-
160
- def rank_of(cores, k):
161
- """r_{k-1} * r_k for core k -- the width of that core's least-squares system."""
162
- n = len(cores)
163
- return cores[k].shape[0] * cores[k].shape[2]
164
-
165
-
166
- def _solve_maybe_cpu(AtA, AtW):
167
- """Solve AtA X = AtW, falling back to the CPU when the GPU cannot hold the factorisation.
168
-
169
- The normal-equation matrix is (r_{k-1} r_k) square, i.e. it grows as r^4. On down_proj at
170
- ring rank 219 that is 47961^2 = 9.2 GB, and the factorisation needs a second copy -- no
171
- amount of chunking the data helps, because this matrix does not depend on the data size.
172
- Cholesky is tried first (the Gram is symmetric positive definite after the ridge) and
173
- needs only one triangular factor; if even that does not fit, the solve moves to the host.
174
- Slow, but a bounded slowdown beats an unbounded failure on the layers that matter most.
175
-
176
- THE LADDER MUST CATCH SINGULARITY, NOT ONLY OOM. A normal-equation matrix can be
177
- genuinely rank-deficient, not merely too big: when a requested bond exceeds what its
178
- adjacent mode can carry (e.g. Qwen2.5-3B's q_proj splits to dims [64, 256, 256] and a
179
- budget-matched sweep asks for r=92 > 64), the design matrix loses column rank and
180
- `torch.linalg.solve` raises _LinAlgError. Routing only OutOfMemoryError to the host left
181
- that case falling straight through the ladder and crashing the run -- the opposite of this
182
- function's stated contract. A rank-deficient ALS subproblem is still perfectly well posed:
183
- every solution attains the same fit, so the last rung takes the minimum-norm one via
184
- lstsq, which is exactly what the "lstsq" solver mode would have done anyway.
185
- """
186
- if not (torch.isfinite(AtA).all() and torch.isfinite(AtW).all()):
187
- raise ValueError("REFUSING: non-finite normal equations. cuSOLVER does not fail fast "
188
- "on NaN input, it stalls, so this is caught here rather than handed "
189
- "to a solver that cannot be interrupted.")
190
- try:
191
- L = torch.linalg.cholesky(AtA)
192
- return torch.cholesky_solve(AtW, L)
193
- except torch.OutOfMemoryError:
194
- torch.cuda.empty_cache()
195
- except Exception:
196
- pass
197
- try:
198
- return torch.linalg.solve(AtA, AtW)
199
- except torch.OutOfMemoryError:
200
- torch.cuda.empty_cache()
201
- except Exception:
202
- pass
203
- # ESCALATING RIDGE, ON THE GPU, BEFORE LEAVING IT. A rank-deficient Gram is the common
204
- # case on unbalanced splits (small first mode), not a rare accident, so the host fallback
205
- # must not be the routine path: CPU float64 gelsd on a few-thousand-square system costs
206
- # minutes, and ALS calls this 3 times per sweep per restart, which turned a Qwen2.5-3B
207
- # sweep that should take minutes into one that produced no output for 40+ minutes. Tikhonov
208
- # regularisation restores positive-definiteness for a cost the fit does not notice: the
209
- # ridge is relative to the Gram's own scale and is escalated only until a solve succeeds.
210
- scale = float(AtA.diagonal().abs().mean().clamp_min(1e-30))
211
- eye = torch.eye(AtA.shape[0], dtype=AtA.dtype, device=AtA.device)
212
- # THE LADDER MUST TERMINATE ON THE GPU. AtA is positive SEMI-definite by construction, so
213
- # AtA + c*I is positive definite for any c > 0 and Cholesky is guaranteed to succeed once
214
- # the ridge is large enough -- singularity therefore never needs the host at all. The
215
- # previous last rung sent it to CPU float64 gelsd, which is single-threaded, unbounded, and
216
- # does not check Python signals: on Qwen2.5-3B's k/v_proj, whose TT bond lands exactly on
217
- # the mode dimension (r1 = d0 = 32), the ALS subproblem is EXACTLY rank-saturated, every
218
- # solve took that path, and a compression that needs ~1s per layer without ALS ran 48
219
- # minutes for one layer and could not even be interrupted with SIGINT.
220
- #
221
- # The ridge distorts the subproblem, but ALS is iterative and fit_tr keeps the best iterate
222
- # with a never-worse-than-TT guard, so a heavily-ridged sweep can only fail to improve --
223
- # it cannot corrupt the result. An unbounded stall can.
224
- for mult in (1e-6, 1e-4, 1e-2, 1e-1, 1.0, 10.0):
225
- try:
226
- L = torch.linalg.cholesky(AtA + (mult * scale) * eye)
227
- return torch.cholesky_solve(AtW, L)
228
- except torch.OutOfMemoryError:
229
- torch.cuda.empty_cache()
230
- break # a memory problem, not a conditioning one -- go to host
231
- except Exception:
232
- continue
233
- del eye
234
- # Only OOM reaches here now. The host path stays for that case, where it IS the right
235
- # answer: slow but bounded beats failing outright on the layers that need the most rank.
236
- dev = AtA.device
237
- A64, W64 = AtA.cpu().double(), AtW.cpu().double()
238
- try:
239
- X = torch.linalg.solve(A64, W64)
240
- except Exception:
241
- X = torch.linalg.lstsq(A64, W64, driver="gelsd").solution
242
- return X.to(device=dev, dtype=AtW.dtype)
243
-
244
-
245
- def tr_rel_err(cores, R: torch.Tensor, chunk_elems: int = 250_000_000) -> float:
246
- """||contract_tr(cores) - R||_F / ||R||_F, accumulated in chunks.
247
-
248
- Materialising the reconstruction to subtract it needs the reconstruction AND the einsum's
249
- intermediate at once; on down_proj at ring rank 155 that intermediate is (155, 64, 688,
250
- 256) = 7 GB even with the first mode already chunked. Accumulating the squared error one
251
- slice at a time keeps only one slice live, and the chunk width is derived from an element
252
- budget rather than a hard-coded constant -- a constant is exactly what silently failed to
253
- engage when a mode happened to equal it.
254
- """
255
- n = len(cores)
256
- d0 = cores[0].shape[1]
257
- mid = 1
258
- for k in range(1, n - 1):
259
- mid *= cores[k].shape[1]
260
- per_unit = max(1, mid * cores[0].shape[0] * cores[-1].shape[0])
261
- step = max(1, min(d0, int(chunk_elems // per_unit)))
262
- acc = 0.0
263
- for lo in range(0, d0, step):
264
- hi = min(lo + step, d0)
265
- sub = [cores[0][:, lo:hi, :]] + list(cores[1:])
266
- diff = contract_tr(sub) - R[lo:hi]
267
- acc += float(diff.pow(2).sum())
268
- del sub, diff
269
- return (acc ** 0.5) / float(R.norm())
270
-
271
-
272
- def fit_tr(R: torch.Tensor, ranks, sweeps: int = 30, tol: float = 1e-8, verbose: bool = False,
273
- seed: int = 1234, restarts: int = 2, solver: str = "lstsq",
274
- chunk: int = 0, chunk_elems: int = 250_000_000):
275
- """Fit a tensor ring by TT initialisation + alternating least squares.
276
-
277
- ranks = [r_0, r_1, ..., r_{N-1}] with r_N == r_0. The TT init uses r_0 = 1 (a legal ring),
278
- then each ALS sweep re-solves every core in closed form given the others; the ring's extra
279
- boundary rank is opened up by padding the initialisation. Because ALS on a ring is not
280
- guaranteed to improve monotonically from an arbitrary start, the best iterate seen is kept
281
- and the routine REFUSES to return anything worse than its own TT initialisation -- without
282
- that guard a fitting failure would be indistinguishable from the format being worse, which
283
- is precisely the comparison this module exists to make.
284
- """
285
- n = len(R.shape)
286
- if len(ranks) != n:
287
- raise ValueError(f"a ring over {n} sites needs {n} ranks (r_0..r_{{N-1}})")
288
- dims = list(R.shape)
289
- rnorm = float(R.norm())
290
- rnorm2 = float(R.pow(2).sum())
291
- last_sq = None
292
- tt = fit_tt(R, ranks[1:])
293
- base_err = float((contract_tt(tt) - R).norm() / R.norm())
294
- r0 = int(ranks[0])
295
- gen = torch.Generator(device="cpu").manual_seed(seed)
296
-
297
- def padded_init():
298
- """TT solution embedded in the ring, with the OPENED bond seeded on BOTH ends.
299
-
300
- Seeding only one end is not enough and is a silent failure: core 0's least-squares
301
- environment is built from cores 1..N-1, whose ring index comes from core N-1's
302
- trailing bond. If that stays zero, the environment vanishes on exactly the components
303
- the ring adds, every ALS solve returns zero there, and the fit never leaves the TT
304
- solution -- it looks like "the ring buys nothing" rather than "the ring was never
305
- initialised".
306
- """
307
- out = []
308
- for k, c in enumerate(tt):
309
- a, d, b = c.shape
310
- na = r0 if k == 0 else a
311
- nb = r0 if k == n - 1 else b
312
- g = torch.zeros(na, d, nb, dtype=R.dtype, device=R.device)
313
- g[:a, :, :b] = c
314
- eps = 0.05 * float(c.norm()) / max(1, c.numel()) ** 0.5
315
- if k == 0 and na > a:
316
- g[a:, :, :] = eps * torch.randn(na - a, d, nb, generator=gen,
317
- dtype=R.dtype).to(R.device)
318
- if k == n - 1 and nb > b:
319
- g[:, :, b:] = eps * torch.randn(na, d, nb - b, generator=gen,
320
- dtype=R.dtype).to(R.device)
321
- out.append(g)
322
- return out
323
-
324
- def random_init(g=None):
325
- """i.i.d. cores whose ring contraction has the right variance.
326
-
327
- The scale is derived, not guessed. For cores with i.i.d. N(0, s^2) entries the trace
328
- of the cyclic product is a sum of prod_k r_k independent products of N Gaussians, so
329
- Var(W) ~= (prod_k r_k) * s^(2N). Matching that to the target mean square gives
330
- s = (E[R^2] / prod_k r_k)^(1/(2N)). Getting this wrong by a constant factor per core
331
- compounds to that factor^N in the product, which for N=4,5 puts the initial iterate
332
- many orders of magnitude away from the data and leaves ALS crawling.
333
- """
334
- rr = [int(ranks[k]) for k in range(n)]
335
- prod = 1.0
336
- for x in rr:
337
- prod *= x
338
- ms = float(R.pow(2).mean())
339
- s = (ms / prod) ** (1.0 / (2 * n))
340
- gg = g if g is not None else gen
341
- return [s * torch.randn(rr[k], dims[k], rr[(k + 1) % n], generator=gg,
342
- dtype=R.dtype).to(R.device) for k in range(n)]
343
-
344
- # ALS on a ring has genuine local minima -- a single start that stalls would be reported
345
- # as "the ring is not better", which is exactly the confound this module must avoid. So
346
- # several starts are run and the best kept; restarts are cheap next to the SVDs anyway.
347
- inits = [("tt_padded", padded_init)]
348
- for j in range(restarts):
349
- g = torch.Generator(device="cpu").manual_seed(seed + 977 * (j + 1))
350
- inits.append((f"random{j}", lambda g=g: random_init(g)))
351
- best, best_err, hists, winner = tt_to_tr(tt), base_err, {}, "tt_init"
352
- for init_name, init_fn in inits:
353
- cores, ihist = init_fn(), []
354
- for it in range(sweeps):
355
- # A restart that has diverged produces non-finite normal equations. Feeding
356
- # those to a solver is not merely wasteful: cuSOLVER's LU on a NaN matrix
357
- # does not fail fast, it goes pathological -- a 2336x2336 solve sat for 80
358
- # minutes and could not be interrupted, because `clamp_min` does not clamp
359
- # NaN so the ridge itself became NaN and poisoned the whole diagonal.
360
- diverged = False
361
- for k in range(n):
362
- # The subchain leaves every d index separate and in CYCLIC order starting at
363
- # k+1. R's remaining modes must be flattened in that SAME order -- movedim
364
- # gives natural order, which for interior k is a different permutation and
365
- # would solve the least-squares problem against mismatched columns. It still
366
- # returns a finite "solution", just to the wrong system.
367
- # The chunk decision is made from SHAPES ONLY and BEFORE anything large is
368
- # built. An earlier version computed the full subchain first and then decided
369
- # whether to chunk, so the unchunked allocation always happened anyway and the
370
- # chunked branch saved nothing -- the memory-bounded path existed but could
371
- # never take effect.
372
- # Auto-size the chunk from a memory budget instead of comparing against a
373
- # fixed number. A constant threshold silently does nothing when the mode
374
- # happens to equal it -- which is exactly what let a 4-site fit try to
375
- # materialise a 134 GB subchain (mode 64, chunk 64, "64 > 64" is false).
376
- m_ = (k + 1) % n
377
- other = 1
378
- for j in range(n):
379
- if j != k:
380
- other *= dims[j]
381
- per_unit = max(1, (other // max(1, dims[m_])) * rank_of(cores, k))
382
- auto = max(1, min(dims[m_], int(chunk_elems // per_unit)))
383
- use_chunk = auto < dims[m_]
384
- if solver == "normal" and use_chunk:
385
- # Memory-bounded normal equations. Materialising the subchain costs
386
- # r_k * (prod_{j!=k} d_j) * r_{k-1} floats -- on down_proj at these ranks
387
- # that is (155, 688, 256, 155) = 17 GB, so the unchunked path cannot run
388
- # on the MLP layers at all. The Gram and right-hand side are sums over the
389
- # flattened "others" index, so they accumulate exactly over slices of the
390
- # first subchain mode; this is the same arithmetic, not an approximation.
391
- m = m_
392
- d_next = dims[m]
393
- rk_, rkm1_ = None, None
394
- AtA = AtW = None
395
- Rp = R.permute(*([k] + [(k + 1 + t) % n for t in range(n - 1)]))
396
- for lo in range(0, d_next, auto):
397
- hi = min(lo + auto, d_next)
398
- Ec = _subchain_chunk(cores, k, lo, hi)
399
- rk_, rkm1_ = Ec.shape[0], Ec.shape[-1]
400
- Ec = Ec.reshape(rk_, -1, rkm1_)
401
- Ac = Ec.permute(1, 2, 0).reshape(Ec.shape[1], rkm1_ * rk_)
402
- Wc = Rp[:, lo:hi].reshape(dims[k], -1)
403
- g = Ac.transpose(0, 1) @ Ac
404
- h = Ac.transpose(0, 1) @ Wc.transpose(0, 1)
405
- AtA = g if AtA is None else AtA + g
406
- AtW = h if AtW is None else AtW + h
407
- del Ec, Ac, Wc, g, h
408
- if not torch.isfinite(AtA).all():
409
- diverged = True
410
- del AtA, AtW
411
- break
412
- lam = 1e-8 * float(AtA.diagonal().abs().mean().clamp_min(1e-30))
413
- AtA_r = AtA + lam * torch.eye(AtA.shape[0], dtype=AtA.dtype,
414
- device=AtA.device)
415
- try:
416
- G = _solve_maybe_cpu(AtA_r, AtW)
417
- except ValueError:
418
- # Non-finite normal equations mean THIS restart has diverged, whichever
419
- # operand carries the NaN -- checking AtA alone missed a case where the
420
- # right-hand side A^T W was the non-finite one and killed the whole
421
- # compression at layer 15 of 252. Catching the guard covers every
422
- # source at once, and abandoning the restart is safe because `best` is
423
- # untouched and fit_tr still falls back to the TT solution.
424
- diverged = True
425
- del AtA_r, AtW
426
- break
427
- del AtA_r
428
- # ||R - A G||^2 = ||R||^2 - 2<AtW, G> + <G, AtA G>, all from quantities
429
- # already formed. Computing it by contracting the whole ring instead would
430
- # cost one full O(prod d_k) tensor per sweep per core.
431
- sq = rnorm2 - 2.0 * float((AtW * G).sum()) + float((G * (AtA @ G)).sum())
432
- last_sq = max(sq, 0.0)
433
- rkm1, rk = rkm1_, rk_
434
- else:
435
- # ONE branch builds A/Wk and ONE consumes them. Splitting the decision
436
- # across two separate if/else chains left the non-chunked solve reachable
437
- # after the chunked path had run, where `A` is whatever the PREVIOUS core
438
- # left behind -- a silent wrong answer rather than an error.
439
- E = _subchain(cores, k) # (r_k, d_{k+1},..,d_{k-1}, r_{k-1})
440
- rk, rkm1 = E.shape[0], E.shape[-1]
441
- E = E.reshape(rk, -1, rkm1)
442
- D = E.shape[1]
443
- A = E.permute(1, 2, 0).reshape(D, rkm1 * rk)
444
- perm = [k] + [(k + 1 + t) % n for t in range(n - 1)]
445
- # R's remaining modes must be flattened in the subchain's CYCLIC order --
446
- # movedim gives natural order, which for interior k solves the
447
- # least-squares problem against mismatched columns and still returns a
448
- # finite "solution", just to the wrong system.
449
- Wk = R.permute(*perm).reshape(dims[k], D)
450
- del E
451
- if solver == "normal":
452
- AtA = A.transpose(0, 1) @ A
453
- if not torch.isfinite(AtA).all():
454
- diverged = True
455
- del AtA, A, Wk
456
- break
457
- lam = 1e-8 * float(AtA.diagonal().abs().mean().clamp_min(1e-30))
458
- AtA += lam * torch.eye(AtA.shape[0], dtype=A.dtype, device=A.device)
459
- try:
460
- G = _solve_maybe_cpu(AtA, A.transpose(0, 1) @ Wk.transpose(0, 1))
461
- except ValueError:
462
- diverged = True
463
- del AtA, A, Wk
464
- break
465
- del AtA
466
- else:
467
- G = torch.linalg.lstsq(A, Wk.transpose(0, 1)).solution
468
- last_sq = None
469
- del A, Wk
470
- cores[k] = (G.transpose(0, 1).reshape(dims[k], rkm1, rk)
471
- .permute(1, 0, 2).contiguous())
472
- if diverged:
473
- # Abandon this initialisation. `best`/`best_err` are untouched, and fit_tr's
474
- # never-worse-than-TT guard still applies, so a diverged restart can only fail
475
- # to contribute -- never corrupt the returned cores.
476
- ihist.append(float("nan"))
477
- break
478
- err = (float(last_sq) ** 0.5 / rnorm if last_sq is not None
479
- else float((contract_tr(cores, chunk=chunk) - R).norm() / rnorm))
480
- ihist.append(round(err, 8))
481
- if verbose:
482
- print(f" TR-ALS[{init_name}] sweep {it+1}: rel err {err:.6f}", flush=True)
483
- if err < best_err - 1e-12:
484
- best, best_err, winner = [c.clone() for c in cores], err, init_name
485
- if it and abs(ihist[-2] - err) < tol * max(err, 1e-12):
486
- break
487
- hists[init_name] = ihist
488
- # The algebraic residual is a difference of nearly equal large numbers; at a relative
489
- # error of ~1e-2 it has already lost most of its fp32 significance. It is fine for
490
- # steering ALS but not for the number that gets reported, so the winner is re-measured
491
- # once by explicit contraction.
492
- best_err = tr_rel_err(best, R)
493
- if best_err > base_err:
494
- return tt_to_tr(tt), base_err, {"fell_back_to_tt": True, "tt_err": base_err,
495
- "winner": "tt_init", "als_hist": hists}
496
- return best, best_err, {"fell_back_to_tt": winner == "tt_init", "tt_err": base_err,
497
- "winner": winner, "als_hist": hists}
498
-
499
-
500
- # --------------------------------------------------------------------------- bookkeeping
501
- def tt_params(dims, ranks) -> int:
502
- r = [1] + [int(x) for x in ranks] + [1]
503
- return sum(r[k] * dims[k] * r[k + 1] for k in range(len(dims)))
504
-
505
-
506
- def tr_params(dims, ranks) -> int:
507
- r = [int(x) for x in ranks]
508
- n = len(dims)
509
- return sum(r[k] * dims[k] * r[(k + 1) % n] for k in range(n))
510
-
511
-
512
- def tt_rank_ceilings(dims):
513
- """r_k <= min(prod_{j<=k} d_j, prod_{j>k} d_j): above that the truncation is vacuous."""
514
- n, out = len(dims), []
515
- for k in range(n - 1):
516
- left = 1
517
- for j in range(k + 1):
518
- left *= dims[j]
519
- right = 1
520
- for j in range(k + 1, n):
521
- right *= dims[j]
522
- out.append(min(left, right))
523
- return out
524
-
525
-
526
- def ranks_for_budget(dims, budget: int, ring: bool, alpha: float = 1.0):
527
- """Largest ranks fitting `budget`, shaped by r_k proportional to ceiling_k ** alpha.
528
-
529
- Bisection rather than a closed form: the count is linear in each rank but bilinear in
530
- adjacent pairs, and cyclic for a ring, so there is no single quadratic to solve.
531
-
532
- ALPHA EXISTS BECAUSE EQUAL FILL FRACTION IS WRONG WHEN THE CEILINGS ARE LOPSIDED. For a
533
- 4-site split of 4096 the ceilings are (64, 4096, 64): alpha=1 spends the budget on the
534
- huge middle bond and returns ranks like (36, 2327, 36), strangling the two bonds that
535
- actually gate information flow through the chain. alpha=0 gives every bond the same rank
536
- instead. Neither is right a priori, so the caller is expected to MEASURE across alpha --
537
- the reconstruction error, not the heuristic, decides.
538
- """
539
- ceil_tt = tt_rank_ceilings(dims)
540
- ceils = ([min(ceil_tt)] + ceil_tt) if ring else ceil_tt
541
- fn = tr_params if ring else tt_params
542
- mx = max(ceils)
543
- shape = [(c / mx) ** alpha for c in ceils]
544
-
545
- def build(t):
546
- return [max(1, min(int(round(t * mx * s)), c)) for s, c in zip(shape, ceils)]
547
-
548
- lo, hi = 0.0, 1.0
549
- if fn(dims, build(1.0)) <= budget:
550
- return build(1.0)
551
- for _ in range(60):
552
- mid = (lo + hi) / 2
553
- if fn(dims, build(mid)) > budget:
554
- hi = mid
555
- else:
556
- lo = mid
557
- r = build(lo)
558
- while fn(dims, r) > budget and max(r) > 1:
559
- r[r.index(max(r))] -= 1
560
- return r
561
-
562
-
563
- def balanced_split(n: int, k: int):
564
- """Most balanced k-way factorisation of n with every factor >= 2 (spread-minimising)."""
565
- best = None
566
- def rec(rem, parts):
567
- nonlocal best
568
- if len(parts) == k - 1:
569
- if rem >= 2:
570
- cand = parts + [rem]
571
- key = max(cand) / min(cand)
572
- if best is None or key < best[0]:
573
- best = (key, cand)
574
- return
575
- d = 2
576
- while d * d <= rem or d <= rem:
577
- if d > rem:
578
- break
579
- if rem % d == 0:
580
- rec(rem // d, parts + [d])
581
- d += 1
582
- rec(n, [])
583
- if best is None:
584
- raise ValueError(f"no {k}-way factorisation of {n} with all factors >= 2")
585
- return sorted(best[1])
586
-
587
-
588
- def pair_modes(o: int, i: int, k: int = 3):
589
- """Split O and I into k factors each, and PAIR them so the paired dims come out balanced.
590
-
591
- Paired-mode tensorisation multiplies the j-th output factor by the j-th input factor, so
592
- the pairing ORDER decides the shape of the tensor the ring has to fit -- and balanced_split
593
- returns its factors sorted, which pairs smallest with smallest and largest with largest.
594
- That is the worst available choice. On Qwen2.5-3B's 2048x2048 projections both sides split
595
- as [8, 16, 16], and the sorted pairing yields dims [64, 256, 256]: a first mode of only 64
596
- caps the adjacent bond at r_0 * 64, while a budget-matched sweep asks for r ~= 92, so every
597
- ALS normal-equation system is rank-deficient BY CONSTRUCTION. The observed cost was a sweep
598
- that burned 2.5 hours of CPU inside the ridge/lstsq ladder and emitted not one data point.
599
-
600
- Searching the k! pairings for the one that minimises max(dims)/min(dims) turns that same
601
- layer into [128, 128, 256], which is well conditioned. The search is over 6 orders for
602
- k = 3, so it costs nothing.
603
-
604
- This is deliberately a no-op on LLaMA-2-7B, whose shapes were verified individually:
605
- q/k/v/o_proj [256, 256, 256], gate/up_proj and down_proj [256, 256, 688] both before and
606
- after. Every result already measured on that model therefore remains valid, and the sweep
607
- and the production compressor keep agreeing with each other.
608
- """
609
- from itertools import permutations
610
- osp = tuple(balanced_split(o, k))
611
- best = None
612
- for perm in permutations(balanced_split(i, k)):
613
- dims = [a * b for a, b in zip(osp, perm)]
614
- spread = max(dims) / min(dims)
615
- if best is None or spread < best[0]:
616
- best = (spread, tuple(perm))
617
- return osp, best[1]
618
-
619
-
620
- def self_test(device: str = "cpu") -> None:
621
- torch.manual_seed(0)
622
- dt = torch.float64
623
- for osp, isp in [((4, 3), (2, 5)), ((4, 3, 2), (2, 5, 3)), ((2, 3, 2, 2), (2, 2, 3, 2))]:
624
- n = len(osp)
625
- out = 1
626
- inn = 1
627
- for x in osp:
628
- out *= x
629
- for x in isp:
630
- inn *= x
631
- W = torch.randn(out, inn, dtype=dt, device=device)
632
- R = rearrange_n(W, osp, isp)
633
- dims = [o * i for o, i in zip(osp, isp)]
634
- assert list(R.shape) == dims, (R.shape, dims)
635
- assert torch.equal(inv_rearrange_n(R, osp, isp), W), f"{n}-site rearrange not invertible"
636
- # index identity, not just the round trip: a wrong-but-self-inverse permutation would
637
- # pass the round trip and scramble every weight silently
638
- for _ in range(40):
639
- oi = [torch.randint(0, x, (1,)).item() for x in osp]
640
- ii = [torch.randint(0, x, (1,)).item() for x in isp]
641
- ridx = tuple(oi[k] * isp[k] + ii[k] for k in range(n))
642
- orow = 0
643
- for k in range(n):
644
- orow = orow * osp[k] + oi[k]
645
- ocol = 0
646
- for k in range(n):
647
- ocol = ocol * isp[k] + ii[k]
648
- assert R[ridx] == W[orow, ocol], f"{n}-site rearrange index map wrong"
649
-
650
- ceils = tt_rank_ceilings(dims)
651
- cores = fit_tt(R, ceils)
652
- e = float((contract_tt(cores) - R).norm() / R.norm())
653
- assert e < 1e-10, f"{n}-site full-rank TT is not exact ({e:.3e})"
654
- assert tt_params(dims, ceils) == sum(c.numel() for c in cores), "tt_params disagrees"
655
-
656
- if n >= 3:
657
- trunc = [max(1, c // 2) for c in ceils]
658
- cores = fit_tt(R, trunc)
659
- assert tt_params(dims, trunc) == sum(c.numel() for c in cores)
660
- for a in (0.0, 0.5, 1.0):
661
- rr = ranks_for_budget(dims, tt_params(dims, trunc), ring=False, alpha=a)
662
- assert tt_params(dims, rr) <= tt_params(dims, trunc), \
663
- f"TT budget solver overran at alpha={a}"
664
- # a ring at the SAME parameter budget must not do worse than the TT it starts from
665
- budget = tt_params(dims, trunc)
666
- rring = ranks_for_budget(dims, budget, ring=True)
667
- assert tr_params(dims, rring) <= budget, "TR budget solver overran"
668
- _c, err_tr, info = fit_tr(R, rring, sweeps=6)
669
- assert err_tr <= info["tt_err"] + 1e-12, "fit_tr returned worse than its own TT init"
670
- assert abs(float((contract_tr(_c) - R).norm() / R.norm()) - err_tr) < 1e-8, \
671
- "reported TR error does not match the returned cores"
672
-
673
- ring_chk = [torch.randn(3, 5, 4, dtype=dt), torch.randn(4, 6, 2, dtype=dt),
674
- torch.randn(2, 7, 3, dtype=dt)]
675
- full = contract_tr(ring_chk)
676
- assert torch.allclose(full, contract_tr(ring_chk, chunk=2), atol=1e-12), \
677
- "chunked contract_tr disagrees with the unchunked one"
678
- ref = torch.einsum("iaj,jbk,kci->abc", *ring_chk)
679
- assert torch.allclose(full, ref, atol=1e-12), "contract_tr is not the cyclic trace"
680
-
681
- # a ring with r_0 > 1 must be able to represent things a TT of the same internal ranks cannot
682
- dims = [6, 6, 6]
683
- torch.manual_seed(1)
684
- ring = [torch.randn(3, 6, 3, dtype=dt) for _ in range(3)]
685
- Rr = contract_tr(ring)
686
- tt_same = fit_tt(Rr, [3, 3])
687
- e_tt = float((contract_tt(tt_same) - Rr).norm() / Rr.norm())
688
- assert e_tt > 1e-3, ("a rank-(3,3,3) ring was reproduced by a rank-(3,3) TT; the ring "
689
- f"contraction is probably not closing the loop (err {e_tt:.3e})")
690
- for slv in ("lstsq", "normal"):
691
- got, err, info = fit_tr(Rr, [3, 3, 3], sweeps=200, restarts=3, solver=slv)
692
- assert err < 1e-4, (f"TR-ALS[{slv}] failed to recover an exact rank-3 ring "
693
- f"(err {err:.3e}); winner={info['winner']} "
694
- f"tt_init={info['tt_err']:.3e}")
695
- got, err, info = fit_tr(Rr, [3, 3, 3], sweeps=200, restarts=3)
696
- # chunking changes only how the Gram is accumulated, so it must reach the same optimum
697
- _g, err_ch, _i = fit_tr(Rr, [3, 3, 3], sweeps=200, restarts=3, solver="normal", chunk=2)
698
- assert err_ch < 1e-4, f"chunked TR-ALS failed to recover an exact ring (err {err_ch:.3e})"
699
- assert err < 1e-4, (f"TR-ALS failed to recover an exact rank-3 ring (err {err:.3e}); "
700
- f"winner={info['winner']} tt_init={info['tt_err']:.3e}")
701
-
702
- assert balanced_split(4096, 3) == [16, 16, 16], balanced_split(4096, 3)
703
- assert balanced_split(4096, 2) == [64, 64]
704
- b = balanced_split(11008, 3)
705
- assert 43 in b and b[0] * b[1] * b[2] == 11008, b
706
- print("tensor_formats self-test PASSED (N-site rearrange exact & index-checked, full-rank "
707
- "TT exact, budget solvers within budget, TR >= its TT init, TR strictly beats TT on "
708
- "a true ring, balanced splits correct)")
709
-
710
-
711
- if __name__ == "__main__":
712
- self_test()
713
-
714
-
715
- # --------------------------------------------------------------------------- layers
716
- class TRLinear(torch.nn.Module):
717
- """Tensor-ring linear layer: W = Tr[G_0 G_1 ... G_{N-1}] after the shared rearrangement.
718
-
719
- NOT a LowRankLinear subclass, unlike MPO2Linear/MPO3Linear. Those two could pretend to be
720
- a pair of factors because a train has open ends; a ring genuinely has N 3-D cores and no
721
- A/B roles to borrow, so anything keyed on `.A`/`.B` (the blockwise quantizer, the bond
722
- rebalancer) has to be taught about `.cores` explicitly rather than silently doing the
723
- wrong thing to a subclass it thinks it understands.
724
-
725
- RECONSTRUCTION IS CHUNKED BY DEFAULT. Merging any two cores of a 3-site ring costs
726
- r*d_i*d_j*r entries -- on down_proj at ring rank 142 that is 7.1 GB in bf16, per layer,
727
- per forward. Chunking the first mode bounds it; the cost is more, smaller matmuls.
728
- """
729
-
730
- def __init__(self, cores, osplit, isplit, chunk_elems: int = 500_000_000,
731
- bias=None):
732
- super().__init__()
733
- n = len(cores)
734
- if len(osplit) != n or len(isplit) != n:
735
- raise ValueError(f"{n} cores need {n} output and {n} input modes")
736
- if min(list(osplit) + list(isplit)) < 2:
737
- raise ValueError(f"degenerate split o={tuple(osplit)} i={tuple(isplit)}: a mode of "
738
- f"1 collapses a site, making this an (N-1)-site network")
739
- for k in range(n):
740
- if cores[k].shape[1] != osplit[k] * isplit[k]:
741
- raise ValueError(f"core {k} has mode {cores[k].shape[1]}, expected "
742
- f"{osplit[k]}*{isplit[k]}")
743
- if cores[k].shape[2] != cores[(k + 1) % n].shape[0]:
744
- raise ValueError(f"ring does not close between cores {k} and {(k+1)%n}")
745
- self.cores = torch.nn.ParameterList([torch.nn.Parameter(c) for c in cores])
746
- self.osplit, self.isplit = tuple(int(x) for x in osplit), tuple(int(x) for x in isplit)
747
- o = i = 1
748
- for k in range(n):
749
- o *= self.osplit[k]
750
- i *= self.isplit[k]
751
- self.out_features, self.in_features = o, i
752
- self.ranks = tuple(int(c.shape[0]) for c in cores)
753
- # LLaMA projections have no bias, but Qwen2's q/k/v DO. Dropping it when the dense
754
- # Linear is replaced is SILENT: shapes still match, the parameter-count gate still
755
- # balances (achieved excludes bias, and so would the rebuilt model), and only the
756
- # accuracy moves. So the bias is carried, not discarded. Defaults to None, which
757
- # leaves every LLaMA path byte-identical to before.
758
- self.bias = None if bias is None else torch.nn.Parameter(bias)
759
- # Elements per unit of the FIRST mode in contract_tr's peak intermediate, which is
760
- # (r_0, c, d_1, ..., d_{n-2}, r_{n-1}) -- the LAST core's mode is contracted away by
761
- # the closing einsum and must not be counted. Including it over-estimated the cost by
762
- # d_{n-1} (256x on an MLP layer), which drove the chunk to 1 and would have made every
763
- # MLP forward 256 sequential contractions instead of 8.
764
- mid = 1
765
- for k in range(1, n - 1):
766
- mid *= cores[k].shape[1]
767
- per_unit = max(1, mid * self.ranks[0] * self.ranks[-1])
768
- self._chunk = max(1, min(cores[0].shape[1], int(chunk_elems // per_unit)))
769
- # non-persistent: never wants to show up in a checkpoint, and materialize_() is an
770
- # inference-only opt-in (see below), so a freshly-loaded layer must start uncached.
771
- self.register_buffer("_cached_weight", None, persistent=False)
772
-
773
- def weight(self) -> torch.Tensor:
774
- if self._cached_weight is not None:
775
- return self._cached_weight
776
- cs = list(self.cores)
777
- R = contract_tr(cs, chunk=self._chunk if self._chunk < cs[0].shape[1] else 0)
778
- return inv_rearrange_n(R, self.osplit, self.isplit)
779
-
780
- @torch.no_grad()
781
- def materialize_(self):
782
- """Cache the dense weight once. INFERENCE ONLY -- gradients cannot flow through the
783
- cached tensor back to the cores, so this must never be called before/during training.
784
-
785
- forward() calls weight() on every call, which redoes the full chunked ring
786
- contraction (two tensor contractions + a trace per core) from scratch. That is fine
787
- for a single forward pass, but autoregressive generation calls forward() once per
788
- layer per GENERATED TOKEN with the cores completely unchanged between calls. Measured
789
- on tr3_ring4b04_h1's GSM8K eval before this existed: 209s/item, ETA 73h for 1319
790
- items -- every one of ~200 generated tokens re-contracted all 224 ring layers.
791
- A train layer (LowRankLinear/MPO2Linear) never had this problem: F.linear(F.linear(x,
792
- B), A) applies the two factors straight to the activation and never materializes W at
793
- all, so there was nothing to cache there.
794
- """
795
- self._cached_weight = self.weight().detach().clone()
796
-
797
- def unmaterialize_(self):
798
- self._cached_weight = None
799
-
800
- def forward(self, x):
801
- b = None if self.bias is None else self.bias.to(x.dtype)
802
- return torch.nn.functional.linear(x, self.weight().to(x.dtype), b)
803
-
804
- def extra_repr(self) -> str:
805
- return (f"o={self.osplit}, i={self.isplit}, ranks={self.ranks}, "
806
- f"chunk={self._chunk}, materialized={self._cached_weight is not None}")
807
-
808
-
809
- class SparseAugTRLinear(TRLinear):
810
- """TRLinear plus a sparse additive residual. Same int64-index contract as the MPO layers:
811
- `sp_idx` must NEVER be cast to a floating dtype -- a `.half()` on a 45M-scale index
812
- silently rounds it to a different, valid-looking position."""
813
-
814
- def __init__(self, cores, osplit, isplit, sp_idx, sp_val,
815
- chunk_elems: int = 500_000_000, bias=None):
816
- super().__init__(cores, osplit, isplit, chunk_elems, bias)
817
- if sp_idx.numel() != sp_val.numel():
818
- raise ValueError(f"{sp_idx.numel()} indices for {sp_val.numel()} values")
819
- n = self.out_features * self.in_features
820
- if sp_idx.numel() and (int(sp_idx.max()) >= n or int(sp_idx.min()) < 0):
821
- raise ValueError("sparse index out of range for this layer")
822
- self.register_buffer("sp_idx", sp_idx.to(torch.int64))
823
- self.sp_val = torch.nn.Parameter(sp_val)
824
-
825
- def weight(self) -> torch.Tensor:
826
- # must check the cache here too, not just in TRLinear.weight(): materialize_() caches
827
- # THIS class's weight() (ring + sparse, since self.weight() dispatches polymorphically
828
- # from inside materialize_()), so without this check a later call would go
829
- # super().weight() -> see the cache -> return the already-sparse-augmented tensor ->
830
- # and then add the sparse residual a second time on top of it.
831
- if self._cached_weight is not None:
832
- return self._cached_weight
833
- W = super().weight()
834
- if self.sp_idx.numel():
835
- W = W.reshape(-1).index_add(0, self.sp_idx, self.sp_val.to(W.dtype)).view_as(W)
836
- return W
837
-
838
- def extra_repr(self) -> str:
839
- return super().extra_repr() + f", nnz={self.sp_idx.numel()}"
840
-
841
-
842
- def layer_self_test() -> None:
843
- torch.manual_seed(0)
844
- osp, isp = (4, 3, 2), (2, 5, 3)
845
- dims = [o * i for o, i in zip(osp, isp)]
846
- cores = [torch.randn(3, dims[0], 4), torch.randn(4, dims[1], 2), torch.randn(2, dims[2], 3)]
847
- lay = TRLinear([c.clone() for c in cores], osp, isp, chunk_elems=10 ** 9)
848
- ref = inv_rearrange_n(contract_tr(cores), osp, isp)
849
- assert torch.allclose(lay.weight(), ref, atol=1e-5), "TRLinear.weight() != contract+inverse"
850
- # chunking must not change the answer
851
- lay_c = TRLinear([c.clone() for c in cores], osp, isp, chunk_elems=1)
852
- assert lay_c._chunk < dims[0], "chunk did not engage"
853
- assert torch.allclose(lay_c.weight(), ref, atol=1e-5), "chunked forward differs"
854
- x = torch.randn(7, lay.in_features)
855
- assert torch.allclose(lay(x), x @ ref.T, atol=1e-4), "forward != x W^T"
856
- idx = torch.tensor([0, 5, lay.out_features * lay.in_features - 1], dtype=torch.int64)
857
- val = torch.tensor([1.0, -2.0, 3.0])
858
- sl = SparseAugTRLinear([c.clone() for c in cores], osp, isp, idx, val, chunk_elems=10 ** 9)
859
- d = (sl.weight() - ref).reshape(-1)
860
- assert torch.allclose(d[idx], val, atol=1e-5), "sparse residual not applied at sp_idx"
861
- assert abs(float(d.abs().sum()) - float(val.abs().sum())) < 1e-4, "residual leaked"
862
- try:
863
- TRLinear([torch.zeros(2, 4, 2), torch.zeros(2, 3, 2), torch.zeros(2, 6, 2)],
864
- (4, 1, 2), (1, 3, 3))
865
- except ValueError:
866
- pass
867
- else:
868
- raise AssertionError("a degenerate split (mode = 1) was accepted")
869
- # gradients must reach every core
870
- lay.zero_grad()
871
- lay(x).sum().backward()
872
- for k, c in enumerate(lay.cores):
873
- assert c.grad is not None and float(c.grad.abs().sum()) > 0, f"core {k} got no gradient"
874
- # materialize_() must be a pure inference-speed cache: same weight, same forward output,
875
- # and -- the one bug this is actually guarding against -- the sparse residual must not
876
- # get added twice once SparseAugTRLinear.weight() is short-circuited by the cache.
877
- pre = lay.weight().clone()
878
- lay.materialize_()
879
- assert lay._cached_weight is not None, "materialize_() did not populate the cache"
880
- assert torch.allclose(lay.weight(), pre, atol=1e-6), "materialize_() changed weight()"
881
- assert torch.allclose(lay(x), x @ ref.T, atol=1e-4), "forward != x W^T after materialize_()"
882
- lay.unmaterialize_()
883
- assert lay._cached_weight is None, "unmaterialize_() left the cache populated"
884
- sl_ref = sl.weight().clone()
885
- sl.materialize_()
886
- assert torch.allclose(sl.weight(), sl_ref, atol=1e-6), \
887
- "materialized SparseAugTRLinear.weight() differs -- sparse residual likely double-added"
888
- print("TRLinear self-test PASSED (weight matches contraction, chunking exact, forward "
889
- "correct, sparse localised, degenerate split refused, all cores differentiable, "
890
- "materialize_() cache exact and idempotent)")