Neuron Deep Learning Containers#
Overview#
AWS Deep Learning Containers (DLCs) provide a set of Docker images that are pre-installed with deep learning frameworks. The containers are optimized for performance and available in Amazon Elastic Container Registry (Amazon ECR). DLCs make it straightforward to deploy custom ML environments in a containerized manner, while taking advantage of the portability and reproducibility benefits of containers.
AWS Neuron DLCs are a set of Docker images for training and serving models on AWS Trainium and Inferentia instances using AWS Neuron SDK. The sections below list all of the AWS Neuron DLCs, as well as the AWS DLCs that come pre-installed with the Neuron SDK.
Note
Starting with Neuron 2.33.0, Neuron DLC images are published on Ubuntu 26.04 only.
Ubuntu 26.04 image tags carry a -ubuntu26.04 suffix.
For the exact published tags, see the
Neuron DLC repository.
Note
Starting with Neuron 2.34.0, the pytorch-inference-vllm-neuronx and pytorch-inference-vllm-omni-neuronx
DLCs no longer include libraries for other accelerators.
See Libraries for other accelerators.
Inference Containers#
DLC Name |
DLC Link(s) |
Tutorial(s) |
|---|---|---|
Neuron Inference Containers |
||
Large Model Inference (LMI)/Deep Java Library (DJL) Containers |
||
HuggingFace Inference Containers |
||
Triton Inference Containers |
Training Containers#
DLC Name |
DLC Link(s) |
Tutorial(s) |
|---|---|---|
Neuron Training Containers |
||
HuggingFace Training Containers |
Note
Latest HuggingFace Neuron containers are also available on the HuggingFace Optimum website.
Libraries for other accelerators#
Starting with Neuron 2.34.0, the pytorch-inference-vllm-neuronx and pytorch-inference-vllm-omni-neuronx DLCs no longer include libraries for other accelerators. Neuron doesn’t use these libraries, so removing them doesn’t affect Neuron workloads. They were dependencies of the default builds of upstream packages.
The implementation code of every package is unchanged. The changes are limited to which build of each package is installed, the build options, and the NIXL packaging.
Inference DLCs#
Package |
What the vLLM and vLLM Omni images include |
|---|---|
PyTorch |
The CPU builds of |
vLLM |
vLLM built from its upstream release without kernels for other accelerators. Packages needed only by those kernels are not installed. |
NIXL |
A wheel with only the LIBFABRIC plugin, which transfers the KV cache over EFA for disaggregated inference. It is built from the upstream NIXL release with packaging changes, and installed as the |
|
|
|
The upstream package without two header files for its target for other accelerators. |
Because triton and fa3-fwd are not installed, pip check reports these missing dependencies. These messages are expected:
xgrammarrequirestriton, in vLLM and vLLM Omni.openai-whisperrequirestriton, in vLLM Omni.vllm-omnirequiresfa3-fwd, in vLLM Omni.
Training DLC#
The torch-neuronx DLC installs the CPU build of torch that PyTorch publishes. Neuron support comes from torch-neuronx. This change shipped in Neuron 2.33.1.
Installing the original packages#
If your workload needs the original packages, install them on top of the image from their usual sources, such as PyPI. Installing them can replace the package versions that Neuron tested with the image, so test your workload after you install them.
Getting started with Neuron DLC using Docker#
Using containers on AWS services#
Amazon EKS — Deploy DLCs on Kubernetes with device plugins and DRA
Amazon ECS — Run DLC tasks on ECS with node problem detection
Amazon SageMaker — Use managed ML services with Neuron
AWS Batch — Execute batch training jobs with DLCs
Amazon EC2 — Run a DLC directly on EC2 with Docker
Customizing Neuron Deep Learning Containers#
Deep Learning Containers can be customized to fit your specific project needs. To read more, visit Customize Neuron DLC.