This document is relevant for: Inf1, Inf2, Trn1, Trn2, Trn3

Neuron Agentic Development#

Neuron Agentic Development is an open source package of AI agents and skills for developing on AWS Trainium. The agents and skills run inside agentic coding environments like Claude Code and Kiro. You drive development with natural language, and the agent coordinates the technical workflow for you.

The package covers three areas today.

  1. NKI kernel development. Write, debug, profile, and analyze Neuron Kernel Interface kernels. Translate from PyTorch, NumPy, or plain language descriptions into NKI code that runs on NeuronCores.

  2. Model porting to vLLM Neuron. Port GPU-compatible Hugging Face transformer models to run on Trn2 and Trn3 through vLLM Neuron. The agent handles architecture analysis, implementation, registration, inference testing, and accuracy validation.

  3. Inference performance planning. Choose tensor, context, and data parallelism and batch size for serving an LLM before running on hardware, and find which operator binds on compute or memory within the chosen config.

Note

Source code, installation, and the full catalog of agents and skills live in the Neuron Agentic Development GitHub repository.

Applies to#

Neuron Agentic Development applies to:

  • Authoring new NKI kernels from PyTorch, NumPy, or natural-language specifications.

  • Debugging NKI kernel compilation errors.

  • Capturing and querying on-device execution profiles.

  • Identifying kernel inefficiencies such as intermediate-data spilling and redundant TensorEngine transposes.

  • Porting GPU-compatible Hugging Face transformer models to run on Trn2 and Trn3 through vLLM Neuron.

  • Looking up NKI documentation, API references, tutorials, and error codes from within an agent conversation.

What problem does it solve?#

NKI is the programming interface for writing custom compute kernels that run directly on Trainium NeuronCores. It gives you fine-grained control over the hardware’s tensor engines, vector engines, and DMA subsystem, so you can reach performance beyond what framework-level compilation alone achieves. Model porting to vLLM Neuron lets you bring new Hugging Face architectures to Trn2 and Trn3 without manually implementing each layer.

Both workflows involve multi-step technical processes (compilation, validation, profiling, debugging) that an agent can coordinate for you. You describe the goal in natural language, and the agent selects the right skills and iterates until the task is complete.

Getting Started

Install the package, set up your environment, and run your first agent.

Developer Guides

Deep dives on how skills work internally. Architecture analysis, porting workflows, compilation pipelines, and validation strategies.

Tutorials

Step by step walkthroughs for using agents and skills on real tasks.

Skills#

The package provides specialized skills that follow natural development pipelines.

Skill

Category

What it does

neuron-nki-writing

Authoring

Writes new NKI kernels or modifies existing ones from PyTorch, NumPy, or natural language.

neuron-nki-debugging

Debugging

Resolves NKI compilation errors using a categorized index of all 28 NCC error codes.

neuron-nki-profiling

Profiling

Captures execution traces on hardware and extracts JSON metrics.

neuron-nki-profile-querying

Analysis

Runs SQL queries against profile data to compute performance bounds and identify bottlenecks.

neuron-nki-docs

Documentation

Looks up API signatures, tutorials, error codes, and architecture details.

neuron-framework-autoport-vllm-neuron

Model porting

Ports GPU-compatible models to the vLLM Neuron Trainium2 backend with code generation, registration, and validation, including disaggregated inference and speculative-decoding targets.

neuron-framework-autoport

Model porting (legacy)

Ports HuggingFace models to NxD Inference. Archived: Neuron 2.33.0 is the last release that supports NxD Inference on Trn2 and Trn3. See Deep dive: Port HuggingFace models to NxD Inference with the Autoport skill (archived).

neuron-framework-equivalence

Validation

Validates numerical equivalence between a reference model and its vLLM Neuron port. Also supports NxD Inference ports (legacy).

neuron-framework-profiling-vllm-neuron

Performance profiling

Captures device and system profiles from a running vLLM Neuron server, isolating prefill and steady-state decode into separate traces.

neuron-framework-profile-analysis-vllm-neuron

Performance analysis

Localizes a bottleneck in a capture: roofline floors, collective partitioning, and per-component attribution.

neuron-parallelism-planner

Performance planning

Recommends TP, CP, and DP degrees and batch size for single-node LLM serving, colocated or disaggregated, with predicted ITL, TTFT, throughput, and HBM.

neuron-hardware-entitlement

Performance analysis

Computes per-operator compute and HBM floors for a chosen config and identifies the binding operator.

neuron-framework-optimization

Performance optimization

Drives a served model to a joint latency and throughput SLA, running the planning, entitlement, profiling, and analysis skills in a fixed order behind two decision gates.

Agents#

Agents combine multiple skills into autonomous workflows. Each agent handles multi step development scenarios end to end.

Agent

What it does

neuron-nki-agent

Unified entry point for NKI development. Auto selects the right workflow based on your request.

neuron-nki-writer-agent

Focuses on kernel authoring. Translates PyTorch, NumPy, or natural language into NKI code.

neuron-nki-debugger-agent

Autonomously analyzes compiler errors, searches docs for fixes, and applies corrections.

neuron-nki-profile-analysis-agent

Captures execution profiles on hardware and identifies inefficiencies.

neuron-framework-autoport-vllm-agent

Accepts a model name and Hugging Face model ID and runs the full vLLM Neuron porting workflow: architecture research, code generation, model registration, and validation.

neuron-framework-autoport-agent

Legacy. Ports Hugging Face models to NxD Inference. Archived: Neuron 2.33.0 is the last release that supports NxD Inference on Trn2 and Trn3. See Deep dive: Port HuggingFace models to NxD Inference with the Autoport skill (archived).

neuron-framework-profiling-vllm-neuron-agent

Captures prefill and decode profiles of a vLLM Neuron model and hands the manifest to the analysis skill.

neuron-framework-profile-analysis-vllm-neuron-agent

Analyzes a capture interactively, driven by the question you want answered.

neuron-parallelism-planner-agent

Reconciles a latency and throughput SLA into a single-node DP × TP config, colocated or disaggregated, and reports the binding constraint.

neuron-hardware-entitlement-agent

Computes per-operator floors for a chosen config and routes optimization effort to the operator with real headroom.

neuron-framework-optimization-agent

Runs an optimization campaign end to end, delegating each stage to the owning agent and refusing a verdict that is not backed by a measurement.

Supported environments#

The agents and skills run in these agentic coding environments.

  • Claude Code. Install as a plugin from the Neuron Agentic Development repository.

  • Kiro. Deploy using the provided setup script.

Writing, documentation, parallelism planning, and hardware entitlement skills work anywhere without hardware. Debugging, profiling, analysis, and model porting skills require Trainium access.

Hardware and environment requirements#

To use the full set of capabilities you need the following.

  • A Trainium instance (trn2 or trn3). The Amazon Linux 2023 Neuron DLAMI is a good starting point.

  • The Neuron SDK installed on the instance (pre installed on Neuron DLAMIs, or install aws-neuronx-tools manually).

  • A Python virtual environment with Neuron packages (neuronx-cc, torch-neuronx, vllm-neuron, neuron-explorer).

  • Claude Code or Kiro installed on the same instance. The agent and hardware are co located.

  • An Anthropic API key or equivalent credentials for the Claude model.

For writing and documentation tasks only, you can run the agent on any machine. Hardware is not required.

Limitations#

  • Hardware required for on device skills. Debugging, profiling, analysis, and model porting require Trainium access.

  • Claude model support. Current agents target Claude models. Support for additional model providers depends on demand and capability parity.

  • Evolving capability set. The agent and skill catalog is actively evolving. Treat the GitHub repository as the authoritative source for what is available today.

Responsible use#

Agent generated code should be validated before you ship it. The debugging and analysis skills check compilation and surface known issues, but they do not replace numerical correctness testing against a reference implementation on your target instance type, Neuron SDK version, and data types. Include the target instance type, Neuron SDK version, and framework version in your prompts so the generated code matches your environment.

Attribution of agent-created code#

The agents that write new NKI kernels, port models to vLLM Neuron, or optimize models mark the new source files that they create with this line:

# Created by Neuron Agentic Development (NAD)

The agents do not add the line to a file that existed before, even when they change the file.

When you tell one of these agents to run git commit, the agent adds this trailer to the commit message:

Co-Authored-By: Neuron Agentic Development (NAD) <neuron-agent@amazon.com>