Gradient Checkpointing (Activation Recomputation)

Community

Activation checkpointing to cut training memory.

Authorsovr610
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Gradient checkpointing addresses the memory bottleneck during training by enabling selective recomputation of activations, allowing larger models or bigger batches within fixed GPU memory.

Core Features & Use Cases

  • Activation recomputation trades compute for memory to reduce peak activations during backpropagation.
  • Supports multiple strategies (none, full, selective, sequential) and integrates with distributed wrappers like FSDP and DDP.
  • Per-timestep checkpointing for SNN components to further reduce memory in long unrolls.
  • Works with standard transformer-style architectures and hybrid brain-inspired modules.

Quick Start

Use this to reduce training memory by wrapping expensive submodules with CheckpointWrapper or applying SelectiveCheckpointer according to your memory budget.

Dependency Matrix

Required Modules

torch

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: Gradient Checkpointing (Activation Recomputation)
Download link: https://github.com/sovr610/refffiy/archive/main.zip#gradient-checkpointing-activation-recomputation

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.