SSVEN_pasqwerty / applied /opt06_uticket_prune /prune_readout.summary.json
p-j-r-1-2-3's picture
add run prune_readout
39d00cc verified
Raw
History Blame Contribute Delete
19.8 kB
Invalid JSON:Unexpected token 'N', ..."_recall": NaN, ""... is not valid JSON
{
"key": "opt06_uticket_prune/prune_readout",
"tag": "prune_readout",
"script": "opt06_uticket_prune.py",
"script_sha256_16": "13957bb36508b8cf",
"hf_folder": "applied/opt06_uticket_prune",
"priority": 2,
"note": "also prune the class readout",
"phase": 9,
"n_phases": 10,
"method": "harmonic_matched",
"command": [
"/usr/bin/python3",
"-m",
"torch.distributed.run",
"--standalone",
"--nproc_per_node=2",
"/kaggle/working/scripts/opt06_uticket_prune.py",
"--method",
"harmonic_matched",
"--data-root",
"/kaggle/working/data",
"--epochs",
"60",
"--seed",
"1234",
"--batch-size",
"64",
"--event-eval",
"--no-resume",
"--decision-margin",
"2.0",
"--hub-dir",
"/kaggle/working/hub/opt06_uticket_prune/prune_readout",
"--keep-epoch-weights",
"1",
"--resplit",
"block",
"--drop-rest",
"--bench",
"--prune-readout"
],
"flags": [
"--prune-readout"
],
"epochs_requested": 60,
"gpus": 2,
"relative_epoch_cost": 1.0,
"exit_code": 0,
"status": "ok",
"duration_s": 582.6,
"started_utc": "2026-08-23T03:54:10.977939+00:00",
"finished_utc": "2026-08-23T04:03:53.533433+00:00",
"optimization_summary": {
"optimization": "uticket_workload_balanced_pruning",
"research_section": "3. Spike sparsity & MAC->AC restructuring",
"reference": "u-Ticket: Workload-Balanced Pruning for Sparse SNNs, arXiv:2302.06746",
"script": "opt06_uticket_prune.py",
"baseline_mode": false,
"method": "harmonic_matched",
"accuracy": {
"test_acc": 0.4135714285714286,
"test_target_acc": 0.4135714285714286,
"best_val_acc": 0.9335714285714286
},
"efficiency": {
"spikes_per_inference": null,
"syn_ops_per_inference": 104257.90097402596,
"dense_macs_per_inference": 122675200.0,
"event_fraction_of_dense": 0.0008498694191982239,
"syn_ops_per_inference_dense_fanout": 65062433.861201294,
"weight_sparsity": 0.9917057400354758,
"effective_ticks": 11.177142857142858,
"num_ticks": 100,
"membrane_bytes_per_inference": 451200,
"weight_bytes": 4907008,
"input_raster_bytes": null,
"train_ms_per_step": 94.6925303999933,
"infer_ms_per_sample": 0.6165744149999597,
"peak_vram_mb": 2836.776448,
"weight_bytes_nonzero": 40703
},
"optimization_specific": {
"pruning_enabled": true,
"balance_enabled": true,
"rounds": 5,
"final_sparsity": 0.9917049248747913,
"nnz_per_layer": {
"layer0": 640,
"layer1": 5120,
"layer2": 4096,
"readout": 320
},
"pe_stats_per_layer": {
"layer0": {
"mean_nnz": 2.0,
"max_nnz": 2.0,
"min_nnz": 2.0,
"total_nnz": 640,
"numel": 921600,
"sparsity": 0.9993055555555556,
"utilization": 1.0
},
"layer1": {
"mean_nnz": 10.0,
"max_nnz": 10.0,
"min_nnz": 10.0,
"total_nnz": 5120,
"numel": 163840,
"sparsity": 0.96875,
"utilization": 1.0
},
"layer2": {
"mean_nnz": 16.0,
"max_nnz": 16.0,
"min_nnz": 16.0,
"total_nnz": 4096,
"numel": 131072,
"sparsity": 0.96875,
"utilization": 1.0
},
"readout": {
"mean_nnz": 8.0,
"max_nnz": 8.0,
"min_nnz": 8.0,
"total_nnz": 320,
"numel": 10240,
"sparsity": 0.96875,
"utilization": 1.0
}
},
"pe_utilization_final": 1.0,
"pe_utilization_lth": 0.5667460317460318,
"pe_utilization_uticket": 1.0,
"latency_proxy_dense": 3968,
"latency_proxy_final": 36,
"latency_reduction_frac": 0.9909274193548387,
"rounds_history": [
{
"round": 1,
"layers": {
"layer0": {
"lth": {
"mean_nnz": 36.0,
"max_nnz": 47.0,
"min_nnz": 25.0,
"total_nnz": 11520,
"numel": 921600,
"sparsity": 0.9875,
"utilization": 0.7659574468085106
},
"uticket": {
"mean_nnz": 36.0,
"max_nnz": 36.0,
"min_nnz": 36.0,
"total_nnz": 11520,
"numel": 921600,
"sparsity": 0.9875,
"utilization": 1.0
}
},
"layer1": {
"lth": {
"mean_nnz": 160.0,
"max_nnz": 180.0,
"min_nnz": 123.0,
"total_nnz": 81920,
"numel": 163840,
"sparsity": 0.5,
"utilization": 0.8888888888888888
},
"uticket": {
"mean_nnz": 160.0,
"max_nnz": 160.0,
"min_nnz": 160.0,
"total_nnz": 81920,
"numel": 163840,
"sparsity": 0.5,
"utilization": 1.0
}
},
"layer2": {
"lth": {
"mean_nnz": 256.0,
"max_nnz": 288.0,
"min_nnz": 210.0,
"total_nnz": 65536,
"numel": 131072,
"sparsity": 0.5,
"utilization": 0.8888888888888888
},
"uticket": {
"mean_nnz": 256.0,
"max_nnz": 256.0,
"min_nnz": 256.0,
"total_nnz": 65536,
"numel": 131072,
"sparsity": 0.5,
"utilization": 1.0
}
},
"readout": {
"lth": {
"mean_nnz": 128.0,
"max_nnz": 143.0,
"min_nnz": 117.0,
"total_nnz": 5120,
"numel": 10240,
"sparsity": 0.5,
"utilization": 0.8951048951048951
},
"uticket": {
"mean_nnz": 128.0,
"max_nnz": 128.0,
"min_nnz": 128.0,
"total_nnz": 5120,
"numel": 10240,
"sparsity": 0.5,
"utilization": 1.0
}
}
},
"latency_proxy": 580,
"sparsity": 0.8662353923205343
},
{
"round": 2,
"layers": {
"layer0": {
"lth": {
"mean_nnz": 18.0,
"max_nnz": 28.0,
"min_nnz": 10.0,
"total_nnz": 5760,
"numel": 921600,
"sparsity": 0.99375,
"utilization": 0.6428571428571429
},
"uticket": {
"mean_nnz": 18.0,
"max_nnz": 18.0,
"min_nnz": 18.0,
"total_nnz": 5760,
"numel": 921600,
"sparsity": 0.99375,
"utilization": 1.0
}
},
"layer1": {
"lth": {
"mean_nnz": 80.0,
"max_nnz": 104.0,
"min_nnz": 33.0,
"total_nnz": 40960,
"numel": 163840,
"sparsity": 0.75,
"utilization": 0.7692307692307693
},
"uticket": {
"mean_nnz": 80.0,
"max_nnz": 80.0,
"min_nnz": 80.0,
"total_nnz": 40960,
"numel": 163840,
"sparsity": 0.75,
"utilization": 1.0
}
},
"layer2": {
"lth": {
"mean_nnz": 128.0,
"max_nnz": 161.0,
"min_nnz": 93.0,
"total_nnz": 32768,
"numel": 131072,
"sparsity": 0.75,
"utilization": 0.7950310559006211
},
"uticket": {
"mean_nnz": 128.0,
"max_nnz": 128.0,
"min_nnz": 128.0,
"total_nnz": 32768,
"numel": 131072,
"sparsity": 0.75,
"utilization": 1.0
}
},
"readout": {
"lth": {
"mean_nnz": 64.0,
"max_nnz": 74.0,
"min_nnz": 56.0,
"total_nnz": 2560,
"numel": 10240,
"sparsity": 0.75,
"utilization": 0.8648648648648649
},
"uticket": {
"mean_nnz": 64.0,
"max_nnz": 64.0,
"min_nnz": 64.0,
"total_nnz": 2560,
"numel": 10240,
"sparsity": 0.75,
"utilization": 1.0
}
}
},
"latency_proxy": 290,
"sparsity": 0.9331176961602671
},
{
"round": 3,
"layers": {
"layer0": {
"lth": {
"mean_nnz": 9.0,
"max_nnz": 18.0,
"min_nnz": 1.0,
"total_nnz": 2880,
"numel": 921600,
"sparsity": 0.996875,
"utilization": 0.5
},
"uticket": {
"mean_nnz": 9.0,
"max_nnz": 9.0,
"min_nnz": 9.0,
"total_nnz": 2880,
"numel": 921600,
"sparsity": 0.996875,
"utilization": 1.0
}
},
"layer1": {
"lth": {
"mean_nnz": 40.0,
"max_nnz": 64.0,
"min_nnz": 2.0,
"total_nnz": 20480,
"numel": 163840,
"sparsity": 0.875,
"utilization": 0.625
},
"uticket": {
"mean_nnz": 40.0,
"max_nnz": 40.0,
"min_nnz": 40.0,
"total_nnz": 20480,
"numel": 163840,
"sparsity": 0.875,
"utilization": 1.0
}
},
"layer2": {
"lth": {
"mean_nnz": 64.0,
"max_nnz": 85.0,
"min_nnz": 38.0,
"total_nnz": 16384,
"numel": 131072,
"sparsity": 0.875,
"utilization": 0.7529411764705882
},
"uticket": {
"mean_nnz": 64.0,
"max_nnz": 64.0,
"min_nnz": 64.0,
"total_nnz": 16384,
"numel": 131072,
"sparsity": 0.875,
"utilization": 1.0
}
},
"readout": {
"lth": {
"mean_nnz": 32.0,
"max_nnz": 38.0,
"min_nnz": 26.0,
"total_nnz": 1280,
"numel": 10240,
"sparsity": 0.875,
"utilization": 0.8421052631578947
},
"uticket": {
"mean_nnz": 32.0,
"max_nnz": 32.0,
"min_nnz": 32.0,
"total_nnz": 1280,
"numel": 10240,
"sparsity": 0.875,
"utilization": 1.0
}
}
},
"latency_proxy": 145,
"sparsity": 0.9665588480801336
},
{
"round": 4,
"layers": {
"layer0": {
"lth": {
"mean_nnz": 4.5,
"max_nnz": 9.0,
"min_nnz": 0.0,
"total_nnz": 1440,
"numel": 921600,
"sparsity": 0.9984375,
"utilization": 0.5
},
"uticket": {
"mean_nnz": 4.0,
"max_nnz": 4.0,
"min_nnz": 4.0,
"total_nnz": 1280,
"numel": 921600,
"sparsity": 0.9986111111111111,
"utilization": 1.0
}
},
"layer1": {
"lth": {
"mean_nnz": 20.0,
"max_nnz": 33.0,
"min_nnz": 0.0,
"total_nnz": 10240,
"numel": 163840,
"sparsity": 0.9375,
"utilization": 0.6060606060606061
},
"uticket": {
"mean_nnz": 20.0,
"max_nnz": 20.0,
"min_nnz": 20.0,
"total_nnz": 10240,
"numel": 163840,
"sparsity": 0.9375,
"utilization": 1.0
}
},
"layer2": {
"lth": {
"mean_nnz": 32.0,
"max_nnz": 45.0,
"min_nnz": 12.0,
"total_nnz": 8192,
"numel": 131072,
"sparsity": 0.9375,
"utilization": 0.7111111111111111
},
"uticket": {
"mean_nnz": 32.0,
"max_nnz": 32.0,
"min_nnz": 32.0,
"total_nnz": 8192,
"numel": 131072,
"sparsity": 0.9375,
"utilization": 1.0
}
},
"readout": {
"lth": {
"mean_nnz": 16.0,
"max_nnz": 28.0,
"min_nnz": 11.0,
"total_nnz": 640,
"numel": 10240,
"sparsity": 0.9375,
"utilization": 0.5714285714285714
},
"uticket": {
"mean_nnz": 16.0,
"max_nnz": 16.0,
"min_nnz": 16.0,
"total_nnz": 640,
"numel": 10240,
"sparsity": 0.9375,
"utilization": 1.0
}
}
},
"latency_proxy": 72,
"sparsity": 0.9834098497495827
},
{
"round": 5,
"layers": {
"layer0": {
"lth": {
"mean_nnz": 2.0,
"max_nnz": 4.0,
"min_nnz": 0.0,
"total_nnz": 640,
"numel": 921600,
"sparsity": 0.9993055555555556,
"utilization": 0.5
},
"uticket": {
"mean_nnz": 2.0,
"max_nnz": 2.0,
"min_nnz": 2.0,
"total_nnz": 640,
"numel": 921600,
"sparsity": 0.9993055555555556,
"utilization": 1.0
}
},
"layer1": {
"lth": {
"mean_nnz": 10.0,
"max_nnz": 18.0,
"min_nnz": 0.0,
"total_nnz": 5120,
"numel": 163840,
"sparsity": 0.96875,
"utilization": 0.5555555555555556
},
"uticket": {
"mean_nnz": 10.0,
"max_nnz": 10.0,
"min_nnz": 10.0,
"total_nnz": 5120,
"numel": 163840,
"sparsity": 0.96875,
"utilization": 1.0
}
},
"layer2": {
"lth": {
"mean_nnz": 16.0,
"max_nnz": 25.0,
"min_nnz": 0.0,
"total_nnz": 4096,
"numel": 131072,
"sparsity": 0.96875,
"utilization": 0.64
},
"uticket": {
"mean_nnz": 16.0,
"max_nnz": 16.0,
"min_nnz": 16.0,
"total_nnz": 4096,
"numel": 131072,
"sparsity": 0.96875,
"utilization": 1.0
}
},
"readout": {
"lth": {
"mean_nnz": 8.0,
"max_nnz": 14.0,
"min_nnz": 3.0,
"total_nnz": 320,
"numel": 10240,
"sparsity": 0.96875,
"utilization": 0.5714285714285714
},
"uticket": {
"mean_nnz": 8.0,
"max_nnz": 8.0,
"min_nnz": 8.0,
"total_nnz": 320,
"numel": 10240,
"sparsity": 0.96875,
"utilization": 1.0
}
}
},
"latency_proxy": 36,
"sparsity": 0.9917049248747913
}
],
"latency_proxy_lth": 61,
"latency_reduction_vs_lth_frac": 0.4098360655737705
},
"config": {
"method": "harmonic_matched",
"data_root": "/kaggle/working/data",
"subjects": "",
"blocks": "",
"limit": 0,
"drop_rest": true,
"resplit": "block",
"test_blocks": "6",
"class_weight": false,
"epochs": 60,
"batch_size": 64,
"lr": 0.002,
"weight_decay": 0.0005,
"grad_clip": 5.0,
"num_bins": 100,
"window_sec": 5.0,
"hidden": "512,256",
"freq_groups": 8,
"dropout": 0.3,
"spike_drop": 0.1,
"time_jitter": 2,
"label_smoothing": 0.05,
"no_batchnorm": false,
"binary_input": false,
"beta": 1.0,
"thresh": 1.0,
"window": 0.5,
"gain": 1.0,
"alpha": 0.9,
"readout": "spikecount",
"fake_quant": 0,
"amp": false,
"spike_reg": 0.0,
"event_eval": true,
"decision_margin": 2.0,
"export": false,
"seed": 1234,
"hub_dir": "/kaggle/working/hub/opt06_uticket_prune/prune_readout",
"repo_id": "UWU-R-13/SSVEP-SNN",
"push_hf": false,
"keep_epoch_weights": 1,
"no_resume": true,
"selftest": false,
"baseline": false,
"bench": true,
"bench_warmup": 10,
"bench_iters": 50,
"bench_train_steps": 20,
"prune_rounds": 5,
"prune_rate": 0.5,
"rewind_epoch": 1,
"balance": true,
"balance_iters": 2,
"prune_readout": true,
"sampling_rate": 250.0
}
},
"final_summary": {
"final_test_acc": 0.4135714285714286,
"final_test_target_acc": 0.4135714285714286,
"final_test_rest_recall": NaN,
"best_acc": 0.9335714285714286,
"best_epoch": 25,
"resplit": "block",
"class_weight": false,
"drop_rest": true,
"epochs": 60,
"method": "harmonic_matched",
"n_in": 2880,
"n_classes": 40,
"num_bins": 100
},
"event_driven_summary": {
"acc": 0.4135714285714286,
"anytime_acc": {
"0.25": 0.07214285714285715,
"0.5": 0.21,
"0.75": 0.33214285714285713,
"1.0": 0.4135714285714286
},
"syn_per_inference": 104257.90097402596,
"dense_per_inference": 122675200.0,
"event_fraction_of_dense": 0.0008498694191982239,
"syn_per_inference_dense_fanout": 65062433.861201294,
"weight_sparsity": 0.9917057400354758,
"num_ticks": 100,
"dt_ms": 50.0,
"margin_decision_acc": 0.05357142857142857,
"mean_decision_tick": 11.177142857142858,
"mean_decision_ms": 558.8571428571429,
"dense_forward_test_acc": 0.4135714285714286
},
"extra_sweep_file_present": true,
"selftest": {
"mode": "gate",
"passed": true
},
"driver_version": 1,
"zip": {
"name": "prune_readout.zip",
"files": 81,
"bytes": 8103773,
"MB": 8.1,
"sha256": "71a4d931df327896a7f5538c47ae56a8c6d2a773250c37ea42d325f453d2355a"
}
}