mrwabbit commited on
Commit
935d06b
·
verified ·
1 Parent(s): 7887658

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +56 -85
README.md CHANGED
@@ -1,122 +1,93 @@
1
  ---
2
- license: apache-2.0
3
- language:
4
- - de
5
- - en
6
  tags:
7
  - spiking-neural-network
8
  - neuromorphic
9
- - audio-classification
10
- - SHD
11
- - LIF
12
- - FPGA
13
  datasets:
14
- - custom
15
  metrics:
16
  - accuracy
17
  model-index:
18
- - name: Catalyst SHD SNN
19
  results:
20
  - task:
21
  type: audio-classification
22
  name: Spoken Digit Classification
23
  dataset:
24
  name: Spiking Heidelberg Digits (SHD)
25
- type: custom
26
  metrics:
27
- - name: Accuracy (float32)
28
  type: accuracy
29
- value: 85.9
30
- - name: Accuracy (int16 quantized)
31
  type: accuracy
32
- value: 85.4
33
  ---
34
 
35
- # Catalyst SHD Spiking Neural Network
36
 
37
- ## Model Description
38
-
39
- A recurrent spiking neural network (SNN) trained on the Spiking Heidelberg Digits (SHD) spoken digit classification benchmark, designed for deployment on Catalyst neuromorphic processors.
40
 
41
- **Architecture**: 700 → 512 (recurrent, LIF) → 20
42
 
43
- | Parameter | Value |
44
- |-----------|-------|
45
- | Input channels | 700 (cochlea model spike trains) |
46
- | Hidden neurons | 512 (recurrent LIF) |
47
- | Output classes | 20 (German + English digits 0-9) |
48
- | Trainable parameters | ~421,000 |
49
- | Neuron model | Leaky Integrate-and-Fire (CUBA) |
50
- | Surrogate gradient | Fast sigmoid (scale=25) |
51
- | Time bins | 250 (4ms bins, 1s window) |
52
 
53
- ## Performance
54
 
55
  | Metric | Value |
56
  |--------|-------|
57
- | Float accuracy (best) | **85.9%** |
58
- | Quantized accuracy (16-bit) | **85.4%** |
59
- | Quantization loss | 0.4% |
60
-
61
- Surpasses Cramer et al. (2020) at 83.2% and Zenke & Vogels (2021) at 83.4%.
62
-
63
- ## Training
64
-
65
- - **Optimizer**: AdamW (lr=1e-3, weight_decay=1e-4)
66
- - **Scheduler**: CosineAnnealingLR
67
- - **Epochs**: 200
68
- - **Batch size**: 128
69
- - **Gradient clipping**: norm=1.0
70
- - **Dropout**: 0.3
71
 
72
- ## Hardware Deployment
73
 
74
- Trained for deployment on Catalyst N1/N2 neuromorphic processors:
75
- - Weight quantization: float → int16 (scale = threshold_hw / threshold_float)
76
- - Membrane decay: beta → decay_v = round(beta * 4096) [12-bit fractional]
77
- - Target hardware threshold: 1000
78
- - Deployment via: `python shd_deploy.py --checkpoint shd_model.pt`
79
-
80
- ## Files
81
-
82
- - `shd_model.pt` — PyTorch checkpoint (float32 weights)
83
- - `config.json` — Model architecture and training config
84
 
85
- ## Usage
86
 
87
  ```python
88
- # Install SDK
89
- pip install catalyst-cloud
90
-
91
- # Or use directly with PyTorch
92
- import torch
93
- checkpoint = torch.load("shd_model.pt")
 
 
94
  ```
95
 
96
- For FPGA deployment, use the Catalyst SDK:
97
- ```bash
98
- pip install catalyst-neurocore
99
- python -c "from neurocore import Network; print('SDK ready')"
100
- ```
101
-
102
- ## Dataset
103
 
104
- [Spiking Heidelberg Digits (SHD)](https://zenkelab.org/resources/spiking-heidelberg-digits-shd/)
105
- - ~8,000 training samples, ~2,600 test samples
106
- - 700-channel cochlea model spike recordings of spoken digits
107
- - 20 classes (digits 0-9 in German and English)
108
 
109
  ## Citation
110
 
111
- [https://doi.org/10.5281/zenodo.18727094]
112
-
113
- ## License
114
-
115
- Model weights: Apache 2.0
116
- SDK: BSL 1.1 (source-available, free for research)
117
-
118
- ## Links
119
-
120
- - [GitHub](https://github.com/catalyst-neuromorphic/catalyst-neurocore)
121
- - [Cloud API](https://catalyst-neuromorphic.com/cloud)
122
- - [Website](https://catalyst-neuromorphic.com)
 
1
  ---
2
+ language: en
3
+ license: mit
4
+ library_name: pytorch
 
5
  tags:
6
  - spiking-neural-network
7
  - neuromorphic
8
+ - surrogate-gradient
9
+ - benchmark
10
+ - catalyst
11
+ - shd
12
  datasets:
13
+ - shd
14
  metrics:
15
  - accuracy
16
  model-index:
17
+ - name: Catalyst SHD SNN Benchmark
18
  results:
19
  - task:
20
  type: audio-classification
21
  name: Spoken Digit Classification
22
  dataset:
23
  name: Spiking Heidelberg Digits (SHD)
24
+ type: shd
25
  metrics:
26
+ - name: Float Accuracy
27
  type: accuracy
28
+ value: 90.68
29
+ - name: Quantized Accuracy (int16)
30
  type: accuracy
31
+ value: 90.2
32
  ---
33
 
34
+ # Catalyst SHD SNN Benchmark
35
 
36
+ Spiking Neural Network for spoken digit classification on SHD.
 
 
37
 
38
+ ## Model Description
39
 
40
+ - **Architecture**: 700 1024 (recurrent adLIF) → 20
41
+ - **Neuron model**: Adaptive Leaky Integrate-and-Fire (adLIF) with Symplectic Euler discretization
42
+ - **Training**: Surrogate gradient BPTT, fast-sigmoid surrogate (scale=25)
43
+ - **Hardware target**: Catalyst N1/N2/N3 neuromorphic processors
44
+ - **Quantization**: Float32 weights -> int16, membrane decay -> 12-bit fixed-point
 
 
 
 
45
 
46
+ ## Results
47
 
48
  | Metric | Value |
49
  |--------|-------|
50
+ | Float accuracy | 90.68% |
51
+ | Quantized accuracy (int16) | 90.2% |
52
+ | Parameters | 1,789,972 |
53
+ | Quantization loss | 0.5% |
 
 
 
 
 
 
 
 
 
 
54
 
55
+ ## Reproduce
56
 
57
+ ```bash
58
+ git clone https://github.com/catalyst-neuromorphic/catalyst-benchmarks.git
59
+ cd catalyst-benchmarks
60
+ pip install -e .
61
+ python shd/train.py --device cuda:0
62
+ ```
 
 
 
 
63
 
64
+ ## Deploy to Catalyst Hardware
65
 
66
  ```python
67
+ import catalyst_cloud
68
+
69
+ client = catalyst_cloud.Client()
70
+ result = client.simulate(
71
+ model="catalyst-neuromorphic/shd-snn-benchmark",
72
+ input_data=your_spikes,
73
+ processor="n2"
74
+ )
75
  ```
76
 
77
+ ## Links
 
 
 
 
 
 
78
 
79
+ - **Benchmark repo**: [catalyst-neuromorphic/catalyst-benchmarks](https://github.com/catalyst-neuromorphic/catalyst-benchmarks)
80
+ - **Cloud API**: [catalyst-neuromorphic.com](https://catalyst-neuromorphic.com)
81
+ - **N2 paper**: [Zenodo DOI 10.5281/zenodo.18728256](https://zenodo.org/records/18728256)
82
+ - **N1 paper**: [Zenodo DOI 10.5281/zenodo.18727094](https://zenodo.org/records/18727094)
83
 
84
  ## Citation
85
 
86
+ ```bibtex
87
+ @misc{catalyst-benchmarks-2026,
88
+ author = {Shulayev Barnes, Henry},
89
+ title = {Catalyst Neuromorphic Benchmarks},
90
+ year = {2026},
91
+ url = {https://github.com/catalyst-neuromorphic/catalyst-benchmarks}
92
+ }
93
+ ```