p-j-r-1-2-3 commited on
Commit
3b1b375
·
verified ·
1 Parent(s): 44e3b02

add run bench_batches_wide

Browse files
applied/opt04_cudagraph_unroll/bench_batches_wide.summary.json ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "opt04_cudagraph_unroll/bench_batches_wide",
3
+ "tag": "bench_batches_wide",
4
+ "script": "opt04_cudagraph_unroll.py",
5
+ "script_sha256_16": "847dee0db9d2d87e",
6
+ "hf_folder": "applied/opt04_cudagraph_unroll",
7
+ "priority": 2,
8
+ "note": "",
9
+ "phase": 8,
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/opt04_cudagraph_unroll.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/opt04_cudagraph_unroll/bench_batches_wide",
35
+ "--keep-epoch-weights",
36
+ "1",
37
+ "--resplit",
38
+ "block",
39
+ "--drop-rest",
40
+ "--bench",
41
+ "--bench-batches",
42
+ "1,4,16,64,256"
43
+ ],
44
+ "flags": [
45
+ "--bench-batches",
46
+ "1,4,16,64,256"
47
+ ],
48
+ "epochs_requested": 60,
49
+ "gpus": 2,
50
+ "relative_epoch_cost": 1.0,
51
+ "exit_code": 0,
52
+ "status": "ok",
53
+ "duration_s": 639.6,
54
+ "started_utc": "2026-08-23T05:36:35.639005+00:00",
55
+ "finished_utc": "2026-08-23T05:47:15.190740+00:00",
56
+ "optimization_summary": {
57
+ "optimization": "cudagraph_static_unroll",
58
+ "research_section": "2. Temporal-dimension reduction / 5. OS & runtime",
59
+ "reference": "CUDA Graphs static capture/replay applied to the unrolled T-tick event-driven inference loop",
60
+ "script": "opt04_cudagraph_unroll.py",
61
+ "baseline_mode": false,
62
+ "method": "harmonic_matched",
63
+ "accuracy": {
64
+ "test_acc": 0.9492857142857143,
65
+ "test_target_acc": 0.9492857142857143,
66
+ "best_val_acc": 0.9428571428571428
67
+ },
68
+ "efficiency": {
69
+ "spikes_per_inference": null,
70
+ "syn_ops_per_inference": 3288914.2832792206,
71
+ "dense_macs_per_inference": 122675200.0,
72
+ "event_fraction_of_dense": 0.02680993618334611,
73
+ "syn_ops_per_inference_dense_fanout": 64865532.0698052,
74
+ "weight_sparsity": 0.7324707846410685,
75
+ "effective_ticks": 12.153571428571428,
76
+ "num_ticks": 100,
77
+ "membrane_bytes_per_inference": 451200,
78
+ "weight_bytes": 4907008,
79
+ "input_raster_bytes": null,
80
+ "train_ms_per_step": 96.87458276748657,
81
+ "infer_ms_per_sample": 0.6550618261098862,
82
+ "peak_vram_mb": 2804.85888
83
+ },
84
+ "optimization_specific": {
85
+ "graph_enabled": true,
86
+ "event_capacity_scan": {
87
+ "cap_scan": 98901,
88
+ "batch_size_scan": 64,
89
+ "n_batches_scanned": 20,
90
+ "density_per_sample": 1545.328125,
91
+ "per_layer_caps": [
92
+ 98901,
93
+ 7935,
94
+ 3512,
95
+ 3383
96
+ ]
97
+ },
98
+ "capacity": 98901,
99
+ "overflow_ticks_frac": 0.0,
100
+ "graph_vs_eager_pred_agreement": 1.0,
101
+ "graph_capture_ms": 246.45113945007324,
102
+ "graphed_acc": 0.9492857142857143,
103
+ "kernel_launches_eager": 400,
104
+ "kernel_launches_graphed": 2,
105
+ "launch_reduction_x": 200.0,
106
+ "bench_batches": {
107
+ "1": {
108
+ "ms_per_sample_eager": 155.08618831634521,
109
+ "ms_per_sample_graphed": 32.538652420043945,
110
+ "throughput_eager_samples_per_s": 6.4480274539999485,
111
+ "throughput_graphed_samples_per_s": 30.732680231833935,
112
+ "speedup_x": 4.766214233900218,
113
+ "capacity": 1546
114
+ },
115
+ "4": {
116
+ "ms_per_sample_eager": 39.0606689453125,
117
+ "ms_per_sample_graphed": 15.353316068649292,
118
+ "throughput_eager_samples_per_s": 25.601200056252637,
119
+ "throughput_graphed_samples_per_s": 65.13250919402033,
120
+ "speedup_x": 2.5441193792051506,
121
+ "capacity": 6182
122
+ },
123
+ "16": {
124
+ "ms_per_sample_eager": 10.658027529716492,
125
+ "ms_per_sample_graphed": 11.284635066986084,
126
+ "throughput_eager_samples_per_s": 93.82599146153645,
127
+ "throughput_graphed_samples_per_s": 88.61606902340718,
128
+ "speedup_x": 0.9444725032267306,
129
+ "capacity": 24726
130
+ },
131
+ "64": {
132
+ "ms_per_sample_eager": 3.5885700583457947,
133
+ "ms_per_sample_graphed": 9.764026775956154,
134
+ "throughput_eager_samples_per_s": 278.66252678398735,
135
+ "throughput_graphed_samples_per_s": 102.41676133687925,
136
+ "speedup_x": 0.3675297232062721,
137
+ "capacity": 98901
138
+ },
139
+ "256": {
140
+ "ms_per_sample_eager": 1.2360872328281403,
141
+ "ms_per_sample_graphed": 9.808671623468399,
142
+ "throughput_eager_samples_per_s": 809.0043917952473,
143
+ "throughput_graphed_samples_per_s": 101.95060436189773,
144
+ "speedup_x": 0.1260198404308547,
145
+ "capacity": 395604
146
+ }
147
+ },
148
+ "speedup_x_at_batch1": 4.766214233900218
149
+ },
150
+ "config": {
151
+ "method": "harmonic_matched",
152
+ "data_root": "/kaggle/working/data",
153
+ "subjects": "",
154
+ "blocks": "",
155
+ "limit": 0,
156
+ "drop_rest": true,
157
+ "resplit": "block",
158
+ "test_blocks": "6",
159
+ "class_weight": false,
160
+ "epochs": 60,
161
+ "batch_size": 64,
162
+ "lr": 0.002,
163
+ "weight_decay": 0.0005,
164
+ "grad_clip": 5.0,
165
+ "num_bins": 100,
166
+ "window_sec": 5.0,
167
+ "hidden": "512,256",
168
+ "freq_groups": 8,
169
+ "dropout": 0.3,
170
+ "spike_drop": 0.1,
171
+ "time_jitter": 2,
172
+ "label_smoothing": 0.05,
173
+ "no_batchnorm": false,
174
+ "binary_input": false,
175
+ "beta": 1.0,
176
+ "thresh": 1.0,
177
+ "window": 0.5,
178
+ "gain": 1.0,
179
+ "alpha": 0.9,
180
+ "readout": "spikecount",
181
+ "fake_quant": 0,
182
+ "amp": false,
183
+ "spike_reg": 0.0,
184
+ "event_eval": true,
185
+ "decision_margin": 2.0,
186
+ "export": false,
187
+ "seed": 1234,
188
+ "hub_dir": "/kaggle/working/hub/opt04_cudagraph_unroll/bench_batches_wide",
189
+ "repo_id": "UWU-R-13/SSVEP-SNN",
190
+ "push_hf": false,
191
+ "keep_epoch_weights": 1,
192
+ "no_resume": true,
193
+ "selftest": false,
194
+ "baseline": false,
195
+ "bench": true,
196
+ "bench_warmup": 10,
197
+ "bench_iters": 50,
198
+ "bench_train_steps": 20,
199
+ "event_capacity": 0,
200
+ "graph_warmup": 3,
201
+ "bench_batches": "1,4,16,64,256",
202
+ "sampling_rate": 250.0
203
+ }
204
+ },
205
+ "final_summary": {
206
+ "final_test_acc": 0.9492857142857143,
207
+ "final_test_target_acc": 0.9492857142857143,
208
+ "final_test_rest_recall": NaN,
209
+ "best_acc": 0.9428571428571428,
210
+ "best_epoch": 60,
211
+ "resplit": "block",
212
+ "class_weight": false,
213
+ "drop_rest": true,
214
+ "epochs": 60,
215
+ "method": "harmonic_matched",
216
+ "n_in": 2880,
217
+ "n_classes": 40,
218
+ "num_bins": 100
219
+ },
220
+ "event_driven_summary": {
221
+ "acc": 0.9492857142857143,
222
+ "anytime_acc": {
223
+ "0.25": 0.6321428571428571,
224
+ "0.5": 0.8507142857142858,
225
+ "0.75": 0.9292857142857143,
226
+ "1.0": 0.9492857142857143
227
+ },
228
+ "syn_per_inference": 3288914.2832792206,
229
+ "dense_per_inference": 122675200.0,
230
+ "event_fraction_of_dense": 0.02680993618334611,
231
+ "syn_per_inference_dense_fanout": 64865532.0698052,
232
+ "weight_sparsity": 0.7324707846410685,
233
+ "num_ticks": 100,
234
+ "dt_ms": 50.0,
235
+ "margin_decision_acc": 0.4514285714285714,
236
+ "mean_decision_tick": 12.153571428571428,
237
+ "mean_decision_ms": 607.6785714285716,
238
+ "dense_forward_test_acc": 0.9492857142857143
239
+ },
240
+ "extra_sweep_file_present": true,
241
+ "selftest": {
242
+ "mode": "gate",
243
+ "passed": true
244
+ },
245
+ "driver_version": 1,
246
+ "zip": {
247
+ "name": "bench_batches_wide.zip",
248
+ "files": 78,
249
+ "bytes": 7977178,
250
+ "MB": 8.0,
251
+ "sha256": "20c84fb916addc61aa295dfeead6cf4874dd253da092adb70e951ec451943fe1"
252
+ }
253
+ }
applied/opt04_cudagraph_unroll/bench_batches_wide.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20c84fb916addc61aa295dfeead6cf4874dd253da092adb70e951ec451943fe1
3
+ size 7977178