p-j-r-1-2-3 commited on
Commit
a46cb05
·
verified ·
1 Parent(s): 21eb044

add run bits_sweep_fine

Browse files
applied/opt08_mint_quant/bits_sweep_fine.summary.json ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "opt08_mint_quant/bits_sweep_fine",
3
+ "tag": "bits_sweep_fine",
4
+ "script": "opt08_mint_quant.py",
5
+ "script_sha256_16": "dd139bbe634ea732",
6
+ "hf_folder": "applied/opt08_mint_quant",
7
+ "priority": 2,
8
+ "note": "finer membrane-precision ladder in mint_sweep.json",
9
+ "phase": 9,
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/bits_sweep_fine",
35
+ "--keep-epoch-weights",
36
+ "1",
37
+ "--resplit",
38
+ "block",
39
+ "--drop-rest",
40
+ "--bench",
41
+ "--bits-sweep",
42
+ "0,2,3,4,6,8"
43
+ ],
44
+ "flags": [
45
+ "--bits-sweep",
46
+ "0,2,3,4,6,8"
47
+ ],
48
+ "epochs_requested": 60,
49
+ "gpus": 2,
50
+ "relative_epoch_cost": 1.0,
51
+ "exit_code": 0,
52
+ "status": "ok",
53
+ "duration_s": 323.5,
54
+ "started_utc": "2026-08-23T04:51:25.594890+00:00",
55
+ "finished_utc": "2026-08-23T04:56:49.132449+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.22428571428571428,
65
+ "test_target_acc": 0.22428571428571428,
66
+ "best_val_acc": 0.49357142857142855
67
+ },
68
+ "efficiency": {
69
+ "spikes_per_inference": null,
70
+ "syn_ops_per_inference": 737711.1282467532,
71
+ "dense_macs_per_inference": 122675200.0,
72
+ "event_fraction_of_dense": 0.006013531082458013,
73
+ "syn_ops_per_inference_dense_fanout": 63661272.290584415,
74
+ "weight_sparsity": 0.9789982001252087,
75
+ "effective_ticks": 27.373571428571427,
76
+ "num_ticks": 100,
77
+ "membrane_bytes_per_inference": 0,
78
+ "weight_bytes": 613376,
79
+ "input_raster_bytes": null,
80
+ "train_ms_per_step": 88.68454749999728,
81
+ "infer_ms_per_sample": 0.6045492706249433,
82
+ "peak_vram_mb": 2835.119104
83
+ },
84
+ "optimization_specific": {
85
+ "w_bits": 4,
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": 8.0,
93
+ "membrane_bytes_per_inference": 28200.0,
94
+ "working_set_bytes": 613658.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.018447992852393617,
100
+ "acc_vs_ubits": {
101
+ "0": 0.18428571428571427,
102
+ "2": 0.22428571428571428,
103
+ "3": 0.21571428571428572,
104
+ "4": 0.21428571428571427,
105
+ "6": 0.21571428571428572,
106
+ "8": 0.21214285714285713
107
+ },
108
+ "bits_sweep_rows": [
109
+ {
110
+ "u_bits": 0,
111
+ "acc": 0.18428571428571427,
112
+ "target_acc": 0.18428571428571427,
113
+ "membrane_bytes_per_neuron_per_tick": 4.0,
114
+ "membrane_memory_reduction_x": 1.0,
115
+ "membrane_saturation_frac": null,
116
+ "acc_drop_vs_fp32": 0.0
117
+ },
118
+ {
119
+ "u_bits": 2,
120
+ "acc": 0.22428571428571428,
121
+ "target_acc": 0.22428571428571428,
122
+ "membrane_bytes_per_neuron_per_tick": 0.25,
123
+ "membrane_memory_reduction_x": 16.0,
124
+ "membrane_saturation_frac": 0.016339829898049645,
125
+ "acc_drop_vs_fp32": -0.04000000000000001
126
+ },
127
+ {
128
+ "u_bits": 3,
129
+ "acc": 0.21571428571428572,
130
+ "target_acc": 0.21571428571428572,
131
+ "membrane_bytes_per_neuron_per_tick": 0.375,
132
+ "membrane_memory_reduction_x": 10.666666666666666,
133
+ "membrane_saturation_frac": 0.07418640569592198,
134
+ "acc_drop_vs_fp32": -0.031428571428571445
135
+ },
136
+ {
137
+ "u_bits": 4,
138
+ "acc": 0.21428571428571427,
139
+ "target_acc": 0.21428571428571427,
140
+ "membrane_bytes_per_neuron_per_tick": 0.5,
141
+ "membrane_memory_reduction_x": 8.0,
142
+ "membrane_saturation_frac": 0.1724607297207447,
143
+ "acc_drop_vs_fp32": -0.03
144
+ },
145
+ {
146
+ "u_bits": 6,
147
+ "acc": 0.21571428571428572,
148
+ "target_acc": 0.21571428571428572,
149
+ "membrane_bytes_per_neuron_per_tick": 0.75,
150
+ "membrane_memory_reduction_x": 5.333333333333333,
151
+ "membrane_saturation_frac": 0.3710663923980496,
152
+ "acc_drop_vs_fp32": -0.031428571428571445
153
+ },
154
+ {
155
+ "u_bits": 8,
156
+ "acc": 0.21214285714285713,
157
+ "target_acc": 0.21214285714285713,
158
+ "membrane_bytes_per_neuron_per_tick": 1.0,
159
+ "membrane_memory_reduction_x": 4.0,
160
+ "membrane_saturation_frac": 0.37882293051861704,
161
+ "acc_drop_vs_fp32": -0.027857142857142858
162
+ }
163
+ ],
164
+ "fp32_membrane_acc": 0.18428571428571427,
165
+ "per_layer_scales": [
166
+ {
167
+ "layer": 0,
168
+ "weight_scale": 0.03549237549304962,
169
+ "membrane_scale": 1.0,
170
+ "shared_scale_gauge_factor": 28.17506537976945
171
+ },
172
+ {
173
+ "layer": 1,
174
+ "weight_scale": 0.03008062924657549,
175
+ "membrane_scale": 1.0,
176
+ "shared_scale_gauge_factor": 33.24398541675601
177
+ },
178
+ {
179
+ "layer": 2,
180
+ "weight_scale": 0.027376641120229448,
181
+ "membrane_scale": 1.0,
182
+ "shared_scale_gauge_factor": 36.52749055694305
183
+ },
184
+ {
185
+ "layer": 3,
186
+ "weight_scale": 0.02388627827167511,
187
+ "membrane_scale": 1.0,
188
+ "shared_scale_gauge_factor": 41.865040196982996
189
+ }
190
+ ],
191
+ "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",
192
+ "multiplier_less_compare": true,
193
+ "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"
194
+ },
195
+ "config": {
196
+ "method": "harmonic_matched",
197
+ "data_root": "/kaggle/working/data",
198
+ "subjects": "",
199
+ "blocks": "",
200
+ "limit": 0,
201
+ "drop_rest": true,
202
+ "resplit": "block",
203
+ "test_blocks": "6",
204
+ "class_weight": false,
205
+ "epochs": 60,
206
+ "batch_size": 64,
207
+ "lr": 0.002,
208
+ "weight_decay": 0.0005,
209
+ "grad_clip": 5.0,
210
+ "num_bins": 100,
211
+ "window_sec": 5.0,
212
+ "hidden": "512,256",
213
+ "freq_groups": 8,
214
+ "dropout": 0.3,
215
+ "spike_drop": 0.1,
216
+ "time_jitter": 2,
217
+ "label_smoothing": 0.05,
218
+ "no_batchnorm": false,
219
+ "binary_input": false,
220
+ "beta": 1.0,
221
+ "thresh": 1.0,
222
+ "window": 0.5,
223
+ "gain": 1.0,
224
+ "alpha": 0.9,
225
+ "readout": "spikecount",
226
+ "fake_quant": 0,
227
+ "amp": false,
228
+ "spike_reg": 0.0,
229
+ "event_eval": true,
230
+ "decision_margin": 2.0,
231
+ "export": false,
232
+ "seed": 1234,
233
+ "hub_dir": "/kaggle/working/hub/opt08_mint_quant/bits_sweep_fine",
234
+ "repo_id": "UWU-R-13/SSVEP-SNN",
235
+ "push_hf": false,
236
+ "keep_epoch_weights": 1,
237
+ "no_resume": true,
238
+ "selftest": false,
239
+ "baseline": false,
240
+ "bench": true,
241
+ "bench_warmup": 10,
242
+ "bench_iters": 50,
243
+ "bench_train_steps": 20,
244
+ "w_bits": 4,
245
+ "u_bits": 2,
246
+ "leak_shift": 0,
247
+ "qat": true,
248
+ "bits_sweep": "0,2,3,4,6,8",
249
+ "l2_bytes": 2097152,
250
+ "sampling_rate": 250.0
251
+ }
252
+ },
253
+ "final_summary": {
254
+ "final_test_acc": 0.22428571428571428,
255
+ "final_test_target_acc": 0.22428571428571428,
256
+ "final_test_rest_recall": NaN,
257
+ "best_acc": 0.49357142857142855,
258
+ "best_epoch": 7,
259
+ "resplit": "block",
260
+ "class_weight": false,
261
+ "drop_rest": true,
262
+ "epochs": 60,
263
+ "method": "harmonic_matched",
264
+ "n_in": 2880,
265
+ "n_classes": 40,
266
+ "num_bins": 100
267
+ },
268
+ "event_driven_summary": {
269
+ "acc": 0.22428571428571428,
270
+ "anytime_acc": {
271
+ "0.25": 0.11142857142857143,
272
+ "0.5": 0.16214285714285714,
273
+ "0.75": 0.19142857142857142,
274
+ "1.0": 0.22428571428571428
275
+ },
276
+ "syn_per_inference": 737711.1282467532,
277
+ "dense_per_inference": 122675200.0,
278
+ "event_fraction_of_dense": 0.006013531082458013,
279
+ "syn_per_inference_dense_fanout": 63661272.290584415,
280
+ "weight_sparsity": 0.9789982001252087,
281
+ "num_ticks": 100,
282
+ "dt_ms": 50.0,
283
+ "margin_decision_acc": 0.10714285714285714,
284
+ "mean_decision_tick": 27.373571428571427,
285
+ "mean_decision_ms": 1368.6785714285713,
286
+ "dense_forward_test_acc": 0.22428571428571428
287
+ },
288
+ "extra_sweep_file_present": true,
289
+ "selftest": {
290
+ "mode": "gate",
291
+ "passed": true
292
+ },
293
+ "driver_version": 1,
294
+ "zip": {
295
+ "name": "bits_sweep_fine.zip",
296
+ "files": 81,
297
+ "bytes": 12373116,
298
+ "MB": 12.4,
299
+ "sha256": "2fe3f4aad883a9ccc3ebe2dd4259aaa6e4053f00e53278a241e2f51f70d48e6c"
300
+ }
301
+ }
applied/opt08_mint_quant/bits_sweep_fine.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fe3f4aad883a9ccc3ebe2dd4259aaa6e4053f00e53278a241e2f51f70d48e6c
3
+ size 12373116