bayesflow-memory
CommunityOptimize GPU memory for BayesFlow training.
Software Engineering#training#memory optimization#gpu memory#gradient checkpointing#bayesflow#oom error
Authormatthiaskloft
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses critical GPU memory issues, including CUDA Out-of-Memory (OOM) errors and training crashes, by providing strategies to optimize memory usage within BayesFlow training pipelines.
Core Features & Use Cases
- OOM Detection & Recovery: Automatically detects and recovers from CUDA OOM errors by adjusting batch sizes or employing other memory-saving techniques.
- Gradient Checkpointing: Trades compute for memory by recomputing activations during the backward pass, significantly reducing peak memory requirements.
- Memory Probing: Intelligently probes a grid of memory configurations to find the optimal settings before training begins.
- Use Case: When your BayesFlow training job fails with a CUDA OOM error, this skill can automatically retry with a smaller batch size or enable gradient checkpointing to allow the training to complete successfully.
Quick Start
Use the bayesflow-memory skill to automatically retry training with a halved batch size when an OOM error occurs.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: bayesflow-memory Download link: https://github.com/matthiaskloft/claude-skills/archive/main.zip#bayesflow-memory Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.