Skip to main content
skill CX Codex

infrarsi-optimize — Claude Code skill: setup and use

The infrarsi-optimize Claude Code skill tunes an existing GPU training job while keeping its training task unchanged. It tests launch settings and code edits to reduce step time or improve throughput.

no license ★ 99 updated 2026-11-12

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add TokenRhythm/InfraRSI --skill infrarsi-optimize -a claude-code
Open on GitHub

What infrarsi-optimize does

The skill helps tune a training launch and patch code to reduce the time per optimizer update without changing the model, data, or precision rules. InfraRSI runs each candidate against the original job and keeps only changes that pass verification. The process includes noise calibration, a search, and a back-to-back rerun of the best candidate.

First, define and agree on a contract: which settings and files may change, what stays frozen, and the run budget. The engine then runs in the background. A fresh sub-agent handles each engine question about settings or code patches, without access to earlier answers. Measurements must come from the engine; the skill does not target inference speed, model quality, or hyperparameter search.

Run the commands from the project directory with Python 3.11+, or Python 3.10 plus tomli, and PyYAML. After the user agrees, apply verified changes with infrarsi apply <run_dir> --write. If no candidate passes, the result keeps the current configuration at x1.00.

What it helps with

  • reduce optimizer-update time in a GPU training run
  • raise training MFU or throughput
  • test settings for distributed training
  • check whether a larger batch fits the run

Example prompts for the agent

  • Speed up GPU training without changing the model or data.
  • Reduce the step time in my PyTorch DDP run.
  • Tune distributed training with DeepSpeed and verify each candidate.

How to install infrarsi-optimize

1Skills CLI (Vercel)

npx skills add TokenRhythm/InfraRSI --skill infrarsi-optimize -a claude-code

2Manually: put the files in place

~/.claude/skills/infrarsi-optimize/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/infrarsi-optimize/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about infrarsi-optimize

How do I install infrarsi-optimize in Claude Code?

Run npx skills add TokenRhythm/InfraRSI --skill infrarsi-optimize -a claude-code. The skill file is at ~/.claude/skills/infrarsi-optimize/SKILL.md.

What does infrarsi-optimize do?

It tunes an existing GPU training job and checks launch-setting or code changes against the original run. Only candidates that pass verification are accepted.

What does infrarsi-optimize require?

It requires Python 3.11+, or Python 3.10 with tomli, PyYAML, and a runnable GPU training job. Run its commands from the project directory.

Similar skills

All skills for AI and ML →

From the same set19

The whole set →
validate-training-lifecycle The validate-training-lifecycle Claude Code skill checks a model-training run from checkpoint save through fresh-process resume, HF export, and forward comparison. CX Codex +1 ★ 99repo stars optimize-training-kernels The optimize-training-kernels Claude Code skill adjusts fusion settings and attention backends while checking numerical tolerances. It is triggered by slow kernels, proposed kernel changes, or numerical drift. CX Codex +1 ★ 99repo stars recompute-policy The recompute-policy Claude Code skill helps choose full, selective, or no recomputation based on memory headroom and model structure. It activates for activation-checkpointing changes, OOMs, or recompute_modules decisions. CX Codex +1 ★ 99repo stars moe-ep-communication The moe-ep-communication Claude Code skill configures expert parallelism and token dispatch for MoE in Megatron-Core 0.18.2. It activates for EP sizing, dispatcher choices, and profiling bottlenecks. CX Codex +1 ★ 99repo stars manage-memory-lifetimes The manage-memory-lifetimes Claude Code skill analyzes GPU memory failures and helps select residency, offload, and allocator settings. It activates for OOMs, allocator retries, or tight memory headroom. CX Codex +1 ★ 99repo stars discover-training-system The discover-training-system Claude Code skill inspects a training setup before performance changes. It runs at task start and when a setting appears to have no effect. CX Codex +1 ★ 99repo stars verify-training-semantics The verify-training-semantics Claude Code skill checks training changes against fixed invariants and numerical limits. It runs before run_screen, when reviewing invalid receipts, and when changes touch training behavior. CX Codex +1 ★ 99repo stars choose-parallel-layout The choose-parallel-layout Claude Code skill selects a parallel layout from per-rank memory limits and collective costs. It activates for OOM incidents, long sequences, MoE placement, or multi-node scaling. CX Codex +1 ★ 99repo stars

Project sponsors

Companies that keep this analytics open