p-j-r-1-2-3 commited on
Commit
1f1b4ad
·
verified ·
1 Parent(s): 51eba3c

add run no_qat

Browse files
applied/opt08_mint_quant/no_qat.summary.json ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "opt08_mint_quant/no_qat",
3
+ "tag": "no_qat",
4
+ "script": "opt08_mint_quant.py",
5
+ "script_sha256_16": "dd139bbe634ea732",
6
+ "hf_folder": "applied/opt08_mint_quant",
7
+ "priority": 2,
8
+ "note": "post-training quantization instead of QAT",
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/no_qat",
35
+ "--keep-epoch-weights",
36
+ "1",
37
+ "--resplit",
38
+ "block",
39
+ "--drop-rest",
40
+ "--bench",
41
+ "--no-qat"
42
+ ],
43
+ "flags": [
44
+ "--no-qat"
45
+ ],
46
+ "epochs_requested": 60,
47
+ "gpus": 2,
48
+ "relative_epoch_cost": 1.0,
49
+ "exit_code": 0,
50
+ "status": "ok",
51
+ "duration_s": 328.8,
52
+ "started_utc": "2026-08-23T05:07:30.862336+00:00",
53
+ "finished_utc": "2026-08-23T05:12:59.711426+00:00",
54
+ "optimization_summary": {
55
+ "optimization": "mint_quant",
56
+ "research_section": "4. Membrane-Potential Memory-Wall Optimizations (multiplier-less integer quantization)",
57
+ "reference": "Yin et al., MINT: Multiplier-less INTeger Quantization for Energy Efficient Spiking Neural Networks, arXiv:2305.09850 (ASP-DAC 2024)",
58
+ "script": "opt08_mint_quant.py",
59
+ "baseline_mode": false,
60
+ "method": "harmonic_matched",
61
+ "accuracy": {
62
+ "test_acc": 0.8814285714285715,
63
+ "test_target_acc": 0.8814285714285715,
64
+ "best_val_acc": 0.9071428571428571
65
+ },
66
+ "efficiency": {
67
+ "spikes_per_inference": null,
68
+ "syn_ops_per_inference": 2369107.872970779,
69
+ "dense_macs_per_inference": 122675200.0,
70
+ "event_fraction_of_dense": 0.01931203595323895,
71
+ "syn_ops_per_inference_dense_fanout": 65155147.9375,
72
+ "weight_sparsity": 0.8282806956907346,
73
+ "effective_ticks": 10.586428571428572,
74
+ "num_ticks": 100,
75
+ "membrane_bytes_per_inference": 0,
76
+ "weight_bytes": 613376,
77
+ "input_raster_bytes": null,
78
+ "train_ms_per_step": 93.63406789998407,
79
+ "infer_ms_per_sample": 0.6351243703124965,
80
+ "peak_vram_mb": 2828.762112
81
+ },
82
+ "optimization_specific": {
83
+ "w_bits": 4,
84
+ "u_bits": 2,
85
+ "leak_shift": 0,
86
+ "beta_eff": 1.0,
87
+ "qat": false,
88
+ "batchnorm": true,
89
+ "membrane_memory_reduction_x": 16.0,
90
+ "weight_memory_reduction_x": 8.0,
91
+ "membrane_bytes_per_inference": 28200.0,
92
+ "working_set_bytes": 613658.0,
93
+ "baseline_working_set_bytes": 4911520.0,
94
+ "l2_cache_fits": true,
95
+ "baseline_l2_cache_fits": false,
96
+ "l2_budget_bytes": 2097152,
97
+ "membrane_saturation_frac": 0.10079070395611703,
98
+ "acc_vs_ubits": {
99
+ "2": 0.8814285714285715,
100
+ "4": 0.9357142857142857,
101
+ "8": 0.9421428571428572,
102
+ "0": 0.9278571428571428
103
+ },
104
+ "bits_sweep_rows": [
105
+ {
106
+ "u_bits": 2,
107
+ "acc": 0.8814285714285715,
108
+ "target_acc": 0.8814285714285715,
109
+ "membrane_bytes_per_neuron_per_tick": 0.25,
110
+ "membrane_memory_reduction_x": 16.0,
111
+ "membrane_saturation_frac": 0.09545739140070922,
112
+ "acc_drop_vs_fp32": 0.046428571428571375
113
+ },
114
+ {
115
+ "u_bits": 4,
116
+ "acc": 0.9357142857142857,
117
+ "target_acc": 0.9357142857142857,
118
+ "membrane_bytes_per_neuron_per_tick": 0.5,
119
+ "membrane_memory_reduction_x": 8.0,
120
+ "membrane_saturation_frac": 0.2861436862810284,
121
+ "acc_drop_vs_fp32": -0.007857142857142896
122
+ },
123
+ {
124
+ "u_bits": 8,
125
+ "acc": 0.9421428571428572,
126
+ "target_acc": 0.9421428571428572,
127
+ "membrane_bytes_per_neuron_per_tick": 1.0,
128
+ "membrane_memory_reduction_x": 4.0,
129
+ "membrane_saturation_frac": 0.3314320146276596,
130
+ "acc_drop_vs_fp32": -0.014285714285714346
131
+ },
132
+ {
133
+ "u_bits": 0,
134
+ "acc": 0.9278571428571428,
135
+ "target_acc": 0.9278571428571428,
136
+ "membrane_bytes_per_neuron_per_tick": 4.0,
137
+ "membrane_memory_reduction_x": 1.0,
138
+ "membrane_saturation_frac": null,
139
+ "acc_drop_vs_fp32": 0.0
140
+ }
141
+ ],
142
+ "fp32_membrane_acc": 0.9278571428571428,
143
+ "per_layer_scales": [
144
+ {
145
+ "layer": 0,
146
+ "weight_scale": 0.03091752529144287,
147
+ "membrane_scale": 1.0,
148
+ "shared_scale_gauge_factor": 32.34411520888358
149
+ },
150
+ {
151
+ "layer": 1,
152
+ "weight_scale": 0.01778849107878549,
153
+ "membrane_scale": 1.0,
154
+ "shared_scale_gauge_factor": 56.21612286117947
155
+ },
156
+ {
157
+ "layer": 2,
158
+ "weight_scale": 0.01220501959323883,
159
+ "membrane_scale": 1.0,
160
+ "shared_scale_gauge_factor": 81.93350222509812
161
+ },
162
+ {
163
+ "layer": 3,
164
+ "weight_scale": 0.018680229783058167,
165
+ "membrane_scale": 1.0,
166
+ "shared_scale_gauge_factor": 53.53253207339769
167
+ }
168
+ ],
169
+ "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",
170
+ "multiplier_less_compare": true,
171
+ "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"
172
+ },
173
+ "config": {
174
+ "method": "harmonic_matched",
175
+ "data_root": "/kaggle/working/data",
176
+ "subjects": "",
177
+ "blocks": "",
178
+ "limit": 0,
179
+ "drop_rest": true,
180
+ "resplit": "block",
181
+ "test_blocks": "6",
182
+ "class_weight": false,
183
+ "epochs": 60,
184
+ "batch_size": 64,
185
+ "lr": 0.002,
186
+ "weight_decay": 0.0005,
187
+ "grad_clip": 5.0,
188
+ "num_bins": 100,
189
+ "window_sec": 5.0,
190
+ "hidden": "512,256",
191
+ "freq_groups": 8,
192
+ "dropout": 0.3,
193
+ "spike_drop": 0.1,
194
+ "time_jitter": 2,
195
+ "label_smoothing": 0.05,
196
+ "no_batchnorm": false,
197
+ "binary_input": false,
198
+ "beta": 1.0,
199
+ "thresh": 1.0,
200
+ "window": 0.5,
201
+ "gain": 1.0,
202
+ "alpha": 0.9,
203
+ "readout": "spikecount",
204
+ "fake_quant": 0,
205
+ "amp": false,
206
+ "spike_reg": 0.0,
207
+ "event_eval": true,
208
+ "decision_margin": 2.0,
209
+ "export": false,
210
+ "seed": 1234,
211
+ "hub_dir": "/kaggle/working/hub/opt08_mint_quant/no_qat",
212
+ "repo_id": "UWU-R-13/SSVEP-SNN",
213
+ "push_hf": false,
214
+ "keep_epoch_weights": 1,
215
+ "no_resume": true,
216
+ "selftest": false,
217
+ "baseline": false,
218
+ "bench": true,
219
+ "bench_warmup": 10,
220
+ "bench_iters": 50,
221
+ "bench_train_steps": 20,
222
+ "w_bits": 4,
223
+ "u_bits": 2,
224
+ "leak_shift": 0,
225
+ "qat": false,
226
+ "bits_sweep": "2,4,8,0",
227
+ "l2_bytes": 2097152,
228
+ "sampling_rate": 250.0
229
+ }
230
+ },
231
+ "final_summary": {
232
+ "final_test_acc": 0.8814285714285715,
233
+ "final_test_target_acc": 0.8814285714285715,
234
+ "final_test_rest_recall": NaN,
235
+ "best_acc": 0.9071428571428571,
236
+ "best_epoch": 15,
237
+ "resplit": "block",
238
+ "class_weight": false,
239
+ "drop_rest": true,
240
+ "epochs": 60,
241
+ "method": "harmonic_matched",
242
+ "n_in": 2880,
243
+ "n_classes": 40,
244
+ "num_bins": 100
245
+ },
246
+ "event_driven_summary": {
247
+ "acc": 0.8814285714285715,
248
+ "anytime_acc": {
249
+ "0.25": 0.5935714285714285,
250
+ "0.5": 0.8035714285714286,
251
+ "0.75": 0.8735714285714286,
252
+ "1.0": 0.8814285714285715
253
+ },
254
+ "syn_per_inference": 2369107.872970779,
255
+ "dense_per_inference": 122675200.0,
256
+ "event_fraction_of_dense": 0.01931203595323895,
257
+ "syn_per_inference_dense_fanout": 65155147.9375,
258
+ "weight_sparsity": 0.8282806956907346,
259
+ "num_ticks": 100,
260
+ "dt_ms": 50.0,
261
+ "margin_decision_acc": 0.30357142857142855,
262
+ "mean_decision_tick": 10.586428571428572,
263
+ "mean_decision_ms": 529.3214285714286,
264
+ "dense_forward_test_acc": 0.8814285714285715
265
+ },
266
+ "extra_sweep_file_present": true,
267
+ "selftest": {
268
+ "mode": "gate",
269
+ "passed": true
270
+ },
271
+ "driver_version": 1,
272
+ "zip": {
273
+ "name": "no_qat.zip",
274
+ "files": 81,
275
+ "bytes": 12241785,
276
+ "MB": 12.2,
277
+ "sha256": "23aa8a4da5964260deb080b490dd81651bc1ec81a1e96263826a88013a927a7d"
278
+ }
279
+ }
applied/opt08_mint_quant/no_qat.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23aa8a4da5964260deb080b490dd81651bc1ec81a1e96263826a88013a927a7d
3
+ size 12241785