#269269th of 433 in ML frameworks and libraries

snntorch

PyTorch library for training spiking neural networks with surrogate gradients

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
2.1k
License
MIT
Last commit
Oct 2026
Last release
Mar 2024
Language
Python
Stars, last 30 weeks+173
28 Apr 2026: 1,938 stars5 May 2026: 1,946 stars12 May 2026: 1,955 stars19 May 2026: 1,958 stars26 May 2026: 1,964 stars2 Jun 2026: 1,970 stars9 Jun 2026: 1,975 stars16 Jun 2026: 1,983 stars23 Jun 2026: 1,990 stars30 Jun 2026: 1,991 stars7 Jul 2026: 1,998 stars14 Jul 2026: 2,003 stars21 Jul 2026: 2,006 stars28 Jul 2026: 2,013 stars4 Aug 2026: 2,014 stars11 Aug 2026: 2,022 stars18 Aug 2026: 2,026 stars25 Aug 2026: 2,031 stars1 Sept 2026: 2,037 stars8 Sept 2026: 2,041 stars15 Sept 2026: 2,046 stars22 Sept 2026: 2,051 stars29 Sept 2026: 2,057 stars6 Oct 2026: 2,061 stars13 Oct 2026: 2,069 stars20 Oct 2026: 2,072 stars27 Oct 2026: 2,078 stars3 Nov 2026: 2,085 stars10 Nov 2026: 2,098 stars17 Nov 2026: 2,104 stars24 Nov 2026: 2,111 stars

1,938 on 28 Apr 20262,111 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

snnTorch extends PyTorch with spiking neuron models such as Leaky integrate-and-fire, used as activation layers inside nn.Sequential-style networks. It provides surrogate gradient functions, spike encoding, spike-aware loss and weight init, plotting, and import/export to other SNN libraries through NIR. Neurons are implemented as recursive functions, so membrane potential traces need not be stored for gradients.

Who it is for: Researchers and engineers training spiking neural networks in PyTorch

Strengths

  • Spiking neurons drop into PyTorch models alongside conv, linear and residual layers
  • Includes surrogate gradients, spike encoding, loss functions and weight init in one package
  • NIR import and export for moving networks to other SNN libraries
  • Seven tutorial notebooks plus advanced ones, with Colab links

Weaknesses

  • Last tagged release is 2024-03-17, well behind recent commits
  • Requires a separately installed, version-matched PyTorch for CUDA
  • Research-oriented; no deployment or neuromorphic hardware runtime included
  • NIR features need extra packages (nir, nirtorch); plotting needs matplotlib

What it needs

  • GPU optional
  • Needs PyTorch, numpy, pandas, nir>=1.0.6 (optional), nirtorch>=2.0.5 (optional), matplotlib (optional)
  • Models: Leaky integrate-and-fire neurons, 2nd order spiking neurons, recurrent LIF neurons, NIR import/export

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#267probabilityProbabilistic modeling and Bayesian inference library for TensorFlow and JAX4.4k starsApache-2.047 out of 100
#268open3d-ml3D point cloud segmentation and detection models for PyTorch and TensorFlow2.4k starscustom license47 out of 100
#270scikit-legoExtra scikit-learn transformers, metrics and models, including fairness tools1.4k starsMIT47 out of 100
#271rl_gamesPyTorch PPO and SAC trainer for GPU-vectorized robotics simulators1.4k starsMIT47 out of 100
#272dlpackCommon in-memory tensor struct for sharing tensors between ML frameworks1.3k starsApache-2.047 out of 100