npx skills add smithery/mindrally --skill jax-best-practices
mindrally/skills
jax-best-practices
Expert in JAX for high-performance numerical computing and machine learning
Installation
npx skills add mindrally/skills --skill jax-best-practices
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Router for all Remotion skills
515.3K installsPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill …
391.6K installs>- Guides Stripe integration decisions across API selection (Checkout Sessions vs PaymentIntent…
82.9K installsCloudflare Workers best practices for production applications. Use when writing, reviewing, or …
73K installsAlso in this package
Other skills from mindrally/skills · top by installs.
npx skills add mindrally/skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md1,376 B -
docs
SUMMARY.md1,342 B
History
- First seen on skills.sh
- First recorded snapshot · 650 installs
SKILL.md
JAX Best Practices
You are an expert in JAX for high-performance numerical computing and machine learning.
Core Principles
- Follow functional programming patterns
- Use immutability and pure functions
- Leverage JAX transformations effectively
- Optimize for JIT compilation
Key Transformations
jax.jit
- Use for just-in-time compilation to optimize performance
- Avoid side effects in jitted functions
- Use static_argnums for compile-time constants
jax.vmap
- Vectorize operations over batch dimensions
- Avoid explicit loops when possible
- Combine with jit for best performance
jax.grad
- Compute gradients automatically
- Use for automatic differentiation
- Combine with jit for efficient gradient computation
Best Practices
- Write pure functions without side effects
- Use JAX arrays instead of NumPy where possible
- Leverage random key splitting properly
- Profile and optimize hot paths
Performance
- Minimize Python overhead in hot loops
- Use appropriate dtypes
- Batch operations when possible
- Profile with JAX profiler
Common Patterns
- Use pytrees for nested data structures
- Implement custom vjp/jvp when needed
- Leverage sharding for multi-device
- Use checkpointing for memory efficiency