neurocuda/resnet18-cifar10-snn β
Deep residual SNN for CIFAR-10 classification. Gap of 0.95% at T=32. Uses direct QCFSβIF replacement without fine-tuning (standard for deep ResNets). Skip connections handled by Kahn's topology sort in NIR executor.
Model Details
- Task: image-classification
- Dataset: CIFAR-10
- Architecture: ResNet-18 (CIFAR variant, 8 residual blocks, skip connections)
- Training: ANN β QCFS β IF (direct conversion, no fine-tune). T=32.
- Status: production
Performance
- SNN Accuracy: 94.61% Β± 0.14% | Gap: +0.95% (within ANN)
- Sparsity: 93.7%
- Parameters: 11,173,962 (42.6 MB)
- Timesteps: T=32
Usage
import neurocuda as nc
# Load the pre-converted spiking model
snn, info = nc.hub.load("neurocuda/resnet18-cifar10-snn")
# The model is already spiking β binary IF/LIF spikes, stateful membrane
snn.eval()
# 4D input (single frame)
import torch
x = torch.randn(1, 2, 34, 34) # Adjust channels/size for your model
output = snn(x)
# 5D input (temporal β event cameras, video)
x5 = torch.randn(2, 16, 2, 34, 34) # (Batch, Timesteps, Channels, H, W)
output5 = snn(x5)
Hardware Compatibility
- Validated on: GPU, CPU, Loihi 2 simulator
- NIR Export: Yes β deployable to Loihi 2, SpiNNaker, FPGA
Conversion Method
ANN β QCFS β IF (direct conversion, no fine-tune). T=32.
Citation
@software{neurocuda2026,
title = {NeuroCUDA: A PyTorch-to-Neuromorphic Compiler},
author = {Krishna Varma},
year = {2026},
url = {https://github.com/neurocuda/neurocuda}
}
Limitations
This is a converted spiking neural network. Accuracy was measured on the full test set with β₯3 seeds (where noted). Performance may vary on different hardware backends. See the NeuroCUDA README for detailed benchmarking methodology.
- Downloads last month
- 6