neuromorphic-computing
Use this skill when the user says 'neuromorphic', 'spiking neural network', 'SNN', 'LIF neuron', 'Loihi', 'SpiNNaker', 'event camera', 'surrogate gradient'…
от j4flmao★ 47 звёзд на GitHub
Установить neuromorphic-computing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Neuromorphic Computing
Purpose
Neuromorphic systems compute with sparse, asynchronous spikes and keep state (membrane potentials, synaptic weights) close to where it is used, aiming at very low energy for always-on sensing and temporal processing. They are a research and niche-deployment area: promising for event-camera vision, keyword spotting, and low-power control, but tooling is immature and accuracy on standard benchmarks usually trails conventional deep networks. This skill sets realistic expectations and gives working entry points.
Agent Protocol
Trigger
"spiking neural network", "SNN", "LIF", "neuromorphic chip", "Loihi", "SpiNNaker", "event camera", "DVS", "surrogate gradient", "snnTorch", "Lava", "memristor crossbar".
Input Context
- Task (classification, detection, control), data modality (event streams vs frames vs audio).
- Power/latency constraints and target hardware (GPU simulation, Loihi 2 via research access, SpiNNaker 2, other).
- Baseline accuracy from a conventional model.
Output Artifact
Feasibility assessment, encoding and neuron model choice, training approach, framework/hardware plan, and comparison metrics.
Response Format
Task: {x} Data: {events|frames|audio} Constraint: {power/latency}
Encoding: {rate|latency/temporal|direct event input}
Neuron: {LIF (beta=...)} Training: {surrogate gradient BPTT|ANN-to-SNN conversion}
Framework: {snnTorch|Norse|SpikingJelly|Lava|Brian2/NEST (neuroscience)}
Target: {GPU simulation|Loihi 2|SpiNNaker 2|other}
Compare: accuracy, spikes/inference, latency, measured energy vs ANN baseline
Completion Criteria
- Conventional baseline exists for comparison.
- Energy claims based on measurement or hardware-specific models, not assumptions.
- Input encoding matches the data (events stay events).
- Timesteps, spike counts, and accuracy reported together.
Concepts
- Spikes: neurons emit binary events when their membrane potential crosses a threshold; information lives in spike timing and rates.
- Leaky integrate-and-fire (LIF):
U[t+1] = β·U[t] + W·X[t+1] − S[t]·θ; spikeS[t] = 1ifU[t] > θ, then reset (subtract or to zero). β ∈ (0,1) is the leak (decay). - Event-driven computation: work happens only when spikes arrive; with high sparsity this saves energy on hardware designed for it. On GPUs, SNNs are usually simulated densely and are often less efficient than ANNs.
- Address-Event Representation (AER): spikes are transmitted as (neuron address, time) packets over an on-chip network.
- Local learning: spike-timing-dependent plasticity (STDP) and other local rules enable on-chip learning; supervised accuracy today mostly comes from surrogate-gradient training.
- In-memory computing: memristor/ReRAM crossbars perform analog multiply-accumulate where weights are stored; an active research area with device variability, drift, and ADC overhead challenges, separate from (but often discussed alongside) spiking chips.
Training Approaches
| Method | Idea | Pros | Cons |
|---|---|---|---|
| Surrogate gradient + BPTT | Replace the non-differentiable spike step with a smooth surrogate in the backward pass | Best accuracy for direct training; low latency possible | Memory grows with timesteps |
| ANN-to-SNN conversion | Train ReLU ANN, map activations to firing rates | Reuses ANN tooling | Needs many timesteps; latency |
| Local plasticity (STDP) | Unsupervised, biologically inspired | On-chip learning | Lower accuracy on benchmarks |
snnTorch Example
from __future__ import annotations
import torch
import torch.nn as nn
import snntorch as snn
from snntorch import surrogate
class SpikingMLP(nn.Module):
def __init__(self, n_in: int, n_hidden: int, n_out: int, beta: float = 0.9) -> None:
super().__init__()
grad = surrogate.fast_sigmoid(slope=25)
self.fc1 = nn.Linear(n_in, n_hidden)
self.lif1 = snn.Leaky(beta=beta, spike_grad=grad)
self.fc2 = nn.Linear(n_hidden, n_out)
self.lif2 = snn.Leaky(beta=beta, spike_grad=grad)
def forward(self, x_seq: torch.Tensor) -> torch.Tensor:
"""x_seq: [time, batch, features] (spikes or currents). Returns output spikes [time, batch, out]."""
mem1, mem2 = self.lif1.init_leaky(), self.lif2.init_leaky()
out = []
for x in x_seq:
spk1, mem1 = self.lif1(self.fc1(x), mem1)
spk2, mem2 = self.lif2(self.fc2(spk1), mem2)
out.append(spk2)
return torch.stack(out)
# Rate-coded classification: predicted class = argmax of spike counts over time.
# loss = snntorch.functional.ce_rate_loss()(spk_out, targets)
Device selection follows the usual rule (CUDA → MPS → CPU); simulation cost scales with timesteps × network size.
Hardware Landscape
| Platform | Notes |
|---|---|
| Intel Loihi 2 | Research chip (2021); programmable neurons; Lava open-source framework; large systems such as Hala Point (2024) |
| Sp |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл neuromorphic-computing?
Use this skill when the user says 'neuromorphic', 'spiking neural network', 'SNN', 'LIF neuron', 'Loihi', 'SpiNNaker', 'event camera', 'surrogate gradient', 'snnTorch', 'Lava framework', 'memristor in-memory computing'. Explains event-driven spiking computation, neuron models, training methods (surrogate gradients, ANN-to-SNN conversion), hardware platforms, and when neuromorphic approaches are worth prototyping. Do NOT use for: conventional GPU deep learning (ml/deep-learning), edge inference on MCUs with standard networks (embedded-systems/edge-ai), or quantum hardware (quantum-computing/*).
Как установить скилл neuromorphic-computing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл neuromorphic-computing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…