Jax Jit And Fusion

Find and fix JIT/fusion-hygiene misses in JAX/Equinox code: expensive work running eager (un-jitted), under-fused (many tiny jits, or per-element Python loops calling un-jitted forwards), or missing `eqx.filter_jit` on a hot path. Use when "every step is slow", "GPU sits idle", "low GPU utilization", a model "runs eager" / "not jitted" / "per-crop" / "per-frame in a Python loop", or when you want to "fuse" ops, choose a "jit boundary", set up `filter_jit`, `static_argnums` / `static_argnames`, `donate_argnums` / buffer donation, or decide `lax.scan` vs an unrolled loop. Also use proactively before shipping a hot inference path, or when benchmarking eager-vs-jit (warm + block_until_ready). Complements `jax-memory-and-retracing` — fusion buys speed but can raise peak memory and trigger retraces; check both.

peabody124 Updated

File contents

peabody124/reproducible_agent_environment/tree/main/skills/jax-jit-and-fusion commit 02ce072786

Frequently asked questions

npx skillmds@latest add peabody124/jax-jit-and-fusion