Jax problem runner

From XuShuwenn/RedAct · View interactive version

Jax problem runner is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Process tasks listed in a config (e.g., problem.json), load inputs, apply JAX computations (reduce/map/grad/scan/jit), and save outputs with verification.

How to use this skill

Skill file

JAX Configured Task Runner

Skill for reliably executing a list of JAX computations described in a configuration file (e.g., problem.json). It emphasizes robust input loading (.npy/.npz), correct use of JAX primitives (reductions, vectorized mapping, automatic differentiation, scans, and JIT), and deterministic output saving with verification.

When to Use

Use this skill when you need to:

Core Workflow

  1. Read and validate the configuration
  1. Load inputs robustly
  1. Determine the computation pattern from the description
  1. Implement the computation with stable, shape-aware JAX code
  1. Save outputs deterministically
  1. Verify

Verification

Perform these checks per task:

Common Pitfalls and Remedies

Success Criteria

Optional Script Usage

You can import helpers from scripts/jax_task_utils.py to streamline loading, computing, and saving:

Example dispatcher outline:

  1. Load tasks from config
  2. For each task: load input(s), choose a computation pattern based on description keywords, run compute function, save result, verify

Adjust the mapping from description to compute functions to your specific tasks.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.