neuron-nki-mxfp8-matmul-config-tuning

neuron-nki-mxfp8-matmul-config-tuning is a skill for Claude Code from aws-neuron/neuron-agentic-development. It costs 250 tokens per session (8,740 once invoked), scanned A, original, Apache-2.0.

A workflow that tunes MXFP8 matrix-multiplication kernels for a machine-learning training run on AWS Trainium. It measures candidate settings in the training environment and returns the original training setup with a configuration override, without changing source code.

In plain words
What is it for?
Use it to tune forward and backward matrix multiplication for an MXFP8 recipe and produce the configuration line needed to run it.
Why use it?
Kernel settings can behave differently with another compiler or machine, so this workflow tests them where training actually runs. A baseline-versus-tuned step-time comparison provides evidence for the selected setting.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument; mentions Claude Code.

Good fit Use it to tune forward and backward matrix multiplication for an MXFP8 recipe and produce the configuration line needed to run it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-neuron/neuron-agentic-development/neuron-nki-mxfp8-matmul-config-tuning
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aws-neuron/neuron-agentic-development --skill neuron-nki-mxfp8-matmul-config-tuning
Clone the repo
git clone --depth 1 https://github.com/aws-neuron/neuron-agentic-development

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neuron-nki-mxfp8-matmul-config-tuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-nki-mxfp8-matmul-config-tuning/github.svg)](https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-nki-mxfp8-matmul-config-tuning)
Your own site
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-nki-mxfp8-matmul-config-tuning"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-nki-mxfp8-matmul-config-tuning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neuron-nki-mxfp8-matmul-config-tuning

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-nki-mxfp8-matmul-config-tuning"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-nki-mxfp8-matmul-config-tuning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 250 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,740 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00250 $0.08740
Opus 5.5 $0.00100 $0.03496
Sonnet 5.5 $0.00050 $0.01748
Haiku 4.5 $0.00025 $0.00874

Measured today against content hash b6ff6fac7c3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neuron-nki-mxfp8-matmul-config-tuning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/ingraph_times.py, scripts/kct_worker.py, scripts/kct.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/neuron-nki-mxfp8-matmul-config-tuning/SKILL.md · 503 lines

How it starts

The opening of the file, as written. The whole thing — 503 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MXFP8 Matmul Config Tuning (no code change)

How to use (for people)

1. Where it runs. On the Trainium instance (Trn3, which MXFP8 needs) that runs your training, with the Neuron SDK installed and its Python environment active. Tuning and training must use the same environment: the same tiling compiles differently under another compiler.

2. Install NAD for your agent tool (pip install neuron-agentic-development, then deploy-neuron-agentic-development-to-claude or -to-kiro). The skill installs its own dependencies on first use (scripts/setup_env.sh, see Prerequisites); it asks before installing.

3. Tell the agent your training run (in Kiro, kiro-cli chat --agent neuron-training-mxfp8-kernel-tuning-agent; in Claude Code, any session):

input example
the training command you already run ./run_train.sh --module <recipe module> --config <your MXFP8 training config> plus your overrides
which MXFP8 recipe the config uses (its MXFP8LinearConverter options pick the kernels) a torchtitan-neuron *_mxfp8 (NKI 1x32), *_mxfp8_wrapx or *_mxfp8_wprequant recipe, or your own config's backend_options / prequantize_weights
how you launch it torchrun / run_train.sh / your own launcher, and the number of devices it uses
(several configs) the list to cover {wrapX, 1x32 + prequant} × local batch {1, 2} × {SAC, FAC}

Example prompt:

Tune the MXFP8 matmul kernels for my training run with the
neuron-nki-mxfp8-matmul-config-tuning skill. I run
  ./run_train.sh --module <recipe module> --config <my *_mxfp8_wrapx config>
on this instance. Hand back my config with its --mxfp8_matmul_configs line.

4. You get back:

  • a tuned JSON per (recipe, local batch), with a provenance file;
  • the training config out: your command plus --mxfp8_matmul_configs <json>;
  • the A/B numbers: step time and MFU against bracketing baselines, every tuned key hit=True, loss steps 1–3 matching.

Budget: one Trn3 instance. Per recipe and local batch, about 35 min of kernel search plus 15–20 training runs (≈ 2.5–3 h). SAC and full AC of the same recipe and batch share one JSON.

Read the full file on GitHub · 503 lines

Files

What ships with it

40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 503 lines · 250 tokens per session scan A b6ff6fac7c3f

Subscribe to this mod's changes

neuron-nki-mxfp8-matmul-config-tuning is a skill published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed yesterday), licensed Apache-2.0. It adds 250 tokens to every session and 8,740 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-01.

Related

neuron-nki-mxfp8-matmul-config-tuning compared with skills from other repositories

neuron-nki-mxfp8-matmul-config-tuning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-nki-mxfp8-matmul-config-tuningaws-neuron/neuron-agentic-developmentSkill72yesterdayApache-2.0A250Claude Code
spark-environment-setupwshobson/agentsSkill43kyesterdayMITA76Claude Code
spark-memory-thermal-opswshobson/agentsSkill43kyesterdayMITA59Claude Code
spark-training-gotchaswshobson/agentsSkill43kyesterdayMITA63Claude Code
inference-serving-llama-cppdavila7/claude-code-templatesSkill35kyesterdayMITA80Claude Code, Codex
supercomputertrycua/cuaSkill33ktodayMITA0Claude Code, Codex
amc-run-rtsp-calibrationNVIDIA/skillsSkill4.2ktodayApache-2.0A59Claude Code, Codex