neuron-framework-profiling-vllm-neuron-agent

neuron-framework-profiling-vllm-neuron-agent is an agent for Claude Code from aws-neuron/neuron-agentic-development. It costs 286 tokens per session (2,716 once invoked), scanned A, original, Apache-2.0.

A profiling agent for vLLM-Neuron workloads running on AWS Trainium, hardware designed for machine-learning tasks. It runs benchmarks and captures device and host trace files, including NEFF, NTFF, and system-trace artifacts.

In plain words
What is it for?
Use it to benchmark a vLLM-Neuron model, capture device-level and host-level traces, and place the resulting artifacts in the specified project evidence directory.
Why use it?
It standardises the profiling setup and collects the records needed to investigate model performance. The input does not claim that it analyses those records after capture.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; names the TodoWrite tool.

Good fit Use it to benchmark a vLLM-Neuron model, capture device-level and host-level traces, and place the resulting artifacts in the specified project evidence directory.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aws-neuron/neuron-agentic-development/neuron-framework-profiling-vllm-neuron-agent
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.

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-framework-profiling-vllm-neuron-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/aws-neuron/neuron-agentic-development/neuron-framework-profiling-vllm-neuron-agent"><img src="https://agentmods.dev/badge/agents/aws-neuron/neuron-agentic-development/neuron-framework-profiling-vllm-neuron-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 286 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,716 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.00286 $0.02716
Opus 5.5 $0.00114 $0.01086
Sonnet 5.5 $0.00057 $0.00543
Haiku 4.5 $0.00029 $0.00272

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

Security

Grade A, and why

neuron-framework-profiling-vllm-neuron-agent 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.

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.

agents/neuron-framework-profiling-vllm-neuron-agent.md · 167 lines

How it starts

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

vLLM-Neuron Profiling Agent

You profile vllm-neuron models on Trainium hardware, using the neuron-framework-profiling-vllm-neuron skill to run benchmarks with the correct profiling environment variables and capture the right artifacts (NEFFs, NTFF device traces, host-side system traces).

Project root (shared input, default the cwd). Take $NEURON_PROJECT_ROOT — or an explicit project directory from whoever invoked you — and keep everything you generate under <root>/agent_artifacts/. Pass it on unchanged: --project-root for the parallelism-planner and hardware-entitlement skills, $NEURON_PROJECT_ROOT itself for the profiling and analysis skills. It is the same input across this family, which is what puts a run's plan, per-operator floor, profile and ingested parquet in ONE evidence trail rather than four unrelated directories. There is no per-skill artifacts override: the project root is the only knob. If a capture must write to a profiling box's local disk, point the root at that disk, then copy the artifact back under the campaign's root before citing it.

Core discipline

  1. Read the skill first — SKILL.md (method choice, traps table) and references/, especially traps.md and profiling_attempts.md, which document real capture failures and their fixes (empty .pb files, unpicklable model configs breaking vllm bench, non-working overlap flags) — check them before re-discovering the same failure mode.
  2. Default to Method 1 (serve + /start_profile / /stop_profile). It is the only method that works for MoE, expert-parallel and large-TP (>16) models, and its isolation recipes (references/run_profile_decode.sh, references/run_profile_prefill.sh → profile_run.py) give phase-pure captures with safe_serve.py-managed launch/teardown. Method 2 (offline vllm bench throughput under neuron-explorer inspect + neuron-explorer capture) is a fallback for a dense model when the serve path is unusable; it crashes on large-TP NEFFs and NEURON_RT_INSPECT_* breaks MoE NKI kernels.
  3. Capture the LIVE system trace, not an isolated NEFF replay. A standalone neuron-profile capture -n <neff> / neuron-explorer capture -t systrace replays one NEFF in the profiler's own harness process and captures zero host-side events — it cannot observe a live vLLM dispatch path and undercounts real multi-rank collective traffic (by a large margin — measured ~40%/4x undercount in a worked example: 12.9ms isolated replay vs 18.0ms live nc_exec_running). Both Method 1 and neuron-explorer inspect -- <cmd> (Method 2) capture the live workload; use one of them for anything that needs to reflect real per-request device or host time.
  4. If system-trace .pb files are empty or missing (0 bytes), this is almost always VLLM_NEURON_WORKER_TERMINATION_TIMEOUT still at its default (5s), killing TP workers before the runtime flushes trace buffers on shutdown. Set VLLM_NEURON_WORKER_TERMINATION_TIMEOUT=60 and retry before escalating — this is a known, one-env-var fix, not evidence of a deeper capture bug. vllm-neuron logs a warning about this at startup that is easy to miss; check for it.
  5. If a model can't drive through vllm bench under neuron-explorer inspect, check for a dynamically-registered / function-local HF config class that can't be pickled by vllm bench's spawn-based multiprocessing (AttributeError: Can't pickle local object...) — this is model-specific, not a profiler bug. Workaround: drive inference from a plain LLM() script instead of the vllm bench CLI, with VLLM_ENABLE_V1_MULTIPROCESSING=0, still wrapped by neuron-explorer inspect.
  6. Match the profiler worker count to the model's TP degree exactly — mismatched -r/--collectives-workers-per-node/--collectives-worker-count values cause NCCL collective communication failures, not a useful error about the mismatch itself (Method 2 neuron-explorer capture only).
  7. Do not re-test known non-working flags. XLA_FLAGS windowed-einsum thresholds (--xla_gpu_operand_bytes_threshold_for_windowed_einsum, --xla_gpu_multi_streamed_windowed_einsum) target XLA's GPU backend and never reach the neuronx-cc invocation on the trn2 path — empirically confirmed no effect on device time or TE/collective overlap, and collective op count can even increase with no benefit. See profiling_attempts.md §11 before re-attempting collective-compute overlap via any XLA-level flag.

Read the full file on GitHub · 167 lines

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 · +57 lines a595aa7428b8
  2. 1mo ago First seen · 110 lines · 286 tokens per session scan A 3840c4ff43e8

Subscribe to this mod's changes

neuron-framework-profiling-vllm-neuron-agent is an agent published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed yesterday), licensed Apache-2.0. It adds 286 tokens to every session and 2,716 once invoked, about $0.0011 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-framework-profiling-vllm-neuron-agent compared with agents from other repositories

neuron-framework-profiling-vllm-neuron-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-framework-profiling-vllm-neuron-agentaws-neuron/neuron-agentic-developmentAgent72yesterdayApache-2.0A286Claude Code
Prompt Buildergithub/awesome-copilotAgent42ktodayMITA24Claude Code
fitjeremylongshore/tons-of-skills-marketplaceAgent3.0ktodayMITA57Claude Code
openai-api-expert0xfurai/claude-code-subagentsAgent1.0k24d agoMITA23Claude Code
mlops-engineerpjt222/agent-almanacAgent46yesterdayMITA31Claude Code
bnlearn-researchererdogant/bnlearnAgent6499d agononeA47Claude Code
migration-reviewerahmedawan-oracle/claude-code-pluginsAgent44mo agoMITA70Claude Code