JorgN commited on
Commit
78a06fd
·
verified ·
1 Parent(s): 680751a

PNN V4.4 preview: 1-bit weights and 1-bit activations

Browse files
Files changed (3) hide show
  1. README.md +38 -0
  2. config.json +777 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: proprietary
4
+ license_link: https://primeneural.net
5
+ library_name: pnn
6
+ base_model: prithivMLmods/Gender-Classifier-Mini
7
+ tags: [pnn, sparse, int1, binary-activations, preview, safetensors]
8
+ ---
9
+
10
+ # Gender-Classifier-Mini · PNN 50 % · 1-bit weights and 1-bit activations (V4.4 preview)
11
+
12
+ **Preview.** This file uses the PNN V4.4 format (1-bit activations), which is not released yet. It loads only with a
13
+ PNN package that has the V4.4 preview switched on; released packages (V4.3) refuse it. It is not offered for
14
+ inference on primeneural.net until V4.4 is released.
15
+
16
+ A Prime Neural Network (PNN) version of [prithivMLmods/Gender-Classifier-Mini](https://huggingface.co/prithivMLmods/Gender-Classifier-Mini),
17
+ made by [primeneural.net](https://primeneural.net) from its 1-bit model
18
+ [PrimeNeural/Gender-Classifier-Mini-pnn-d50-1bit-j30](https://huggingface.co/PrimeNeural/Gender-Classifier-Mini-pnn-d50-1bit-j30).
19
+ 72 linear layers of the encoder are PNN layers at 50 % density: in each layer every output reads a fixed, structured
20
+ set of inputs, the same number for every output, and no index is stored. Each connection is one bit, its sign, with
21
+ an FP16 scale per input and per output. In 60 of them (attention q, k, v and output projections, first feed-forward layer) the
22
+ inputs are 1 bit as well: each input is compared with a trained threshold (`act_threshold`, FP16 per input), so the
23
+ layer is an XOR and a bit count. The second feed-forward layer of each block keeps float inputs.
24
+
25
+ | | |
26
+ |---|---|
27
+ | Original model | [prithivMLmods/Gender-Classifier-Mini](https://huggingface.co/prithivMLmods/Gender-Classifier-Mini) |
28
+ | PNN layers | 72 at 50 % density, 1-bit weights; 60 of them with 1-bit inputs |
29
+ | Agreement with the original model (top-1, 2,000 held-out FairFace images) | **84.8 %** (1-bit weights alone: 85.5 %) |
30
+ | Gender accuracy on the same images | 82.5 % (original 89.4 %, 1-bit weights alone 82.7 %) |
31
+ | Distillation | from the 1-bit model above: 1-bit inputs switched on with calibrated thresholds, then 3 epochs on HuggingFaceM4/FairFace (logit and hidden-state matching against the original; weights, scales and thresholds trained) |
32
+ | Model file | 21.7 MB (1-bit PNN layers; the pooling head and patch embedding dense, FP16) |
33
+
34
+ Accuracy was measured on the trained state; the file stores scales and thresholds in FP16, and the kernel library
35
+ runs the 1-bit-input layers exactly on those values.
36
+
37
+ Loading requires the PNN package (evaluation licence: info@primeneural.net).
38
+ © PreciseStatistics GmbH (Prime Neural Networks) · Patent pending (US 19/685,168).
config.json ADDED
@@ -0,0 +1,777 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "prithivMLmods/Gender-Classifier-Mini",
3
+ "density": 0.5,
4
+ "pnn_preview": "V4.4 (1-bit activations)",
5
+ "quantization_config": {
6
+ "quant_method": "pnn",
7
+ "format": "binary-packed",
8
+ "quantization_status": "compressed",
9
+ "config_groups": {
10
+ "group_0": {
11
+ "targets": [
12
+ "vision_model.encoder.layers.0.mlp.fc2",
13
+ "vision_model.encoder.layers.1.mlp.fc2",
14
+ "vision_model.encoder.layers.10.mlp.fc2",
15
+ "vision_model.encoder.layers.11.mlp.fc2",
16
+ "vision_model.encoder.layers.2.mlp.fc2",
17
+ "vision_model.encoder.layers.3.mlp.fc2",
18
+ "vision_model.encoder.layers.4.mlp.fc2",
19
+ "vision_model.encoder.layers.5.mlp.fc2",
20
+ "vision_model.encoder.layers.6.mlp.fc2",
21
+ "vision_model.encoder.layers.7.mlp.fc2",
22
+ "vision_model.encoder.layers.8.mlp.fc2",
23
+ "vision_model.encoder.layers.9.mlp.fc2"
24
+ ],
25
+ "weights": {
26
+ "num_bits": 1,
27
+ "type": "binary",
28
+ "symmetric": true,
29
+ "strategy": "channel",
30
+ "dynamic": false,
31
+ "encoding": "sign bit, 1 = +1, 0 = -1, little-endian within each byte",
32
+ "scales": "fp16 per input (weight_scale_in) and per output (weight_scale_out)"
33
+ },
34
+ "input_activations": null,
35
+ "output_activations": null
36
+ },
37
+ "group_1": {
38
+ "targets": [
39
+ "vision_model.encoder.layers.0.mlp.fc1",
40
+ "vision_model.encoder.layers.0.self_attn.k_proj",
41
+ "vision_model.encoder.layers.0.self_attn.out_proj",
42
+ "vision_model.encoder.layers.0.self_attn.q_proj",
43
+ "vision_model.encoder.layers.0.self_attn.v_proj",
44
+ "vision_model.encoder.layers.1.mlp.fc1",
45
+ "vision_model.encoder.layers.1.self_attn.k_proj",
46
+ "vision_model.encoder.layers.1.self_attn.out_proj",
47
+ "vision_model.encoder.layers.1.self_attn.q_proj",
48
+ "vision_model.encoder.layers.1.self_attn.v_proj",
49
+ "vision_model.encoder.layers.10.mlp.fc1",
50
+ "vision_model.encoder.layers.10.self_attn.k_proj",
51
+ "vision_model.encoder.layers.10.self_attn.out_proj",
52
+ "vision_model.encoder.layers.10.self_attn.q_proj",
53
+ "vision_model.encoder.layers.10.self_attn.v_proj",
54
+ "vision_model.encoder.layers.11.mlp.fc1",
55
+ "vision_model.encoder.layers.11.self_attn.k_proj",
56
+ "vision_model.encoder.layers.11.self_attn.out_proj",
57
+ "vision_model.encoder.layers.11.self_attn.q_proj",
58
+ "vision_model.encoder.layers.11.self_attn.v_proj",
59
+ "vision_model.encoder.layers.2.mlp.fc1",
60
+ "vision_model.encoder.layers.2.self_attn.k_proj",
61
+ "vision_model.encoder.layers.2.self_attn.out_proj",
62
+ "vision_model.encoder.layers.2.self_attn.q_proj",
63
+ "vision_model.encoder.layers.2.self_attn.v_proj",
64
+ "vision_model.encoder.layers.3.mlp.fc1",
65
+ "vision_model.encoder.layers.3.self_attn.k_proj",
66
+ "vision_model.encoder.layers.3.self_attn.out_proj",
67
+ "vision_model.encoder.layers.3.self_attn.q_proj",
68
+ "vision_model.encoder.layers.3.self_attn.v_proj",
69
+ "vision_model.encoder.layers.4.mlp.fc1",
70
+ "vision_model.encoder.layers.4.self_attn.k_proj",
71
+ "vision_model.encoder.layers.4.self_attn.out_proj",
72
+ "vision_model.encoder.layers.4.self_attn.q_proj",
73
+ "vision_model.encoder.layers.4.self_attn.v_proj",
74
+ "vision_model.encoder.layers.5.mlp.fc1",
75
+ "vision_model.encoder.layers.5.self_attn.k_proj",
76
+ "vision_model.encoder.layers.5.self_attn.out_proj",
77
+ "vision_model.encoder.layers.5.self_attn.q_proj",
78
+ "vision_model.encoder.layers.5.self_attn.v_proj",
79
+ "vision_model.encoder.layers.6.mlp.fc1",
80
+ "vision_model.encoder.layers.6.self_attn.k_proj",
81
+ "vision_model.encoder.layers.6.self_attn.out_proj",
82
+ "vision_model.encoder.layers.6.self_attn.q_proj",
83
+ "vision_model.encoder.layers.6.self_attn.v_proj",
84
+ "vision_model.encoder.layers.7.mlp.fc1",
85
+ "vision_model.encoder.layers.7.self_attn.k_proj",
86
+ "vision_model.encoder.layers.7.self_attn.out_proj",
87
+ "vision_model.encoder.layers.7.self_attn.q_proj",
88
+ "vision_model.encoder.layers.7.self_attn.v_proj",
89
+ "vision_model.encoder.layers.8.mlp.fc1",
90
+ "vision_model.encoder.layers.8.self_attn.k_proj",
91
+ "vision_model.encoder.layers.8.self_attn.out_proj",
92
+ "vision_model.encoder.layers.8.self_attn.q_proj",
93
+ "vision_model.encoder.layers.8.self_attn.v_proj",
94
+ "vision_model.encoder.layers.9.mlp.fc1",
95
+ "vision_model.encoder.layers.9.self_attn.k_proj",
96
+ "vision_model.encoder.layers.9.self_attn.out_proj",
97
+ "vision_model.encoder.layers.9.self_attn.q_proj",
98
+ "vision_model.encoder.layers.9.self_attn.v_proj"
99
+ ],
100
+ "weights": {
101
+ "num_bits": 1,
102
+ "type": "binary",
103
+ "symmetric": true,
104
+ "strategy": "channel",
105
+ "dynamic": false,
106
+ "encoding": "sign bit, 1 = +1, 0 = -1, little-endian within each byte",
107
+ "scales": "fp16 per input (weight_scale_in) and per output (weight_scale_out)"
108
+ },
109
+ "input_activations": {
110
+ "num_bits": 1,
111
+ "type": "binary",
112
+ "dynamic": false,
113
+ "encoding": "x_j -> +1 where x_j >= act_threshold[j], else -1",
114
+ "thresholds": "fp16 per input (act_threshold)"
115
+ },
116
+ "output_activations": null
117
+ }
118
+ },
119
+ "ignore": [
120
+ "vision_model.embeddings.patch_embedding",
121
+ "vision_model.head.attention.out_proj",
122
+ "vision_model.head.mlp.fc1",
123
+ "vision_model.head.mlp.fc2",
124
+ "classifier"
125
+ ],
126
+ "kv_cache_scheme": null
127
+ },
128
+ "pnn": {
129
+ "schema": "pnn-safetensors/1",
130
+ "pnn_version": "V4.3",
131
+ "requires_pnn": "V4.4",
132
+ "runtime_cpu_abi": 3,
133
+ "weight_dtype": "int1",
134
+ "weight_encoding": "u1: one sign bit per connection, 1 = +1, 0 = -1, eight per byte of weight_packed (uint8, OUT x ceil(R/8)), connection t at bit (t mod 8) of byte t div 8, low bits first; y = weight_scale_out * (S . (weight_scale_in * x)) + bias with S the +-1 signs, one fp16 scale per input (weight_scale_in) and per output (weight_scale_out)",
135
+ "activation_encoding": "layers with \"act\": \"b1\": 1-bit, input j is +1 where x_j >= act_threshold[j] (fp16 per input), else -1; y = weight_scale_out * (S . a) + bias, computed as XOR + bit count; other layers: float inputs",
136
+ "weight_layout": "compact: each PNN layer stores only its own weights, (OUT, R) or (OUT, R, kh, kw), in tap order; no index list -- the connections are computed from (in, out, density, version) by the PNN package",
137
+ "layers": {
138
+ "vision_model.encoder.layers.0.mlp.fc1": {
139
+ "class": "PNNLinearCirculant",
140
+ "in": 768,
141
+ "out": 3072,
142
+ "R": 384,
143
+ "density": 0.5,
144
+ "version": "v4.1",
145
+ "act": "b1"
146
+ },
147
+ "vision_model.encoder.layers.0.mlp.fc2": {
148
+ "class": "PNNLinearCirculant",
149
+ "in": 3072,
150
+ "out": 768,
151
+ "R": 1536,
152
+ "density": 0.5,
153
+ "version": "v4.1"
154
+ },
155
+ "vision_model.encoder.layers.0.self_attn.k_proj": {
156
+ "class": "PNNLinearCirculant",
157
+ "in": 768,
158
+ "out": 768,
159
+ "R": 384,
160
+ "density": 0.5,
161
+ "version": "v4.1",
162
+ "act": "b1"
163
+ },
164
+ "vision_model.encoder.layers.0.self_attn.out_proj": {
165
+ "class": "PNNLinearCirculant",
166
+ "in": 768,
167
+ "out": 768,
168
+ "R": 384,
169
+ "density": 0.5,
170
+ "version": "v4.1",
171
+ "act": "b1"
172
+ },
173
+ "vision_model.encoder.layers.0.self_attn.q_proj": {
174
+ "class": "PNNLinearCirculant",
175
+ "in": 768,
176
+ "out": 768,
177
+ "R": 384,
178
+ "density": 0.5,
179
+ "version": "v4.1",
180
+ "act": "b1"
181
+ },
182
+ "vision_model.encoder.layers.0.self_attn.v_proj": {
183
+ "class": "PNNLinearCirculant",
184
+ "in": 768,
185
+ "out": 768,
186
+ "R": 384,
187
+ "density": 0.5,
188
+ "version": "v4.1",
189
+ "act": "b1"
190
+ },
191
+ "vision_model.encoder.layers.1.mlp.fc1": {
192
+ "class": "PNNLinearCirculant",
193
+ "in": 768,
194
+ "out": 3072,
195
+ "R": 384,
196
+ "density": 0.5,
197
+ "version": "v4.1",
198
+ "act": "b1"
199
+ },
200
+ "vision_model.encoder.layers.1.mlp.fc2": {
201
+ "class": "PNNLinearCirculant",
202
+ "in": 3072,
203
+ "out": 768,
204
+ "R": 1536,
205
+ "density": 0.5,
206
+ "version": "v4.1"
207
+ },
208
+ "vision_model.encoder.layers.1.self_attn.k_proj": {
209
+ "class": "PNNLinearCirculant",
210
+ "in": 768,
211
+ "out": 768,
212
+ "R": 384,
213
+ "density": 0.5,
214
+ "version": "v4.1",
215
+ "act": "b1"
216
+ },
217
+ "vision_model.encoder.layers.1.self_attn.out_proj": {
218
+ "class": "PNNLinearCirculant",
219
+ "in": 768,
220
+ "out": 768,
221
+ "R": 384,
222
+ "density": 0.5,
223
+ "version": "v4.1",
224
+ "act": "b1"
225
+ },
226
+ "vision_model.encoder.layers.1.self_attn.q_proj": {
227
+ "class": "PNNLinearCirculant",
228
+ "in": 768,
229
+ "out": 768,
230
+ "R": 384,
231
+ "density": 0.5,
232
+ "version": "v4.1",
233
+ "act": "b1"
234
+ },
235
+ "vision_model.encoder.layers.1.self_attn.v_proj": {
236
+ "class": "PNNLinearCirculant",
237
+ "in": 768,
238
+ "out": 768,
239
+ "R": 384,
240
+ "density": 0.5,
241
+ "version": "v4.1",
242
+ "act": "b1"
243
+ },
244
+ "vision_model.encoder.layers.10.mlp.fc1": {
245
+ "class": "PNNLinearCirculant",
246
+ "in": 768,
247
+ "out": 3072,
248
+ "R": 384,
249
+ "density": 0.5,
250
+ "version": "v4.1",
251
+ "act": "b1"
252
+ },
253
+ "vision_model.encoder.layers.10.mlp.fc2": {
254
+ "class": "PNNLinearCirculant",
255
+ "in": 3072,
256
+ "out": 768,
257
+ "R": 1536,
258
+ "density": 0.5,
259
+ "version": "v4.1"
260
+ },
261
+ "vision_model.encoder.layers.10.self_attn.k_proj": {
262
+ "class": "PNNLinearCirculant",
263
+ "in": 768,
264
+ "out": 768,
265
+ "R": 384,
266
+ "density": 0.5,
267
+ "version": "v4.1",
268
+ "act": "b1"
269
+ },
270
+ "vision_model.encoder.layers.10.self_attn.out_proj": {
271
+ "class": "PNNLinearCirculant",
272
+ "in": 768,
273
+ "out": 768,
274
+ "R": 384,
275
+ "density": 0.5,
276
+ "version": "v4.1",
277
+ "act": "b1"
278
+ },
279
+ "vision_model.encoder.layers.10.self_attn.q_proj": {
280
+ "class": "PNNLinearCirculant",
281
+ "in": 768,
282
+ "out": 768,
283
+ "R": 384,
284
+ "density": 0.5,
285
+ "version": "v4.1",
286
+ "act": "b1"
287
+ },
288
+ "vision_model.encoder.layers.10.self_attn.v_proj": {
289
+ "class": "PNNLinearCirculant",
290
+ "in": 768,
291
+ "out": 768,
292
+ "R": 384,
293
+ "density": 0.5,
294
+ "version": "v4.1",
295
+ "act": "b1"
296
+ },
297
+ "vision_model.encoder.layers.11.mlp.fc1": {
298
+ "class": "PNNLinearCirculant",
299
+ "in": 768,
300
+ "out": 3072,
301
+ "R": 384,
302
+ "density": 0.5,
303
+ "version": "v4.1",
304
+ "act": "b1"
305
+ },
306
+ "vision_model.encoder.layers.11.mlp.fc2": {
307
+ "class": "PNNLinearCirculant",
308
+ "in": 3072,
309
+ "out": 768,
310
+ "R": 1536,
311
+ "density": 0.5,
312
+ "version": "v4.1"
313
+ },
314
+ "vision_model.encoder.layers.11.self_attn.k_proj": {
315
+ "class": "PNNLinearCirculant",
316
+ "in": 768,
317
+ "out": 768,
318
+ "R": 384,
319
+ "density": 0.5,
320
+ "version": "v4.1",
321
+ "act": "b1"
322
+ },
323
+ "vision_model.encoder.layers.11.self_attn.out_proj": {
324
+ "class": "PNNLinearCirculant",
325
+ "in": 768,
326
+ "out": 768,
327
+ "R": 384,
328
+ "density": 0.5,
329
+ "version": "v4.1",
330
+ "act": "b1"
331
+ },
332
+ "vision_model.encoder.layers.11.self_attn.q_proj": {
333
+ "class": "PNNLinearCirculant",
334
+ "in": 768,
335
+ "out": 768,
336
+ "R": 384,
337
+ "density": 0.5,
338
+ "version": "v4.1",
339
+ "act": "b1"
340
+ },
341
+ "vision_model.encoder.layers.11.self_attn.v_proj": {
342
+ "class": "PNNLinearCirculant",
343
+ "in": 768,
344
+ "out": 768,
345
+ "R": 384,
346
+ "density": 0.5,
347
+ "version": "v4.1",
348
+ "act": "b1"
349
+ },
350
+ "vision_model.encoder.layers.2.mlp.fc1": {
351
+ "class": "PNNLinearCirculant",
352
+ "in": 768,
353
+ "out": 3072,
354
+ "R": 384,
355
+ "density": 0.5,
356
+ "version": "v4.1",
357
+ "act": "b1"
358
+ },
359
+ "vision_model.encoder.layers.2.mlp.fc2": {
360
+ "class": "PNNLinearCirculant",
361
+ "in": 3072,
362
+ "out": 768,
363
+ "R": 1536,
364
+ "density": 0.5,
365
+ "version": "v4.1"
366
+ },
367
+ "vision_model.encoder.layers.2.self_attn.k_proj": {
368
+ "class": "PNNLinearCirculant",
369
+ "in": 768,
370
+ "out": 768,
371
+ "R": 384,
372
+ "density": 0.5,
373
+ "version": "v4.1",
374
+ "act": "b1"
375
+ },
376
+ "vision_model.encoder.layers.2.self_attn.out_proj": {
377
+ "class": "PNNLinearCirculant",
378
+ "in": 768,
379
+ "out": 768,
380
+ "R": 384,
381
+ "density": 0.5,
382
+ "version": "v4.1",
383
+ "act": "b1"
384
+ },
385
+ "vision_model.encoder.layers.2.self_attn.q_proj": {
386
+ "class": "PNNLinearCirculant",
387
+ "in": 768,
388
+ "out": 768,
389
+ "R": 384,
390
+ "density": 0.5,
391
+ "version": "v4.1",
392
+ "act": "b1"
393
+ },
394
+ "vision_model.encoder.layers.2.self_attn.v_proj": {
395
+ "class": "PNNLinearCirculant",
396
+ "in": 768,
397
+ "out": 768,
398
+ "R": 384,
399
+ "density": 0.5,
400
+ "version": "v4.1",
401
+ "act": "b1"
402
+ },
403
+ "vision_model.encoder.layers.3.mlp.fc1": {
404
+ "class": "PNNLinearCirculant",
405
+ "in": 768,
406
+ "out": 3072,
407
+ "R": 384,
408
+ "density": 0.5,
409
+ "version": "v4.1",
410
+ "act": "b1"
411
+ },
412
+ "vision_model.encoder.layers.3.mlp.fc2": {
413
+ "class": "PNNLinearCirculant",
414
+ "in": 3072,
415
+ "out": 768,
416
+ "R": 1536,
417
+ "density": 0.5,
418
+ "version": "v4.1"
419
+ },
420
+ "vision_model.encoder.layers.3.self_attn.k_proj": {
421
+ "class": "PNNLinearCirculant",
422
+ "in": 768,
423
+ "out": 768,
424
+ "R": 384,
425
+ "density": 0.5,
426
+ "version": "v4.1",
427
+ "act": "b1"
428
+ },
429
+ "vision_model.encoder.layers.3.self_attn.out_proj": {
430
+ "class": "PNNLinearCirculant",
431
+ "in": 768,
432
+ "out": 768,
433
+ "R": 384,
434
+ "density": 0.5,
435
+ "version": "v4.1",
436
+ "act": "b1"
437
+ },
438
+ "vision_model.encoder.layers.3.self_attn.q_proj": {
439
+ "class": "PNNLinearCirculant",
440
+ "in": 768,
441
+ "out": 768,
442
+ "R": 384,
443
+ "density": 0.5,
444
+ "version": "v4.1",
445
+ "act": "b1"
446
+ },
447
+ "vision_model.encoder.layers.3.self_attn.v_proj": {
448
+ "class": "PNNLinearCirculant",
449
+ "in": 768,
450
+ "out": 768,
451
+ "R": 384,
452
+ "density": 0.5,
453
+ "version": "v4.1",
454
+ "act": "b1"
455
+ },
456
+ "vision_model.encoder.layers.4.mlp.fc1": {
457
+ "class": "PNNLinearCirculant",
458
+ "in": 768,
459
+ "out": 3072,
460
+ "R": 384,
461
+ "density": 0.5,
462
+ "version": "v4.1",
463
+ "act": "b1"
464
+ },
465
+ "vision_model.encoder.layers.4.mlp.fc2": {
466
+ "class": "PNNLinearCirculant",
467
+ "in": 3072,
468
+ "out": 768,
469
+ "R": 1536,
470
+ "density": 0.5,
471
+ "version": "v4.1"
472
+ },
473
+ "vision_model.encoder.layers.4.self_attn.k_proj": {
474
+ "class": "PNNLinearCirculant",
475
+ "in": 768,
476
+ "out": 768,
477
+ "R": 384,
478
+ "density": 0.5,
479
+ "version": "v4.1",
480
+ "act": "b1"
481
+ },
482
+ "vision_model.encoder.layers.4.self_attn.out_proj": {
483
+ "class": "PNNLinearCirculant",
484
+ "in": 768,
485
+ "out": 768,
486
+ "R": 384,
487
+ "density": 0.5,
488
+ "version": "v4.1",
489
+ "act": "b1"
490
+ },
491
+ "vision_model.encoder.layers.4.self_attn.q_proj": {
492
+ "class": "PNNLinearCirculant",
493
+ "in": 768,
494
+ "out": 768,
495
+ "R": 384,
496
+ "density": 0.5,
497
+ "version": "v4.1",
498
+ "act": "b1"
499
+ },
500
+ "vision_model.encoder.layers.4.self_attn.v_proj": {
501
+ "class": "PNNLinearCirculant",
502
+ "in": 768,
503
+ "out": 768,
504
+ "R": 384,
505
+ "density": 0.5,
506
+ "version": "v4.1",
507
+ "act": "b1"
508
+ },
509
+ "vision_model.encoder.layers.5.mlp.fc1": {
510
+ "class": "PNNLinearCirculant",
511
+ "in": 768,
512
+ "out": 3072,
513
+ "R": 384,
514
+ "density": 0.5,
515
+ "version": "v4.1",
516
+ "act": "b1"
517
+ },
518
+ "vision_model.encoder.layers.5.mlp.fc2": {
519
+ "class": "PNNLinearCirculant",
520
+ "in": 3072,
521
+ "out": 768,
522
+ "R": 1536,
523
+ "density": 0.5,
524
+ "version": "v4.1"
525
+ },
526
+ "vision_model.encoder.layers.5.self_attn.k_proj": {
527
+ "class": "PNNLinearCirculant",
528
+ "in": 768,
529
+ "out": 768,
530
+ "R": 384,
531
+ "density": 0.5,
532
+ "version": "v4.1",
533
+ "act": "b1"
534
+ },
535
+ "vision_model.encoder.layers.5.self_attn.out_proj": {
536
+ "class": "PNNLinearCirculant",
537
+ "in": 768,
538
+ "out": 768,
539
+ "R": 384,
540
+ "density": 0.5,
541
+ "version": "v4.1",
542
+ "act": "b1"
543
+ },
544
+ "vision_model.encoder.layers.5.self_attn.q_proj": {
545
+ "class": "PNNLinearCirculant",
546
+ "in": 768,
547
+ "out": 768,
548
+ "R": 384,
549
+ "density": 0.5,
550
+ "version": "v4.1",
551
+ "act": "b1"
552
+ },
553
+ "vision_model.encoder.layers.5.self_attn.v_proj": {
554
+ "class": "PNNLinearCirculant",
555
+ "in": 768,
556
+ "out": 768,
557
+ "R": 384,
558
+ "density": 0.5,
559
+ "version": "v4.1",
560
+ "act": "b1"
561
+ },
562
+ "vision_model.encoder.layers.6.mlp.fc1": {
563
+ "class": "PNNLinearCirculant",
564
+ "in": 768,
565
+ "out": 3072,
566
+ "R": 384,
567
+ "density": 0.5,
568
+ "version": "v4.1",
569
+ "act": "b1"
570
+ },
571
+ "vision_model.encoder.layers.6.mlp.fc2": {
572
+ "class": "PNNLinearCirculant",
573
+ "in": 3072,
574
+ "out": 768,
575
+ "R": 1536,
576
+ "density": 0.5,
577
+ "version": "v4.1"
578
+ },
579
+ "vision_model.encoder.layers.6.self_attn.k_proj": {
580
+ "class": "PNNLinearCirculant",
581
+ "in": 768,
582
+ "out": 768,
583
+ "R": 384,
584
+ "density": 0.5,
585
+ "version": "v4.1",
586
+ "act": "b1"
587
+ },
588
+ "vision_model.encoder.layers.6.self_attn.out_proj": {
589
+ "class": "PNNLinearCirculant",
590
+ "in": 768,
591
+ "out": 768,
592
+ "R": 384,
593
+ "density": 0.5,
594
+ "version": "v4.1",
595
+ "act": "b1"
596
+ },
597
+ "vision_model.encoder.layers.6.self_attn.q_proj": {
598
+ "class": "PNNLinearCirculant",
599
+ "in": 768,
600
+ "out": 768,
601
+ "R": 384,
602
+ "density": 0.5,
603
+ "version": "v4.1",
604
+ "act": "b1"
605
+ },
606
+ "vision_model.encoder.layers.6.self_attn.v_proj": {
607
+ "class": "PNNLinearCirculant",
608
+ "in": 768,
609
+ "out": 768,
610
+ "R": 384,
611
+ "density": 0.5,
612
+ "version": "v4.1",
613
+ "act": "b1"
614
+ },
615
+ "vision_model.encoder.layers.7.mlp.fc1": {
616
+ "class": "PNNLinearCirculant",
617
+ "in": 768,
618
+ "out": 3072,
619
+ "R": 384,
620
+ "density": 0.5,
621
+ "version": "v4.1",
622
+ "act": "b1"
623
+ },
624
+ "vision_model.encoder.layers.7.mlp.fc2": {
625
+ "class": "PNNLinearCirculant",
626
+ "in": 3072,
627
+ "out": 768,
628
+ "R": 1536,
629
+ "density": 0.5,
630
+ "version": "v4.1"
631
+ },
632
+ "vision_model.encoder.layers.7.self_attn.k_proj": {
633
+ "class": "PNNLinearCirculant",
634
+ "in": 768,
635
+ "out": 768,
636
+ "R": 384,
637
+ "density": 0.5,
638
+ "version": "v4.1",
639
+ "act": "b1"
640
+ },
641
+ "vision_model.encoder.layers.7.self_attn.out_proj": {
642
+ "class": "PNNLinearCirculant",
643
+ "in": 768,
644
+ "out": 768,
645
+ "R": 384,
646
+ "density": 0.5,
647
+ "version": "v4.1",
648
+ "act": "b1"
649
+ },
650
+ "vision_model.encoder.layers.7.self_attn.q_proj": {
651
+ "class": "PNNLinearCirculant",
652
+ "in": 768,
653
+ "out": 768,
654
+ "R": 384,
655
+ "density": 0.5,
656
+ "version": "v4.1",
657
+ "act": "b1"
658
+ },
659
+ "vision_model.encoder.layers.7.self_attn.v_proj": {
660
+ "class": "PNNLinearCirculant",
661
+ "in": 768,
662
+ "out": 768,
663
+ "R": 384,
664
+ "density": 0.5,
665
+ "version": "v4.1",
666
+ "act": "b1"
667
+ },
668
+ "vision_model.encoder.layers.8.mlp.fc1": {
669
+ "class": "PNNLinearCirculant",
670
+ "in": 768,
671
+ "out": 3072,
672
+ "R": 384,
673
+ "density": 0.5,
674
+ "version": "v4.1",
675
+ "act": "b1"
676
+ },
677
+ "vision_model.encoder.layers.8.mlp.fc2": {
678
+ "class": "PNNLinearCirculant",
679
+ "in": 3072,
680
+ "out": 768,
681
+ "R": 1536,
682
+ "density": 0.5,
683
+ "version": "v4.1"
684
+ },
685
+ "vision_model.encoder.layers.8.self_attn.k_proj": {
686
+ "class": "PNNLinearCirculant",
687
+ "in": 768,
688
+ "out": 768,
689
+ "R": 384,
690
+ "density": 0.5,
691
+ "version": "v4.1",
692
+ "act": "b1"
693
+ },
694
+ "vision_model.encoder.layers.8.self_attn.out_proj": {
695
+ "class": "PNNLinearCirculant",
696
+ "in": 768,
697
+ "out": 768,
698
+ "R": 384,
699
+ "density": 0.5,
700
+ "version": "v4.1",
701
+ "act": "b1"
702
+ },
703
+ "vision_model.encoder.layers.8.self_attn.q_proj": {
704
+ "class": "PNNLinearCirculant",
705
+ "in": 768,
706
+ "out": 768,
707
+ "R": 384,
708
+ "density": 0.5,
709
+ "version": "v4.1",
710
+ "act": "b1"
711
+ },
712
+ "vision_model.encoder.layers.8.self_attn.v_proj": {
713
+ "class": "PNNLinearCirculant",
714
+ "in": 768,
715
+ "out": 768,
716
+ "R": 384,
717
+ "density": 0.5,
718
+ "version": "v4.1",
719
+ "act": "b1"
720
+ },
721
+ "vision_model.encoder.layers.9.mlp.fc1": {
722
+ "class": "PNNLinearCirculant",
723
+ "in": 768,
724
+ "out": 3072,
725
+ "R": 384,
726
+ "density": 0.5,
727
+ "version": "v4.1",
728
+ "act": "b1"
729
+ },
730
+ "vision_model.encoder.layers.9.mlp.fc2": {
731
+ "class": "PNNLinearCirculant",
732
+ "in": 3072,
733
+ "out": 768,
734
+ "R": 1536,
735
+ "density": 0.5,
736
+ "version": "v4.1"
737
+ },
738
+ "vision_model.encoder.layers.9.self_attn.k_proj": {
739
+ "class": "PNNLinearCirculant",
740
+ "in": 768,
741
+ "out": 768,
742
+ "R": 384,
743
+ "density": 0.5,
744
+ "version": "v4.1",
745
+ "act": "b1"
746
+ },
747
+ "vision_model.encoder.layers.9.self_attn.out_proj": {
748
+ "class": "PNNLinearCirculant",
749
+ "in": 768,
750
+ "out": 768,
751
+ "R": 384,
752
+ "density": 0.5,
753
+ "version": "v4.1",
754
+ "act": "b1"
755
+ },
756
+ "vision_model.encoder.layers.9.self_attn.q_proj": {
757
+ "class": "PNNLinearCirculant",
758
+ "in": 768,
759
+ "out": 768,
760
+ "R": 384,
761
+ "density": 0.5,
762
+ "version": "v4.1",
763
+ "act": "b1"
764
+ },
765
+ "vision_model.encoder.layers.9.self_attn.v_proj": {
766
+ "class": "PNNLinearCirculant",
767
+ "in": 768,
768
+ "out": 768,
769
+ "R": 384,
770
+ "density": 0.5,
771
+ "version": "v4.1",
772
+ "act": "b1"
773
+ }
774
+ }
775
+ },
776
+ "torch_dtype": "float16"
777
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f85f4e346349096a3103ac2016efa2bde548756568702a5befc89d770d58d69
3
+ size 21703828