vLLM on AWS Trainium with the Neuron plugin

Running vLLM on Trainium means choosing a Trn2 or Trn3 instance, pairing the vllm-neuron release with its Neuron SDK, and planning around beta status. This page covers what the plugin does, how to set it up and what to confirm before committing.

On this page

When teams run vLLM on Trainium with the Neuron plugin

A team that wants AWS Trainium capacity for LLM serving behind an OpenAI-compatible API should start from vllm-neuron, which the plugin's repository describes as the recommended serving solution for LLMs on Trainium. Current releases target Trn2 and Trn3 instances and are marked Beta, so the path is viable but still maturing. Trn1 and Inf2 appear only for the legacy 0.5.3 release, which is in Maintenance. A team with Trn1 or Inferentia2 hardware already in place should treat that as a separate planning question from new capacity, not as a default starting point.

vLLM itself is Apache-2.0 licensed and has no paid edition, so the license adds no line item. The cost of this path comes from the Trainium instances, the surrounding AWS infrastructure, and the engineers who pair the Neuron SDK with the plugin, validate models, and operate the endpoint. Those costs recur, while setup and validation are largely one-time. Before committing, confirm with AWS and the plugin maintainers which instance types and Neuron SDK versions the current release supports in your region, and ask any implementation partner to price the Neuron version pairing and model validation as explicit items in the written scope.

The main risk is planning against a Beta release as if it were a stable platform. Because vLLM ships new minor releases about every two weeks, and the plugin tracks its own cadence, a deployment built today will need a scheduled upgrade plan with pinned versions, a staging run for each model, and a rollback path. Ask which vLLM and Neuron SDK combinations the current release has been tested with before you fix your version pins, and record the answer in the design document so the upgrade owner knows what was validated.

Where the Neuron plugin sits between clients and Trainium

The diagram starts with client applications sending OpenAI-compatible requests to the vLLM API server, which runs in the same node as the vllm-neuron plugin. The plugin hands model execution to the Neuron SDK, which drives the Trn2 or Trn3 devices. Multi-node runs add a network hop between nodes, shown inside the boundary that must be isolated, because vLLM's security documentation treats inter-node traffic as insecure by default. Check that the API server is the only path clients can reach, and that the metrics and control endpoints stay off the user-facing route.

Request path from clients through vLLM and the Neuron plugin to Trainium devices.

Which Trainium generation and plugin track fits each situation

This table compares the current Beta track for Trn2 and Trn3, the legacy 0.5.3 Maintenance release for Trn1 and Inf2, and a GPU path on vLLM's main supported hardware. Read each row against your existing fleet and upgrade timeline, then confirm instance availability and region support with AWS before committing.

SituationPathDecision it supports
New Trainium deployment on Trn2 or Trn3vllm-neuron current releases (Beta)Choose this track when you can accept Beta status and plan a retest before each plugin upgrade.
Trn2 or Trn3 with a production change freezevllm-neuron current releases (Beta)Confirm with your change board that a Beta component is allowed in production before you size the rollout.
Existing Trn1 or Inf2 fleetvllm-neuron 0.5.3 (Maintenance)Keep this release only as a bridge while you plan a move to Trn2 or Trn3, since it is in Maintenance and is not the current track.
Need to serve on Trn2 or Trn3 with a pinned Neuron SDKCurrent vllm-neuron release with its matching Neuron SDKPin the SDK version listed with the plugin release you test, and record that pairing in your change records.
Workload needs a mature, widely documented GPU stackvLLM on NVIDIA or AMD GPUsChoose GPUs when you need the broadest model and hardware coverage that vLLM's main installation docs describe.
Team wants Apache-2.0 code with no paid editionAny path abovePlan the cost around accelerator capacity, infrastructure, implementation and operating staff, since the software itself has no license fee.
Upgrade planning across vLLM releasesTrack vLLM minor releasesvLLM ships minor releases about every two weeks, so schedule regression tests against each plugin pairing rather than assuming stability.

How to pair vllm-neuron, vLLM and the Neuron SDK

New builds on Trn2 or Trn3 start from the current vllm-neuron releases, which the repository marks as Beta and lists as supporting these instance generations. The three components must agree: the vllm-neuron plugin version, the vLLM engine version it is built against, and the Neuron SDK release that provides the compiler and runtime for the instance. Pairings change between plugin releases, so the matrix in the repository is the source of truth for which combination to install.

  • Plugin and engine pairing: Install the vllm-neuron release that names the vLLM version it was tested with, rather than upgrading vLLM independently.
  • Neuron SDK pairing: Match the Neuron SDK release listed for that plugin release, including the driver and runtime packages on the host.
  • Beta status: Treat current releases as Beta and plan for pins to move, so record the exact versions in your build manifest.
  • Container images: If you build images, pin the base image, SDK, plugin and vLLM versions together and rebuild when any one changes.
  • Model compilation: Confirm that the compiled model artifacts are tied to the SDK version used to produce them.

Before you start, confirm the exact pins in the vllm-neuron repository and check the Neuron release notes for your target instance type.

Setting up vllm-neuron on a Trn2 or Trn3 instance

This sequence takes a Trn2 or Trn3 instance from confirmed hardware and region to a vLLM server that answers health, model listing and chat completion checks. Each step ends with a check so the team knows it can move on.

  1. Confirm instance generation and region

    The platform engineering lead confirms that the target instance is a Trn2 or Trn3 type and that it is available in the region where the data must stay. Trn1 and Inf2 hardware belongs to the legacy 0.5.3 path described elsewhere on this page, so it should not be used for a new build. Record the instance type, region, availability zone and the attached Neuron device count. Done means the instance launches, the Neuron devices are visible to the operating system, and the team has written the region choice down for compliance review.

  2. Pair the Neuron SDK version with the release

    Open the vllm-neuron repository and find the release you plan to use, then note the Neuron SDK version that release names as its requirement. Install that SDK version on the instance rather than the newest one you find elsewhere. Check the release notes for the current Beta status and any known limits for Trn2 or Trn3. Done means the installed SDK version matches the pairing in the release notes and the Neuron tools report the expected devices. Confirm each pin with the vllm-neuron repository instructions before you proceed.

  3. Install vllm-neuron into an isolated environment

    The engineer creates a dedicated Python environment on the instance and installs the vllm-neuron release that matches the SDK pin from the previous step. Keep the vLLM version and the plugin version recorded together, because each vllm-neuron release is built against a specific vLLM base. Pin the exact versions in a requirements file under version control. Done means the environment imports the vLLM package and the Neuron plugin without errors, and the installed versions match the recorded pins.

  4. Load model weights from storage you control

    The engineer copies the model weights and tokenizer files into storage the organization controls, such as a mounted volume or an internal object store, and points the server at that local path. Confirm the model is supported by the chosen vllm-neuron release, and confirm the chat template is present in the tokenizer files or supply one with the chat template option. Verify checksums against the values recorded by the model owner. Done means the files are readable from the instance, the checksums match, and the model directory is listed in the change record.

  5. Start the server with vllm serve

    The engineer starts the OpenAI-compatible server with vllm serve, pointing it at the local model path and setting the Neuron-specific options named in the vllm-neuron instructions for the chosen model. Bind the server to a private interface, not a public address. If the deployment spans more than one node, the isolated network requirement from the vLLM security docs applies before the server starts. Done means the process logs show the model loaded on the Neuron devices and the server is listening on the expected port.

  6. Check health and the model list

    From an allowed host, the engineer calls the /health endpoint and expects a successful response, then calls /v1/models and confirms the served model name appears with the expected identifier. If the check fails, the engineer reviews the server log for device, weight or memory errors before retrying. Done means both calls return successful responses and the model identifier matches the name the application team will use.

  7. Run a test chat completion

    The engineer sends one request to /v1/chat/completions with a short, non-sensitive prompt and a low max token setting. The response should be a valid chat completion object with generated text and token usage fields. Repeat the request with a second prompt to confirm the output is not empty on a warm server. Done means both requests return well-formed responses, and the team records the request, response shape and log entries as the baseline for later upgrades.

  8. Record the baseline and confirm the release path

    The engineer saves the instance type, SDK version, plugin version, vLLM version, model checksum and the exact serve command in the runbook, and confirms the plan for the next vllm-neuron release against the repository and the vLLM release notes. Restrict the endpoints that users may reach at a reverse proxy, because the --api-key option does not cover every route. Done means the runbook holds every version pin, and the team has a named owner for tracking the Beta status and upgrade windows.

Configuration choices that shape a Trainium deployment

Four decisions change how a vLLM build on Trainium is set up and operated: how the model is laid out across Neuron cores, how chat requests are formatted, how models are named for clients, and how multi-node runs communicate. Settle each one before the build starts, because each affects the flags, the network design and the upgrade work that follows.

Tensor parallel layout across Neuron cores

Tensor parallelism splits one model across the accelerator cores of a node, and the chosen degree must match the cores available on the instance and the model's shape. Confirm with the vllm-neuron documentation which tensor parallel sizes the Trn2 and Trn3 releases support for your model, and test the layout on the exact instance type you will run in production. A layout that loads on one instance size may not fit on another, so record the degree alongside the Neuron SDK pairing.

Parallelism docs

Chat template for chat completions

Models must provide a chat template, or be given one with the --chat-template option, before the chat completions API will work. Many base and fine-tuned checkpoints ship without a template that matches the serving path, so a request can fail even when the model loads. Check the template against the messages your applications send, including system prompts and tool messages, and keep the template file under version control with the model revision it was tested against.

Served model names

The served model name is the identifier client applications send in each request, and it can differ from the path where weights are stored. Choose stable names that do not change when you swap a checkpoint or upgrade the Neuron SDK, so client configuration stays valid across releases. Document the mapping from name to model revision and hardware layout, and confirm the exact option name for your vLLM release in the online serving docs.

Multi-node backend and network isolation

Multi-node runs use either Ray or vLLM's own multiprocessing backend, and the security docs state that node-to-node traffic is insecure by default, with no authorization or encryption. Whichever backend you choose, place every node on an isolated network segment and restrict which hosts can reach the coordination ports. Test the chosen backend on your Neuron instance family before committing, since supported combinations depend on the release you pair with the Neuron SDK.

Security docs

How beta status changes upgrade planning

vLLM and the Neuron plugin do not move at the same pace, so upgrade planning has to treat them as two tracks. vLLM ships new minor releases about every two weeks, with v0.31.0 on October 5, 2026 as the most recent dated release supplied for this page. The vllm-neuron plugin, which supplies the Trn2 and Trn3 path, is marked Beta. A Beta label means the behavior, flags and supported combinations can still change between releases, so a vLLM version that works today may need a different plugin release, or a different Neuron SDK pairing, next month. Confirm the current plugin release, its Neuron SDK requirement and its supported vLLM version range in the vllm-neuron repository before any change request is written.

Plan a pinned test environment that mirrors production in instance type, Neuron SDK, plugin release, vLLM version, model artifacts and serving flags. Record every pin in a single version manifest, and run your own prompt set, tool-calling tests and latency checks against each candidate pairing before it reaches users. Use a staged rollout: one Trn2 or Trn3 node or a small replica group first, then the full fleet once the endpoint checks, the /metrics scrape and error rates look normal over a period you agree in advance. Keep the previous pinned image or environment available so a rollback does not depend on rebuilding dependencies.

Trn1 and Inf2 fleets need a separate written decision. The Maintenance status of the 0.5.3 legacy release means that fleet should be treated as on a closing path rather than a moving target. Decide who approves moving it off 0.5.3, what evidence triggers the move (for example, a required model, a security fix or a Neuron SDK dependency that no longer installs), and the date by which the fleet must either migrate or be formally accepted as running an unsupported configuration. Record that decision, its owner and its review date, so the legacy path does not drift into permanent use.

Security and operations on a Trainium-hosted vLLM server

A Trainium-hosted vLLM server exposes more than its user-facing API, and several of those extra endpoints and nodes carry their own risks. The cards below cover what the vLLM security guide says about endpoint exposure and node traffic, the metrics the server publishes for operations, and the model supply chain that feeds the server.

Api-key does not cover every endpoint

The --api-key option protects only the /v1, /v2, /inference and /cohere paths. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health, and the vLLM docs warn against relying on it alone. Put a reverse proxy in front of the server that allowlists only the endpoints meant for users, then test from outside the proxy that the control paths return errors to ordinary clients. Confirm the exact route list against the Neuron plugin release you run, since the server surface can differ by version.

vLLM security docs

Pause and abort routes need restricting

The /pause, /resume and /abort_requests endpoints can change serving state for every user, and they are not covered by the API key. Blocking them at the proxy is the control, and the operations team should keep a separate, network-restricted path for maintenance actions. Document who may call them, and record each call in the proxy logs so a stopped or drained server can be traced to a cause.

Isolate multi-node traffic

The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. On Trainium, plan the node-to-node network as a private segment that only the serving hosts can reach, with no route from user networks. Confirm with the Neuron plugin documentation how the multi-node backend is configured for your Trn2 or Trn3 topology before you size that network.

Metrics endpoint as an operations signal

vLLM exposes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use, with configurable histogram buckets. Scrape these from the monitoring network rather than the user path, and alert on KV cache pressure and rising latency, since these show capacity limits before users see errors. Confirm which metric names the Neuron plugin emits in your release, because the names can differ from upstream vLLM.

vLLM metrics docs

Pin and verify model artifacts

Model weights and chat templates are loaded from storage the server trusts, so an unverified checkpoint is a direct path into your serving host. Record the source, revision and checksum of every model before it is compiled for Trainium, and store approved artifacts in a location the server can read but users cannot write. Re-verify after each Neuron SDK or plugin upgrade, because compiled artifacts depend on that version pairing.

Patch against the release cadence

vLLM ships minor releases about every two weeks, and the Neuron plugin is in Beta, so security fixes may arrive on a faster or less predictable schedule than a mature platform. Track the vllm-neuron repository and the upstream vLLM releases, test each candidate against your pinned Neuron SDK, and agree a patch window with the security team before go-live. Confirm with the plugin maintainers how advisories are published.

vLLM Neuron plugin

What buyers ask before running vLLM on Trainium

Does running vLLM on Trainium cost money, and what drives the cost?

vLLM itself is free under Apache-2.0, so the money goes to the Trainium instances you run, the surrounding AWS infrastructure and the work to get the stack running. Instance hours recur for as long as the endpoint is up, and they usually dominate the bill. Storage for model weights, networking, load balancing, logging and monitoring add recurring charges. One-time costs are the implementation and the testing needed to confirm the model, Neuron SDK and vLLM release work together. Ask any partner for a quote that separates one-time build work from recurring cloud and support costs, and check current instance pricing directly in your AWS account, since this page does not state rates.

How long does a Trainium setup take, and what makes it longer?

The duration depends on how many of the moving parts are new to your team: the Trn2 or Trn3 instance sizing, the Neuron SDK version paired with your vLLM release, the model compilation step, the OpenAI-compatible endpoint, and the observability and access controls around it. Effort grows when the target model needs compilation work, when you must support several models, or when the serving path has to pass a security review. Your team's familiarity with AWS networking and Kubernetes also matters. Ask for a written scope that lists each of these items, because that is what determines the schedule.

Is the Beta status of vllm-neuron acceptable for production?

Whether Beta is acceptable is a risk decision for your organization, not a technical default. The vllm-neuron repository marks the current releases that support Trn2 and Trn3 as Beta, so you should expect interface and behavior changes between releases. Before you decide, confirm the support statement in writing, review the release notes for the version you plan to use, and test your exact model and traffic pattern. Plan a rollback path, a pinned version and a staging environment that mirrors production. Production use is reasonable only when those controls exist and your risk owner has accepted the Beta label.

What does the work need from our platform, network and security teams?

Your platform team provides the AWS accounts, VPC layout, instance quotas, IAM roles, and the Kubernetes or EC2 deployment target. Your network team decides how the endpoint is exposed and where clients reach it. Security should review the endpoint exposure, since the vLLM --api-key option does not protect every route, including /metrics and /health, and the vLLM security docs recommend a reverse proxy that allowlists only user-facing endpoints. For multi-node runs, node-to-node traffic is insecure by default and must sit on an isolated network. Your team also owns logging, secrets handling and model weight storage. Agree these responsibilities in the scope before the build starts.

Can our own team run vLLM on Trainium without a partner?

Yes, if your team has the skills for it. The vLLM and vllm-neuron projects are open source, and the work is mostly AWS infrastructure, Neuron SDK configuration, model preparation and operations. The main gaps are usually pairing versions correctly, reading Beta release notes, building the proxy and monitoring around vLLM, and documenting evidence for a security or compliance review. Estimate internal effort honestly by listing those tasks against the skills you have, and count the people who will carry the on-call and upgrade load after launch. A partner can take on part of that work under a written scope, while your team keeps ownership of the running system.

How does the Trn1 and Inferentia2 legacy path affect our plans?

If your fleet includes Trn1 or Inf2 instances, plan for a separate track. According to the vllm-neuron repository, Trn1 and Inf2 appear only for the legacy 0.5.3 release, which is in Maintenance rather than active development. That means newer vLLM features, model support and Neuron SDK pairings are unlikely to reach those instances, so the upgrade path to Trn2 or Trn3 becomes a planning item in its own right. Confirm the status of your instance types before you commit, and decide whether existing Trn1 workloads move to Trn2 or Trn3 on a set timeline.

What does a fixed-scope DeployOpen engagement cover for this work?

A fixed-scope engagement is agreed in writing before work starts. For a Trainium deployment, the written scope typically names the instance types, the Neuron SDK and vLLM versions, the models to serve, the API surface your applications call, the network and access model, the monitoring and logging setup, and the handover material. DeployOpen plans, implements, hardens, documents and can support the system inside your own AWS accounts, and it can run security testing of the serving path. It does not issue audit reports or certifications. Ongoing support, upgrades and testing can follow under a retainer. Ask for the scope document first, since every deliverable and exclusion should be listed there.

Where to check the current plugin and vLLM documentation

Before any upgrade decision on this stack, check two sources separately: the vllm-neuron repository for plugin release tracks, the Neuron SDK pairings it lists, and the status of each release, and the vLLM releases and installation docs for the core engine. The plugin and the engine move on different schedules, so a version that is current in one place can be out of step with the other. The vllm-neuron repository is the first read, because it is where the Trn2 and Trn3 releases are marked Beta and where the Trn1 and Inf2 entries appear only for the legacy 0.5.3 release in Maintenance.

Then check the core engine in the vLLM GitHub releases and the vLLM installation docs. Confirm which vLLM minor release the plugin's current release targets, and record that pairing in your change ticket. vLLM ships new minor releases about every two weeks, so the gap between the release you tested and the newest one grows quickly. Note the release date of each candidate, since the newest minor release may not yet be the one the plugin supports.

Re-check both sources immediately before each upgrade decision, not only at the start of the project. Ask the vendor or the plugin maintainers to confirm in writing the Neuron SDK version, the vLLM version and the instance generation your target release supports, and whether that release is still Beta. Keep a dated record of what you checked and what you found, so an auditor or your own change board can see why a given pairing was approved.

How DeployOpen scopes and delivers vLLM on Trainium

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For vLLM on AWS Trainium with the Neuron plugin, that means fixing the Neuron SDK and vllm-neuron pairing, the Trn2 or Trn3 target and the access model before any build starts.

How we scope

  • Confirm the Trn2 or Trn3 instance family, region and capacity plan against the model and context lengths you need
  • Record the Neuron SDK and vllm-neuron versions as a pinned pairing, with the beta status of the release stated in the scope
  • Agree in writing whether any Trn1 or Inferentia2 workloads stay on the legacy path and for how long

How we build

  • Deploy vllm-neuron in your accounts with the OpenAI-compatible endpoints placed behind a reverse proxy that allowlists user-facing routes
  • Isolate multi-node traffic on a private network, since vLLM's multi-node communication is insecure by default
  • Wire authentication, metrics collection at /metrics, and logging into your existing identity and observability tooling

How we hand over

  • Deliver a runbook covering the pinned versions, upgrade steps, rollback procedure and the test suite used to verify each change
  • Document model compatibility, chat template requirements and the health checks your operators will use day to day
  • Provide test results, configuration records and evidence files that your compliance and security teams can review

How we support

  • Offer ongoing upgrades and continuous testing as a retainer, tracking vLLM's roughly two-week minor release cadence and Neuron SDK changes
  • Retest the deployment after each planned version change before it moves into production
  • Confirm support scope, response expectations and the owner of Neuron SDK issues in the retainer agreement before work starts

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.