Jax Memory And Retracing

Diagnose and prevent GPU/host memory OOMs, memory leaks, and JIT retracing in JAX/Equinox projects. Use when a process is "killed" with no traceback, when you see "OOM", "out of memory", "GPU OOM", "RESOURCE_EXHAUSTED", "memory leak", "host RAM grows", "retracing", "recompiling every step", "every step is slow", "silent crash / no traceback", "cudnn mismatch", or "cache deserialize error". Also use proactively when writing per-frame/per-step loops around jit'd functions, accumulating arrays over a long sequence, enabling a persistent compilation cache, or choosing float precision for a memory-constrained run.

peabody124 Updated

File contents

peabody124/reproducible_agent_environment/tree/main/skills/jax-memory-and-retracing commit 9cccac16bb

Frequently asked questions

npx skillmds@latest add peabody124/jax-memory-and-retracing