# jeshraghian/snntorch

Deep and online learning with spiking neural networks in Python

Repository: https://github.com/jeshraghian/snntorch
Canonical: https://ross.abutalabs.com/products/snntorch
Homepage: https://snntorch.readthedocs.io/en/latest/
Language: Python
License: MIT
License Family: permissive
Topics: pytorch, spiking-neural-networks, neuron-models, python, neural-networks, machine-learning, neuroscience, snn, spiking, spike
Last push: 2026-08-23T22:01:24+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 2165, "days_push": 10, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2036, forks 300 (observed 2026-08-28T04:06:08.059475+00:00)

## What it is
snnTorch is a Python library for gradient-based deep learning with spiking neural networks, built as an extension of PyTorch. It provides spiking neuron models that integrate with PyTorch autograd and GPU acceleration, plus utilities for loss, regularization, and model export.

## Use cases
- train spiking neural networks in python
- simulate spiking neuron models with pytorch
- build neuromorphic deep learning models
- gradient-based learning for SNNs
- export spiking neural networks to other SNN frameworks
- research neuromorphic computing and brain-inspired learning

## When to choose
- you want to train SNNs using PyTorch's autograd and GPU support
- you need ready-made spiking neuron models as recurrent units
- you are doing neuromorphic or neuroscience-inspired ML research

## When to avoid
- you need conventional continuous-activation deep learning without spiking dynamics
- you need a framework for deploying to neuromorphic hardware without additional export tooling
- you are not working in Python or PyTorch

## Facets
- artifact type: library
- maturity: active
- function: machine-learning, deep-learning, simulation
- domain: machine-learning, deep-learning, artificial-intelligence
- platform: python, cross-platform
- tags: spiking-neural-networks, pytorch, neuromorphic-computing, gradient-based-learning, neuron-models, neuroscience, gpu

## Member repositories
- jeshraghian/snntorch (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:08.059475+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:59:20.178257+00:00, confidence not recorded.
  - readme: https://github.com/jeshraghian/snntorch (fetched 2026-08-28T04:06:08.059475+00:00, sha b350666bfffd)
  - registry_pypi: https://pypi.org/pypi/snntorch/json (fetched 2026-08-29T10:39:31.108294+00:00, sha 0b9ed3dee27b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
