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

Tutorials#

Step by step guides for using Neuron Agentic Development agents and skills on real tasks.

Note

The NxD Inference autoport tutorial is archived. Neuron 2.33.0 is the last release that supports NxD Inference on Trn2 and Trn3. See Tutorial: Port a HuggingFace model to NxD Inference using the Autoport skill (archived).

Tutorial: Port a GPU-compatible model to vLLM Neuron using the Autoport skill

Walk through porting a GPU-compatible model to vLLM Neuron on Trn2 using the Autoport vLLM Neuron agent. Covers invocation, what happens at each phase, validation, and serving the result.

Tutorial: Validate a model port using the Equivalence skill

Walk through validating a ported model against its reference using the Equivalence agent. Covers R-ratio testing, fault localization, and end-to-end accuracy verification for a vLLM Neuron port.

Tutorial: Capture prefill and decode profiles using the Profiling skill

Capture two device profiles of a vLLM Neuron model on Trainium, one containing only prefill and one containing only steady-state decode, and confirm from the manifest that each trace is real before handing it to the analysis skill.

Tutorial: Analyze a vLLM Neuron profile using the Profile Analysis skill

Work interactively with the analysis agent to find where the time goes: which graphs ran, a step’s roofline floors, its binding engine, its collective share, and which model component is responsible, with five checks that catch a plausible but wrong answer.

Tutorial: Plan a serving config using the Parallelism Planner skill

Walk through choosing a parallelism config for Granite-4.1-8B on trn2 using the Parallelism Planner agent. Covers writing a run-spec, oracle validation, reading the sweep, and inspecting a single operating point.

Tutorial: Find the binding operator using the Hardware Entitlement skill

Walk through computing per-operator floors for the planner’s recommended config using the Hardware Entitlement agent. Covers decode and prefill floors, how the binding moves with batch and context, and actual-versus-floor HBM attribution.

Tutorial: Optimize a model to meet a latency and throughput SLA using the Framework Optimization skill

Drive a served model to a joint latency and throughput target on one trn2 instance. Covers reconciling the SLA into a single serving config, the feasibility and capture gates, the config sweep that usually pays most, and reading the final verdict.

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