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.
git clone --depth 1 https://github.com/aws-neuron/neuron-agentic-developmentWrote 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.
[](https://agentmods.dev/agents/aws-neuron/neuron-agentic-development/neuron-framework-profiling-vllm-neuron-agent)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Read the skill first —
SKILL.md(method choice, traps table) andreferences/, especiallytraps.mdandprofiling_attempts.md, which document real capture failures and their fixes (empty.pbfiles, unpicklable model configs breakingvllm bench, non-working overlap flags) — check them before re-discovering the same failure mode. - 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 withsafe_serve.py-managed launch/teardown. Method 2 (offlinevllm bench throughputunderneuron-explorer inspect+neuron-explorer capture) is a fallback for a dense model when the serve path is unusable; it crashes on large-TP NEFFs andNEURON_RT_INSPECT_*breaks MoE NKI kernels. - Capture the LIVE system trace, not an isolated NEFF replay. A standalone
neuron-profile capture -n <neff>/neuron-explorer capture -t systracereplays 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 livenc_exec_running). Both Method 1 andneuron-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. - If system-trace
.pbfiles are empty or missing (0 bytes), this is almost alwaysVLLM_NEURON_WORKER_TERMINATION_TIMEOUTstill at its default (5s), killing TP workers before the runtime flushes trace buffers on shutdown. SetVLLM_NEURON_WORKER_TERMINATION_TIMEOUT=60and 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. - If a model can't drive through
vllm benchunderneuron-explorer inspect, check for a dynamically-registered / function-local HF config class that can't be pickled byvllm bench's spawn-based multiprocessing (AttributeError: Can't pickle local object...) — this is model-specific, not a profiler bug. Workaround: drive inference from a plainLLM()script instead of thevllm benchCLI, withVLLM_ENABLE_V1_MULTIPROCESSING=0, still wrapped byneuron-explorer inspect. - Match the profiler worker count to the model's TP degree exactly — mismatched
-r/--collectives-workers-per-node/--collectives-worker-countvalues cause NCCL collective communication failures, not a useful error about the mismatch itself (Method 2neuron-explorer captureonly). - Do not re-test known non-working flags.
XLA_FLAGSwindowed-einsum thresholds (--xla_gpu_operand_bytes_threshold_for_windowed_einsum,--xla_gpu_multi_streamed_windowed_einsum) target XLA's GPU backend and never reach theneuronx-ccinvocation 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. Seeprofiling_attempts.md§11 before re-attempting collective-compute overlap via any XLA-level flag.
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.
- today Changed · +57 lines a595aa7428b8
- 1mo ago First seen · 110 lines · 286 tokens per session scan A 3840c4ff43e8
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.
neuron-framework-profiling-vllm-neuron-agent compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| neuron-framework-profiling-vllm-neuron-agentaws-neuron/neuron-agentic-development | Agent | 72 | yesterday | Apache-2.0 | A | 286 | Claude Code |
| Prompt Buildergithub/awesome-copilot | Agent | 42k | today | MIT | A | 24 | Claude Code |
| fitjeremylongshore/tons-of-skills-marketplace | Agent | 3.0k | today | MIT | A | 57 | Claude Code |
| openai-api-expert0xfurai/claude-code-subagents | Agent | 1.0k | 24d ago | MIT | A | 23 | Claude Code |
| mlops-engineerpjt222/agent-almanac | Agent | 46 | yesterday | MIT | A | 31 | Claude Code |
| bnlearn-researchererdogant/bnlearn | Agent | 649 | 9d ago | none | A | 47 | Claude Code |
| migration-reviewerahmedawan-oracle/claude-code-plugins | Agent | 4 | 4mo ago | MIT | A | 70 | Claude Code |