p-j-r-1-2-3 commited on
Commit
57da14a
·
verified ·
1 Parent(s): 26370bc

add run lif_psn

Browse files
applied/opt10_parallel_lif_scan/lif_psn.summary.json ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "opt10_parallel_lif_scan/lif_psn",
3
+ "tag": "lif_psn",
4
+ "script": "opt10_parallel_lif_scan.py",
5
+ "script_sha256_16": "1b869e8327d5b545",
6
+ "hf_folder": "applied/opt10_parallel_lif_scan",
7
+ "priority": 1,
8
+ "note": "parallel spiking neuron, learned [T,T] kernel",
9
+ "phase": 5,
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/opt10_parallel_lif_scan.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/opt10_parallel_lif_scan/lif_psn",
35
+ "--keep-epoch-weights",
36
+ "1",
37
+ "--resplit",
38
+ "block",
39
+ "--drop-rest",
40
+ "--bench",
41
+ "--lif-mode",
42
+ "psn"
43
+ ],
44
+ "flags": [
45
+ "--lif-mode",
46
+ "psn"
47
+ ],
48
+ "epochs_requested": 60,
49
+ "gpus": 2,
50
+ "relative_epoch_cost": 1.0,
51
+ "exit_code": 0,
52
+ "status": "ok",
53
+ "duration_s": 375.8,
54
+ "started_utc": "2026-08-23T04:25:48.895651+00:00",
55
+ "finished_utc": "2026-08-23T04:32:04.715531+00:00",
56
+ "optimization_summary": {
57
+ "optimization": "parallel_lif_scan",
58
+ "research_section": "4. Membrane-Potential Memory Wall (reset-mechanism removal) / 6. Feasibility & Limitations",
59
+ "reference": "Fang et al., Parallel Spiking Neurons, NeurIPS 2023, arXiv:2304.12760; Hillis-Steele parallel prefix scan",
60
+ "script": "opt10_parallel_lif_scan.py",
61
+ "baseline_mode": false,
62
+ "method": "harmonic_matched",
63
+ "accuracy": {
64
+ "test_acc": 0.6728571428571428,
65
+ "test_target_acc": 0.6728571428571428,
66
+ "best_val_acc": 0.6742857142857143
67
+ },
68
+ "efficiency": {
69
+ "spikes_per_inference": null,
70
+ "syn_ops_per_inference": 5364184.111201298,
71
+ "dense_macs_per_inference": 122675200.0,
72
+ "event_fraction_of_dense": 0.04372671991732068,
73
+ "syn_ops_per_inference_dense_fanout": 66940801.89772727,
74
+ "weight_sparsity": 0.7324707846410685,
75
+ "effective_ticks": 66.995,
76
+ "num_ticks": 100,
77
+ "membrane_bytes_per_inference": 451200,
78
+ "weight_bytes": 4907008,
79
+ "input_raster_bytes": null,
80
+ "train_ms_per_step": 111.53997934998188,
81
+ "infer_ms_per_sample": 0.6946524631251805,
82
+ "peak_vram_mb": 2848.864256
83
+ },
84
+ "optimization_specific": {
85
+ "lif_mode": "psn",
86
+ "scan_reset_correction": null,
87
+ "psn_init_beta": 0.95,
88
+ "training_T": 100,
89
+ "sequential_depth": 1,
90
+ "sequential_depth_baseline": 100,
91
+ "depth_reduction_x": 100.0,
92
+ "speedup_vs_sequential_at_T": 0.8282461522014676,
93
+ "speedup_vs_sequential_at_T_fwdbwd": 0.46832826669673444,
94
+ "scan_crossover_T": null,
95
+ "scan_ever_wins": false,
96
+ "t_scaling": [
97
+ {
98
+ "T": 25,
99
+ "sequential_ms": 0.047486660005233716,
100
+ "scan_ms": 0.35886933999790926,
101
+ "psn_ms": 0.1867125799981295,
102
+ "sequential_fwdbwd_ms": 0.44958435999433277,
103
+ "scan_fwdbwd_ms": 0.8667966000029992,
104
+ "psn_fwdbwd_ms": 0.9562194599857321,
105
+ "scan_speedup_x": 0.13232297862366946,
106
+ "scan_speedup_fwdbwd_x": 0.5186734234914825,
107
+ "psn_speedup_x": 0.2543302652971184,
108
+ "psn_speedup_fwdbwd_x": 0.4701685949803208,
109
+ "depth_sequential": 25,
110
+ "depth_scan": 5,
111
+ "depth_psn": 1
112
+ },
113
+ {
114
+ "T": 50,
115
+ "sequential_ms": 0.10497237999516074,
116
+ "scan_ms": 0.5832207599996764,
117
+ "psn_ms": 0.18213854000350693,
118
+ "sequential_fwdbwd_ms": 0.46797631999652367,
119
+ "scan_fwdbwd_ms": 1.0461150199989788,
120
+ "psn_fwdbwd_ms": 0.9000249800010351,
121
+ "scan_speedup_x": 0.17998738590035612,
122
+ "scan_speedup_fwdbwd_x": 0.4473469083705351,
123
+ "psn_speedup_x": 0.5763326091948446,
124
+ "psn_speedup_fwdbwd_x": 0.5199592571263805,
125
+ "depth_sequential": 50,
126
+ "depth_scan": 6,
127
+ "depth_psn": 1
128
+ },
129
+ {
130
+ "T": 100,
131
+ "sequential_ms": 0.21007429999372107,
132
+ "scan_ms": 1.4438162800070131,
133
+ "psn_ms": 0.2536375199997565,
134
+ "sequential_fwdbwd_ms": 0.469644699987839,
135
+ "scan_fwdbwd_ms": 2.3666256199976488,
136
+ "psn_fwdbwd_ms": 1.0028109199993196,
137
+ "scan_speedup_x": 0.14549932903700233,
138
+ "scan_speedup_fwdbwd_x": 0.19844486429091626,
139
+ "psn_speedup_x": 0.8282461522014676,
140
+ "psn_speedup_fwdbwd_x": 0.46832826669673444,
141
+ "depth_sequential": 100,
142
+ "depth_scan": 7,
143
+ "depth_psn": 1
144
+ },
145
+ {
146
+ "T": 200,
147
+ "sequential_ms": 0.4098386199984816,
148
+ "scan_ms": 3.1044099400060077,
149
+ "psn_ms": 0.7010216799972113,
150
+ "sequential_fwdbwd_ms": 0.9069426599853614,
151
+ "scan_fwdbwd_ms": 4.853608979992714,
152
+ "psn_fwdbwd_ms": 2.7156057200045325,
153
+ "scan_speedup_x": 0.13201820246642054,
154
+ "scan_speedup_fwdbwd_x": 0.18685944082514921,
155
+ "psn_speedup_x": 0.5846304496604326,
156
+ "psn_speedup_fwdbwd_x": 0.33397435176408735,
157
+ "depth_sequential": 200,
158
+ "depth_scan": 8,
159
+ "depth_psn": 1
160
+ },
161
+ {
162
+ "T": 400,
163
+ "sequential_ms": 0.834148579997418,
164
+ "scan_ms": 6.508244939996075,
165
+ "psn_ms": 2.357299859995692,
166
+ "sequential_fwdbwd_ms": 1.808994260009058,
167
+ "scan_fwdbwd_ms": 10.193051079986617,
168
+ "psn_fwdbwd_ms": 8.919711580001604,
169
+ "scan_speedup_x": 0.1281679758042298,
170
+ "scan_speedup_fwdbwd_x": 0.17747328506583263,
171
+ "psn_speedup_x": 0.35385764626437577,
172
+ "psn_speedup_fwdbwd_x": 0.2028086047159759,
173
+ "depth_sequential": 400,
174
+ "depth_scan": 9,
175
+ "depth_psn": 1
176
+ }
177
+ ],
178
+ "accuracy_cost_of_reset_removal": {
179
+ "firing_rate_hard_reset": 0.026105469092726707,
180
+ "firing_rate_reset_free": 0.36106836795806885,
181
+ "firing_rate_reset_corrected": 0.00894628930836916,
182
+ "spike_agreement_reset_free": 0.6650371551513672,
183
+ "spike_agreement_reset_corrected": 0.9814648628234863,
184
+ "spike_storm_ratio_reset_free": 13.831138857361761
185
+ },
186
+ "psn_extra_params": 40000,
187
+ "deploy_neuron_is_hard_reset": true,
188
+ "train_deploy_neuron_mismatch": true,
189
+ "event_driven_acc_under_hard_reset": 0.6071428571428571,
190
+ "dense_forward_acc_under_train_neuron": 0.6728571428571428
191
+ },
192
+ "config": {
193
+ "method": "harmonic_matched",
194
+ "data_root": "/kaggle/working/data",
195
+ "subjects": "",
196
+ "blocks": "",
197
+ "limit": 0,
198
+ "drop_rest": true,
199
+ "resplit": "block",
200
+ "test_blocks": "6",
201
+ "class_weight": false,
202
+ "epochs": 60,
203
+ "batch_size": 64,
204
+ "lr": 0.002,
205
+ "weight_decay": 0.0005,
206
+ "grad_clip": 5.0,
207
+ "num_bins": 100,
208
+ "window_sec": 5.0,
209
+ "hidden": "512,256",
210
+ "freq_groups": 8,
211
+ "dropout": 0.3,
212
+ "spike_drop": 0.1,
213
+ "time_jitter": 2,
214
+ "label_smoothing": 0.05,
215
+ "no_batchnorm": false,
216
+ "binary_input": false,
217
+ "beta": 1.0,
218
+ "thresh": 1.0,
219
+ "window": 0.5,
220
+ "gain": 1.0,
221
+ "alpha": 0.9,
222
+ "readout": "spikecount",
223
+ "fake_quant": 0,
224
+ "amp": false,
225
+ "spike_reg": 0.0,
226
+ "event_eval": true,
227
+ "decision_margin": 2.0,
228
+ "export": false,
229
+ "seed": 1234,
230
+ "hub_dir": "/kaggle/working/hub/opt10_parallel_lif_scan/lif_psn",
231
+ "repo_id": "UWU-R-13/SSVEP-SNN",
232
+ "push_hf": false,
233
+ "keep_epoch_weights": 1,
234
+ "no_resume": true,
235
+ "selftest": false,
236
+ "baseline": false,
237
+ "bench": true,
238
+ "bench_warmup": 10,
239
+ "bench_iters": 50,
240
+ "bench_train_steps": 20,
241
+ "lif_mode": "psn",
242
+ "scan_reset_correction": true,
243
+ "psn_init_beta": 0.95,
244
+ "t_scaling": "25,50,100,200,400",
245
+ "sampling_rate": 250.0
246
+ }
247
+ },
248
+ "final_summary": {
249
+ "final_test_acc": 0.6728571428571428,
250
+ "final_test_target_acc": 0.6728571428571428,
251
+ "final_test_rest_recall": NaN,
252
+ "best_acc": 0.6742857142857143,
253
+ "best_epoch": 34,
254
+ "resplit": "block",
255
+ "class_weight": false,
256
+ "drop_rest": true,
257
+ "epochs": 60,
258
+ "method": "harmonic_matched",
259
+ "n_in": 2880,
260
+ "n_classes": 40,
261
+ "num_bins": 100
262
+ },
263
+ "event_driven_summary": {
264
+ "acc": 0.6071428571428571,
265
+ "anytime_acc": {
266
+ "0.25": 0.2507142857142857,
267
+ "0.5": 0.41785714285714287,
268
+ "0.75": 0.5228571428571429,
269
+ "1.0": 0.6071428571428571
270
+ },
271
+ "syn_per_inference": 5364184.111201298,
272
+ "dense_per_inference": 122675200.0,
273
+ "event_fraction_of_dense": 0.04372671991732068,
274
+ "syn_per_inference_dense_fanout": 66940801.89772727,
275
+ "weight_sparsity": 0.7324707846410685,
276
+ "num_ticks": 100,
277
+ "dt_ms": 50.0,
278
+ "margin_decision_acc": 0.5914285714285714,
279
+ "mean_decision_tick": 66.995,
280
+ "mean_decision_ms": 3349.75,
281
+ "dense_forward_test_acc": 0.6728571428571428
282
+ },
283
+ "extra_sweep_file_present": true,
284
+ "selftest": {
285
+ "mode": "gate",
286
+ "passed": true
287
+ },
288
+ "driver_version": 1,
289
+ "zip": {
290
+ "name": "lif_psn.zip",
291
+ "files": 81,
292
+ "bytes": 12871074,
293
+ "MB": 12.9,
294
+ "sha256": "2d568b45116713734022c53bff7f45c018bb357f65db82eec12b1b2debb2ace3"
295
+ }
296
+ }
applied/opt10_parallel_lif_scan/lif_psn.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d568b45116713734022c53bff7f45c018bb357f65db82eec12b1b2debb2ace3
3
+ size 12871074