This document is relevant for: Trn2, Trn3
Get started with AWS Neuron#
Use these quickstarts to run your first workload with the AWS Neuron SDK. Each group matches a task. Pick the task you want to do, then start with the first quickstart in that group.
Note
First time using AWS Neuron? These quickstarts assume you have:
An active AWS account with EC2 access
Basic familiarity with PyTorch
SSH access to launch and connect to EC2 instances
Most of these quickstarts run on Trn2 or Trn3 instances. For installation instructions, see the Setup Guide.
Train a model#
Use TorchNeuron, the native PyTorch backend for Trainium, to train with eager mode and torch.compile. Use TorchTitan on Neuron for large-scale pre-training.
Serve LLMs#
Use the vLLM Neuron plugin to serve large language models with the standard vllm serve command and an OpenAI-compatible API.
Generate images and video#
Use the vLLM Omni Neuron plugin to run diffusion models, such as Wan2.2 text-to-video, on Trainium.
Write custom kernels#
Use the Neuron Kernel Interface (NKI) to write kernels with direct access to the NeuronCore, or use pre-optimized kernels from the NKI Library.
Profile and optimize#
Use Neuron Explorer to capture profiles and find performance bottlenecks.
Monitor cluster health#
Use Neuron Observer to detect hardware faults and find the node and device that cause them.
More quickstarts#
Get started with Neuron agentic development - Use AI agents and skills for NKI kernel and model porting work.
Get started with nrtpy - Load and run compiled NEFFs directly with the Python runtime layer.
Get started with the multi-framework DLAMI - Use the preconfigured AMI with PyTorch, JAX, and vLLM virtual environments.
Get started with Neuron DLCs using Docker - Build and run Neuron containers.