Containers for PyTorch with CUDA support.
Note that the l4t-pytorch containers also include PyTorch, torchvision, and torchaudio.
CONTAINERS
pytorch:2.1 |
|
|---|---|
| Aliases | torch:2.1 |
| Requires | L4T ['>=35'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.1-all torchaudio:2.1.0 torchsde:0.2.1 torchvision:0.16.2 |
| Dockerfile | Dockerfile |
| Images | dustynv/pytorch:2.1-r35.2.1 (2023-12-11, 5.4GB)dustynv/pytorch:2.1-r35.3.1 (2023-12-14, 5.4GB)dustynv/pytorch:2.1-r35.4.1 (2023-11-05, 5.4GB)dustynv/pytorch:2.1-r36.2.0 (2023-12-14, 7.2GB) |
pytorch:2.1-all |
|
|---|---|
| Aliases | torch:2.1-all |
| Requires | L4T ['>=35'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.1 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.2 |
|
|---|---|
| Aliases | torch:2.2 |
| Requires | L4T ['>=35'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.2-all torchaudio:2.2.2 torchsde:0.2.2 torchvision:0.17.2 |
| Dockerfile | Dockerfile |
pytorch:2.2-all |
|
|---|---|
| Aliases | torch:2.2-all |
| Requires | L4T ['>=35'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.2 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.3 |
|
|---|---|
| Aliases | torch:2.3 |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.3-all torchaudio:2.3.0 torchsde:0.2.3 torchvision:0.18.0 |
| Dockerfile | Dockerfile |
pytorch:2.3-all |
|
|---|---|
| Aliases | torch:2.3-all |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.3 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.3.1 |
|
|---|---|
| Aliases | torch:2.3.1 |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.3.1-all |
| Dockerfile | Dockerfile |
pytorch:2.3.1-all |
|
|---|---|
| Aliases | torch:2.3.1-all |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.3.1 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.4 |
|
|---|---|
| Aliases | torch:2.4 |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.4-all torchaudio:2.4.0 torchsde:0.2.4 torchvision:0.19.1 |
| Dockerfile | Dockerfile |
pytorch:2.4-all |
|
|---|---|
| Aliases | torch:2.4-all |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.4 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.5 |
|
|---|---|
| Aliases | torch:2.5 |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.5-all torchaudio:2.5.0 torchsde:0.2.5 torchvision:0.20.0 |
| Dockerfile | Dockerfile |
pytorch:2.5-all |
|
|---|---|
| Aliases | torch:2.5-all |
| Requires | L4T ['==36.*'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.5 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.6 |
|
|---|---|
| Aliases | torch:2.6 |
| Requires | L4T ['>=36'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.6-all torchaudio:2.6.0 torchsde:0.2.6 torchvision:0.21.0 |
| Dockerfile | Dockerfile |
| Images | dustynv/pytorch:2.6-amd64-cu128-24.04 (2025-04-02, 6.9GB)dustynv/pytorch:2.6-r36.4.0-cu128 (2025-02-07, 3.4GB)dustynv/pytorch:2.6-r36.4.0-cu128-24.04 (2025-02-26, 3.5GB) |
pytorch:2.6-all |
|
|---|---|
| Aliases | torch:2.6-all |
| Requires | L4T ['>=36'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.6 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.7 |
|
|---|---|
| Aliases | torch:2.7 |
| Requires | L4T ['>=36'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn python numpy cmake onnx |
| Dependants | pytorch:2.7-all torchaudio:2.7.0 torchsde:0.2.7 torchtext:0.18.0 torchvision:0.22.0 |
| Dockerfile | Dockerfile |
| Images | dustynv/pytorch:2.7-r36.4.0 (2025-04-18, 6.3GB)dustynv/pytorch:2.7-r36.4.0-cu128-24.04 (2025-04-18, 5.5GB) |
pytorch:2.7-all |
|
|---|---|
| Aliases | torch:2.7-all |
| Requires | L4T ['>=36'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.7 pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
pytorch:2.8-all |
|
|---|---|
| Aliases | torch:2.8-all pytorch:all torch:all |
| Requires | L4T ['>=36'] |
| Dependencies | build-essential pip_cache:cu126 cuda:12.6 cudnn:9.3 python numpy cmake onnx pytorch:2.8 torchvision torchaudio triton torchao tensorrt torch2trt pytorch3d huggingface_hub rust transformers diffusers xformers cuda-python cutlass flash-attention pycuda jupyterlab |
| Dockerfile | Dockerfile |
CONTAINER IMAGES
Container images are compatible with other minor versions of JetPack/L4T:
• L4T R32.7 containers can run on other versions of L4T R32.7 (JetPack 4.6+)
• L4T R35.x containers can run on other versions of L4T R35.x (JetPack 5.1+)
RUN CONTAINER
To start the container, you can use jetson-containers run and autotag, or manually put together a docker run command:
# automatically pull or build a compatible container image
jetson-containers run $(autotag pytorch)
# or explicitly specify one of the container images above
jetson-containers run dustynv/pytorch:2.7-r36.4.0-cu128-24.04
# or if using 'docker run' (specify image and mounts/ect)
sudo docker run --runtime nvidia -it --rm --network=host dustynv/pytorch:2.7-r36.4.0-cu128-24.04
jetson-containers runforwards arguments todocker runwith some defaults added (like--runtime nvidia, mounts a/datacache, and detects devices)
autotagfinds a container image that's compatible with your version of JetPack/L4T - either locally, pulled from a registry, or by building it.
To mount your own directories into the container, use the -v or --volume flags:
jetson-containers run -v /path/on/host:/path/in/container $(autotag pytorch)To launch the container running a command, as opposed to an interactive shell:
jetson-containers run $(autotag pytorch) my_app --abc xyzYou can pass any options to it that you would to docker run, and it'll print out the full command that it constructs before executing it.
BUILD CONTAINER
If you use autotag as shown above, it'll ask to build the container for you if needed. To manually build it, first do the system setup, then run:
jetson-containers build pytorchThe dependencies from above will be built into the container, and it'll be tested during. Run it with --help for build options.