p-j-r-1-2-3 commited on
Commit
7a93eed
·
verified ·
1 Parent(s): 2ffbe34

add run w_bits_2

Browse files
applied/opt08_mint_quant/w_bits_2.summary.json ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "opt08_mint_quant/w_bits_2",
3
+ "tag": "w_bits_2",
4
+ "script": "opt08_mint_quant.py",
5
+ "script_sha256_16": "dd139bbe634ea732",
6
+ "hf_folder": "applied/opt08_mint_quant",
7
+ "priority": 2,
8
+ "note": "most aggressive weight quantization",
9
+ "phase": 10,
10
+ "n_phases": 10,
11
+ "method": "harmonic_matched",
12
+ "command": [
13
+ "/usr/bin/python3",
14
+ "-m",
15
+ "torch.distributed.run",
16
+ "--standalone",
17
+ "--nproc_per_node=2",
18
+ "/kaggle/working/scripts/opt08_mint_quant.py",
19
+ "--method",
20
+ "harmonic_matched",
21
+ "--data-root",
22
+ "/kaggle/working/data",
23
+ "--epochs",
24
+ "60",
25
+ "--seed",
26
+ "1234",
27
+ "--batch-size",
28
+ "64",
29
+ "--event-eval",
30
+ "--no-resume",
31
+ "--decision-margin",
32
+ "2.0",
33
+ "--hub-dir",
34
+ "/kaggle/working/hub/opt08_mint_quant/w_bits_2",
35
+ "--keep-epoch-weights",
36
+ "1",
37
+ "--resplit",
38
+ "block",
39
+ "--drop-rest",
40
+ "--bench",
41
+ "--w-bits",
42
+ "2"
43
+ ],
44
+ "flags": [
45
+ "--w-bits",
46
+ "2"
47
+ ],
48
+ "epochs_requested": 60,
49
+ "gpus": 2,
50
+ "relative_epoch_cost": 1.0,
51
+ "exit_code": 0,
52
+ "status": "ok",
53
+ "duration_s": 313.7,
54
+ "started_utc": "2026-08-23T05:13:04.031271+00:00",
55
+ "finished_utc": "2026-08-23T05:18:17.741632+00:00",
56
+ "optimization_summary": {
57
+ "optimization": "mint_quant",
58
+ "research_section": "4. Membrane-Potential Memory-Wall Optimizations (multiplier-less integer quantization)",
59
+ "reference": "Yin et al., MINT: Multiplier-less INTeger Quantization for Energy Efficient Spiking Neural Networks, arXiv:2305.09850 (ASP-DAC 2024)",
60
+ "script": "opt08_mint_quant.py",
61
+ "baseline_mode": false,
62
+ "method": "harmonic_matched",
63
+ "accuracy": {
64
+ "test_acc": 0.03214285714285714,
65
+ "test_target_acc": 0.03214285714285714,
66
+ "best_val_acc": 0.23142857142857143
67
+ },
68
+ "efficiency": {
69
+ "spikes_per_inference": null,
70
+ "syn_ops_per_inference": 64874.41061282468,
71
+ "dense_macs_per_inference": 122675200.0,
72
+ "event_fraction_of_dense": 0.0005288306896000551,
73
+ "syn_ops_per_inference_dense_fanout": 63605566.99918831,
74
+ "weight_sparsity": 0.9991204416214524,
75
+ "effective_ticks": 84.10142857142857,
76
+ "num_ticks": 100,
77
+ "membrane_bytes_per_inference": 0,
78
+ "weight_bytes": 306688,
79
+ "input_raster_bytes": null,
80
+ "train_ms_per_step": 85.21973990000333,
81
+ "infer_ms_per_sample": 0.5962876021874308,
82
+ "peak_vram_mb": 2835.795968
83
+ },
84
+ "optimization_specific": {
85
+ "w_bits": 2,
86
+ "u_bits": 2,
87
+ "leak_shift": 0,
88
+ "beta_eff": 1.0,
89
+ "qat": true,
90
+ "batchnorm": true,
91
+ "membrane_memory_reduction_x": 16.0,
92
+ "weight_memory_reduction_x": 16.0,
93
+ "membrane_bytes_per_inference": 28200.0,
94
+ "working_set_bytes": 306970.0,
95
+ "baseline_working_set_bytes": 4911520.0,
96
+ "l2_cache_fits": true,
97
+ "baseline_l2_cache_fits": false,
98
+ "l2_budget_bytes": 2097152,
99
+ "membrane_saturation_frac": 0.008376689937943263,
100
+ "acc_vs_ubits": {
101
+ "2": 0.03214285714285714,
102
+ "4": 0.03785714285714286,
103
+ "8": 0.03357142857142857,
104
+ "0": 0.03428571428571429
105
+ },
106
+ "bits_sweep_rows": [
107
+ {
108
+ "u_bits": 2,
109
+ "acc": 0.03214285714285714,
110
+ "target_acc": 0.03214285714285714,
111
+ "membrane_bytes_per_neuron_per_tick": 0.25,
112
+ "membrane_memory_reduction_x": 16.0,
113
+ "membrane_saturation_frac": 0.007398326684397164,
114
+ "acc_drop_vs_fp32": 0.0021428571428571477
115
+ },
116
+ {
117
+ "u_bits": 4,
118
+ "acc": 0.03785714285714286,
119
+ "target_acc": 0.03785714285714286,
120
+ "membrane_bytes_per_neuron_per_tick": 0.5,
121
+ "membrane_memory_reduction_x": 8.0,
122
+ "membrane_saturation_frac": 0.05461069093528369,
123
+ "acc_drop_vs_fp32": -0.0035714285714285726
124
+ },
125
+ {
126
+ "u_bits": 8,
127
+ "acc": 0.03357142857142857,
128
+ "target_acc": 0.03357142857142857,
129
+ "membrane_bytes_per_neuron_per_tick": 1.0,
130
+ "membrane_memory_reduction_x": 4.0,
131
+ "membrane_saturation_frac": 0.1291535073138298,
132
+ "acc_drop_vs_fp32": 0.0007142857142857159
133
+ },
134
+ {
135
+ "u_bits": 0,
136
+ "acc": 0.03428571428571429,
137
+ "target_acc": 0.03428571428571429,
138
+ "membrane_bytes_per_neuron_per_tick": 4.0,
139
+ "membrane_memory_reduction_x": 1.0,
140
+ "membrane_saturation_frac": null,
141
+ "acc_drop_vs_fp32": 0.0
142
+ }
143
+ ],
144
+ "fp32_membrane_acc": 0.03428571428571429,
145
+ "per_layer_scales": [
146
+ {
147
+ "layer": 0,
148
+ "weight_scale": 0.1566811352968216,
149
+ "membrane_scale": 1.0,
150
+ "shared_scale_gauge_factor": 6.382389290871355
151
+ },
152
+ {
153
+ "layer": 1,
154
+ "weight_scale": 0.1379482001066208,
155
+ "membrane_scale": 1.0,
156
+ "shared_scale_gauge_factor": 7.249097844169735
157
+ },
158
+ {
159
+ "layer": 2,
160
+ "weight_scale": 0.07789017260074615,
161
+ "membrane_scale": 1.0,
162
+ "shared_scale_gauge_factor": 12.83859011490264
163
+ },
164
+ {
165
+ "layer": 3,
166
+ "weight_scale": 0.1205046996474266,
167
+ "membrane_scale": 1.0,
168
+ "shared_scale_gauge_factor": 8.298431537739242
169
+ }
170
+ ],
171
+ "shared_scale_note": "weight grid and membrane grid are the same grid up to a per-layer positive scalar that BatchNorm absorbs exactly; exact only with --batchnorm on",
172
+ "multiplier_less_compare": true,
173
+ "wall_clock_caveat": "this reference kernel computes in fp32 registers, so the traffic win does not appear in train_ms_per_step; a fixed-point core is where it becomes energy"
174
+ },
175
+ "config": {
176
+ "method": "harmonic_matched",
177
+ "data_root": "/kaggle/working/data",
178
+ "subjects": "",
179
+ "blocks": "",
180
+ "limit": 0,
181
+ "drop_rest": true,
182
+ "resplit": "block",
183
+ "test_blocks": "6",
184
+ "class_weight": false,
185
+ "epochs": 60,
186
+ "batch_size": 64,
187
+ "lr": 0.002,
188
+ "weight_decay": 0.0005,
189
+ "grad_clip": 5.0,
190
+ "num_bins": 100,
191
+ "window_sec": 5.0,
192
+ "hidden": "512,256",
193
+ "freq_groups": 8,
194
+ "dropout": 0.3,
195
+ "spike_drop": 0.1,
196
+ "time_jitter": 2,
197
+ "label_smoothing": 0.05,
198
+ "no_batchnorm": false,
199
+ "binary_input": false,
200
+ "beta": 1.0,
201
+ "thresh": 1.0,
202
+ "window": 0.5,
203
+ "gain": 1.0,
204
+ "alpha": 0.9,
205
+ "readout": "spikecount",
206
+ "fake_quant": 0,
207
+ "amp": false,
208
+ "spike_reg": 0.0,
209
+ "event_eval": true,
210
+ "decision_margin": 2.0,
211
+ "export": false,
212
+ "seed": 1234,
213
+ "hub_dir": "/kaggle/working/hub/opt08_mint_quant/w_bits_2",
214
+ "repo_id": "UWU-R-13/SSVEP-SNN",
215
+ "push_hf": false,
216
+ "keep_epoch_weights": 1,
217
+ "no_resume": true,
218
+ "selftest": false,
219
+ "baseline": false,
220
+ "bench": true,
221
+ "bench_warmup": 10,
222
+ "bench_iters": 50,
223
+ "bench_train_steps": 20,
224
+ "w_bits": 2,
225
+ "u_bits": 2,
226
+ "leak_shift": 0,
227
+ "qat": true,
228
+ "bits_sweep": "2,4,8,0",
229
+ "l2_bytes": 2097152,
230
+ "sampling_rate": 250.0
231
+ }
232
+ },
233
+ "final_summary": {
234
+ "final_test_acc": 0.03214285714285714,
235
+ "final_test_target_acc": 0.03214285714285714,
236
+ "final_test_rest_recall": NaN,
237
+ "best_acc": 0.23142857142857143,
238
+ "best_epoch": 2,
239
+ "resplit": "block",
240
+ "class_weight": false,
241
+ "drop_rest": true,
242
+ "epochs": 60,
243
+ "method": "harmonic_matched",
244
+ "n_in": 2880,
245
+ "n_classes": 40,
246
+ "num_bins": 100
247
+ },
248
+ "event_driven_summary": {
249
+ "acc": 0.03214285714285714,
250
+ "anytime_acc": {
251
+ "0.25": 0.02857142857142857,
252
+ "0.5": 0.030714285714285715,
253
+ "0.75": 0.03214285714285714,
254
+ "1.0": 0.03214285714285714
255
+ },
256
+ "syn_per_inference": 64874.41061282468,
257
+ "dense_per_inference": 122675200.0,
258
+ "event_fraction_of_dense": 0.0005288306896000551,
259
+ "syn_per_inference_dense_fanout": 63605566.99918831,
260
+ "weight_sparsity": 0.9991204416214524,
261
+ "num_ticks": 100,
262
+ "dt_ms": 50.0,
263
+ "margin_decision_acc": 0.03142857142857143,
264
+ "mean_decision_tick": 84.10142857142857,
265
+ "mean_decision_ms": 4205.071428571428,
266
+ "dense_forward_test_acc": 0.03214285714285714
267
+ },
268
+ "extra_sweep_file_present": true,
269
+ "selftest": {
270
+ "mode": "gate",
271
+ "passed": true
272
+ },
273
+ "driver_version": 1,
274
+ "zip": {
275
+ "name": "w_bits_2.zip",
276
+ "files": 81,
277
+ "bytes": 12361927,
278
+ "MB": 12.4,
279
+ "sha256": "2bbbd0d38983d52dddfea5a1ba1805c017e7f9fd0cf0c7815896dc8b4f1b95ce"
280
+ }
281
+ }
applied/opt08_mint_quant/w_bits_2.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bbbd0d38983d52dddfea5a1ba1805c017e7f9fd0cf0c7815896dc8b4f1b95ce
3
+ size 12361927