BrainAI Spiking Core (LIF Family) + Surrogate Gradient Training

Community

Train LIF-based spiking cores with surrogates.

Authorsovr610
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Explicitly manage spiking neuron state to prevent hidden leakage and to enable stable, testable training with surrogate gradients, aligning behavior across CPU/GPU and research experiments.

Core Features & Use Cases

  • Explicit state contract for LIF-family neurons (LIF, AdaptiveLIF, RecurrentLIF, AdvancedLIF) to support deterministic resets, carry, and clean sequence processing.
  • Time-unrolled SNN support with a unified snn_unroll utility for truncated BPTT, plus surrogate gradient options (ATan, FastSigmoid, STE) and diagnostics.
  • Extensibility and debugging aids: references, assets templates, and scripts for testing and validation.

Quick Start

Create a tiny network using LIFNeuron with a short input sequence and run it through snn_unroll to observe spikes and state transitions.

Dependency Matrix

Required Modules

torchpytest

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: BrainAI Spiking Core (LIF Family) + Surrogate Gradient Training
Download link: https://github.com/sovr610/refffiy/archive/main.zip#brainai-spiking-core-lif-family-surrogate-gradient-training

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.