JAX

Compute gradients and compile Python functions with JAX transformations.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/yonesuke/skills --skill jax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: JAX
Source: https://github.com/yonesuke/skills/tree/main/jax
Command: npx skills add https://github.com/yonesuke/skills --skill jax

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jax, jaxlib, and includes scripts (resource) components.

What problem does it solve?

JAX solves the need for high-performance, differentiable computing for ML research by providing automatic differentiation, JIT compilation, and scalable parallelism across devices.

Core Features & Use Cases

  • Automatic differentiation: gradient computation for Python code using grad/jacrev, enabling end-to-end differentiation over models.
  • Transformations & Acceleration: jit, vmap, and pmap for speed and parallelism across hardware.
  • Pytrees & Functional Programming: containers for model parameters and state with functional APIs.
  • Use Case: Rapid prototyping of ML models with deterministic execution and hardware acceleration.

Quick Start

Run a tiny experiment using jax.grad and jax.jit to train a simple linear model on a small dataset.

Frequently Asked Questions about JAX

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute gradients for machine learning models using automatic differentiation?

Automatic differentiation in JAX computes gradients for Python code using grad and jacrev, enabling end-to-end differentiation over ML models. You apply grad to your loss function to get gradient computations for training.

What's the best way to accelerate numerical computing code for GPU execution?

Accelerating numerical computing for GPU execution is done using jit compilation, which compiles Python functions just-in-time for XLA-accelerated hardware execution. This significantly speeds up ML workloads and rapid prototyping.

How do I parallelize machine learning workloads across multiple GPU devices?

Parallelizing ML workloads across multiple devices is handled by pmap for distributed parallelism and vmap for vectorized mapping. These transformations enable scalable parallelism across hardware for differentiable computing.

How do I manage model parameters and state using pytrees and functional programming?

Pytrees are container structures for managing model parameters and state through functional APIs. They enable deterministic execution by treating parameters as immutable data, ensuring reproducible ML model prototyping.

Does JAX work with XLA-accelerated execution and just-in-time compilation for ML research?

JAX works with XLA-accelerated execution and just-in-time compilation for ML research by combining Autograd-style auto-differentiation with XLA. It supports jit, grad, vmap, and pmap transformations for hardware acceleration.