Evo jax compute

From OpenLAIR/OpenSkill · View interactive version

Evo jax compute is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Implements all five JAX computation tasks - row-wise mean reduction, element-wise squaring, logistic loss gradient via jax.grad, RNN forward pass via jax.lax.scan, and JIT-compiled 2-layer MLP forward pass.

How to use this skill

Skill file

evo-jax-compute

All JAX computation logic for the five problem tasks, dispatching by problem ID.

Quick Start

import sys
sys.path.insert(0, '/app/environment/skills/evo-jax-compute/scripts')
from compute_utils import dispatch_task, compute_basic_reduce, compute_scan_rnn

# Dispatch by task ID
result = dispatch_task('basic_reduce', 'compute mean of each row', jax_data)

# Or call directly
result = compute_basic_reduce(x_array)

Key Functions

compute_basic_reduce(x)

Row-wise mean: jnp.mean(x, axis=1). Input (M,N) -> Output (M,).

compute_map_square(x)

Element-wise square: jnp.square(x). Same shape in/out.

compute_grad_logistic(data)

Gradient of logistic loss w.r.t. weights.

compute_scan_rnn(data)

RNN forward pass using jax.lax.scan.

compute_jit_mlp(data)

JIT-compiled 2-layer MLP.

dispatch_task(task_id, description, data)

Dispatch to correct compute function by exact ID match or fuzzy keyword matching.

Domain Knowledge

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.