neuron-parallelism-planner

neuron-parallelism-planner is a skill for Claude Code, Codex from aws-neuron/neuron-agentic-development. It costs 114 tokens per session (9,869 once invoked), scanned A, original, Apache-2.0.

A planning tool for choosing how to split a transformer language model across AWS Trainium devices and cores. It estimates compute and memory costs, then compares model-splitting and context-size options before testing them on hardware.

In plain words
What is it for?
Use it to choose tensor, pipeline, context, or data parallelism settings, context buckets, and serving configurations for a model.
Why use it?
It narrows the number of configurations worth trying and provides a theoretical performance baseline. The estimates are not measurements of a running service.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to choose tensor, pipeline, context, or data parallelism settings, context buckets, and serving configurations for a model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-neuron/neuron-agentic-development/neuron-parallelism-planner
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-parallelism-planner
Clone the repo
git clone --depth 1 https://github.com/aws-neuron/neuron-agentic-development

Made for: Claude Code, Codex.

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-parallelism-planner

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-parallelism-planner/github.svg)](https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-parallelism-planner)
Your own site
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-parallelism-planner"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-parallelism-planner/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-parallelism-planner

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-parallelism-planner"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-parallelism-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,869 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.00114 $0.09869
Opus 5.5 $0.00046 $0.03948
Sonnet 5.5 $0.00023 $0.01974
Haiku 4.5 $0.00011 $0.00987

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

Security

Grade A, and why

neuron-parallelism-planner 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 21 executable files (scripts/entitlement_counter.py, scripts/entitlement_formulas.py, scripts/oracle_model.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-parallelism-planner/SKILL.md · 624 lines

How it starts

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

Neuron Parallelism Planner

Overview

Turns a model (HuggingFace config.json) + hardware spec into a parallelism and context-bucket recommendation, using an analytic hardware-entitlement model — a theoretical lower bound that picks where to point the first on-hardware sweep. The engine (scripts/planner/, see references/design.md) is a three-layer pipeline: aggregate the model into per-(class, layer-type) segments → shard each by its TP/CP/DP/EP divisor → attach the ordered component-body activation graph cut → cost it as a per-component roofline step time, then sweep the config × context-bucket grid and select under a serving objective.

There is one public planner command. It reads serving from the run-spec and dispatches automatically: "colocated" selects the global sharding planner, while "disaggregated" plans both DI roles: the prefill server and the component-aware decode server.

The aggregation is validated against a meta-device FLOP-counter oracle (a shape-exact torch module run on the meta device — no accelerator). Projection/FFN/router/lm-head FLOP and weight counts are ground-truthed, while raw prefill SDPA is compared separately with the analytic causal active-pair count (validate_oracle.py).

When to use

Use this skill to answer, before touching hardware:

  • What TP/CP/DP (and EP, for MoE) should I serve this model with, and at what batch size?
  • What decode ITL, prefill TTFT, throughput, and per-device HBM should I expect?
  • Will TP=N replicate the KV cache? How much prefix-cache headroom is left?
  • Which single-node colocated config meets my prefill-TTFT and decode-ITL SLAs at once?
  • What speedup can speculative decoding give, given a specific draft model?

Quick start

Run it from your PROJECT directory (where the harness already is) with the skill's scripts/ on PYTHONPATH — do NOT cd into the skill: generated artifacts are written under the project root, and the scripts refuse to write inside the skill package rather than pollute it.

Read the full file on GitHub · 624 lines

Files

What ships with it

39 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 Changed · +288 lines · -114 tokens per session f3d165ad8010
  2. 1mo ago First seen · 336 lines · 228 tokens per session scan A 816363456cbf

Subscribe to this mod's changes

neuron-parallelism-planner is a skill published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed yesterday), licensed Apache-2.0. It adds 114 tokens to every session and 9,869 once invoked, about $0.0005 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-10-20.

Related

neuron-parallelism-planner compared with skills from other repositories

neuron-parallelism-planner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-parallelism-planneraws-neuron/neuron-agentic-developmentSkill72yesterdayApache-2.0A114Claude Code, Codex
gke-compute-classesgoogle/skillsSkill25kyesterdayApache-2.0A83Claude Code, Codex
jetson-diagnosticNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code, Codex
holoscan-install-wheelNVIDIA/skillsSkill4.2ktodayApache-2.0A34Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k14d agoMITA113Claude Code, Codex
hsb-flashNVIDIA/skillsSkill4.2ktodayApache-2.0B94Claude Code
jetson-validate-imageNVIDIA/skillsSkill4.2ktodayApache-2.0B50Claude Code, Codex