neuron-framework-autoport-vllm-neuron

neuron-framework-autoport-vllm-neuron is a skill for Claude Code from aws-neuron/neuron-agentic-development. It costs 82 tokens per session (26,660 once invoked), scanned E, original, Apache-2.0.

A workflow for adapting a Hugging Face machine-learning model architecture to the vLLM-Neuron backend on AWS Trainium2. vLLM is software for serving language models, and a backend is the part that connects it to specific hardware.

In plain words
What is it for?
Use it to port a model into vLLM-Neuron, place the model code and example in the expected project folders, and optionally perform a dry run without compiling or running inference.
Why use it?
It covers the research, code changes, and checks needed when a model is not yet supported by that Trainium2 backend.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; positional $N argument; built for aider.

Good fit Use it to port a model into vLLM-Neuron, place the model code and example in the expected project folders, and optionally perform a dry run without compiling or running inference.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-framework-autoport-vllm-neuron"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-framework-autoport-vllm-neuron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 26,660 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 4 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 31
    Skill grants unrestricted tool access without appropriate constraints. An agent with unfettered tool access can perform arbitrary actions including file modification, network requests, and code execution.
    Fix: Restrict tool access to only the tools required for the skill's stated purpose. Use an explicit allowlist rather than granting blanket access.
How audits are shown
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.00082 $0.26660
Opus 5.5 $0.00033 $0.10664
Sonnet 5.5 $0.00016 $0.05332
Haiku 4.5 $0.00008 $0.02666

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

Security

Grade E, and why

neuron-framework-autoport-vllm-neuron scanned grade E with 4 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 3 executable files (scripts/spec/adapt_eagle3_head.py, scripts/spec/check_spec_config.py, scripts/spec/make_synthetic_eagle3_head.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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

**When Step 11 also applies (do not decline it in these cases):**

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- **Do not run any code** — no compilation, inference, or validation (no Trainium hardware available)

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

> - When `$HOME` is on NFS/Lustre the vLLM runner falls back to a *separate* compile cache under `/tmp/vllm_neuron_wdir_$USER/neuron/compile_cache` (see `vllm_neuron/envs.py`, `os.path.expandvars("/tmp/vllm_neuron_wdir_$

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

python3 -c "import urllib.request; print(urllib.request.urlopen('https://huggingface.co/HF_MODEL_ID/raw/main/config.json').read().decode())"
skills/neuron-framework-autoport-vllm-neuron/SKILL.md · 1,141 lines

How it starts

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

vLLM-Neuron Model Porting Skill

Port the HuggingFace model $1 to the vLLM-Neuron Trainium2 backend as $0.

Conventions

  • MODEL_NAME = $0 (snake_case, e.g., yi, deepseek_v2)
  • HF_MODEL_ID = $1 (e.g., 01-ai/Yi-6B-Chat)
  • --review flag (if present in $ARGUMENTS): pause at Step 2 for user confirmation
  • Derive PascalName from MODEL_NAME (e.g., yi → Yi, gpt_neox → GPTNeoX)
  • Model code goes in vllm_neuron/model
  • Example script goes in examples/vllm_neuron/models/MODEL_NAME/

Dry-run

When the user specifies dry-run:

  • Skip all agent-level prerequisites (package import checks, NeuronCore check via neuron-ls)
  • Activate the provided venv and resolve source paths by filesystem lookup (do NOT use import — dependencies are not installed):
    export PATH=<pathToVenv>/bin:$PATH
    VLLM_NEURON_SRC=<path-to-vllm_neuron-source>   # e.g. the vllm_neuron/ dir inside the checkout
    TRANSFORMERS_SRC=$(python3 -c "import site; print(site.getsitepackages()[0])")/transformers
    
  • Do not run any code — no compilation, inference, or validation (no Trainium hardware available)

Before You Start

Ensure the agent-level prerequisites have been completed (venv activation, package verification, NeuronCore check). These steps are owned by the agent prompt and should not be re-executed here.

Cache hygiene (read before trusting any validation result):

  • Do NOT proactively clear /var/tmp/neuron-compile-cache — it is a shared system directory and other processes or users may depend on it. Only clear it reactively on a [NLA001] JSON parse error or FileNotFoundError on neff_output paths.
  • When $HOME is on NFS/Lustre the vLLM runner falls back to a separate compile cache under /tmp/vllm_neuron_wdir_$USER/neuron/compile_cache (see vllm_neuron/envs.py, os.path.expandvars("/tmp/vllm_neuron_wdir_$USER")). The runner logs the resolved path on startup (Default compile cache path ... is on a remote filesystem ... Falling back to <PATH>.). Do not guess the path — expandvars leaves a literal $USER in the directory name when the USER env var is unset (common under Slurm/srun) but expands it when set, so a shell rm -rf /tmp/vllm_neuron_wdir_$USER/... can resolve to a different directory than the runner used. To clear it, copy the exact Falling back to ... path from the run log and rm -rf '<that exact path>'/* (single-quote to stop the shell re-expanding $USER) — and only reactively.
  • A run that hits a stale/poisoned cache can silently PASS validation against the OLD graph. After any change to model.py, before trusting a smoke/logit/equivalence result, confirm the graph was actually recompiled. The compiler logs one line per graph: a cache hit prints Using a cached neff at <path>, a fresh compile prints Compilation Successfully Completed for <name> (XLA route; on neuron_native neither line appears — compare the compile-cache directory's entries and timestamps before and after the run instead). There is no aggregate summary line — count the individual lines. If the run shows only Using a cached neff lines after you edited the model, you validated the stale graph. When in doubt, clear the correct cache path (from the log line above) and re-run.

Read the full file on GitHub · 1,141 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 · +179 lines · +42 tokens per session 227b6ea32c46
  2. 1mo ago Changed · +455 lines scan B → E 19c46641ce96
  3. 3mo ago First seen · 507 lines · 40 tokens per session scan B 06118c2aa752

Subscribe to this mod's changes

neuron-framework-autoport-vllm-neuron is a skill published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed yesterday), licensed Apache-2.0. It adds 82 tokens to every session and 26,660 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it E with 4 findings (tells the agent never to refuse, unrestricted tool access, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

neuron-framework-autoport-vllm-neuron compared with skills from other repositories

neuron-framework-autoport-vllm-neuron next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-framework-autoport-vllm-neuronaws-neuron/neuron-agentic-developmentSkill72yesterdayApache-2.0E82Claude 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