All Products
Search
Document Center

Container Compute Service:training-nv-pytorch 25.02

Last Updated:Jun 20, 2026

These release notes describe the training-nv-pytorch 25.02 release.

Main features and bug fixes

Main features

  • The base image is now aligned with NGC 25.01, CUDA is upgraded to 12.8.0, and cuDNN is upgraded to 9.7.0.66.

  • ACCL-N is upgraded to 2.23.4.11 and now supports ACCL-Barex.

  • Transformers is upgraded to 4.48.3+ali, vLLM is upgraded to 0.7.2, and Ray is upgraded to 2.42.1. This release contains the features and bug fixes from these upstream versions.

Bug fixes

None for this release.

Image contents

Use cases

training / inference

Framework

PyTorch

Requirements

NVIDIA Driver release >= 570

Key components

  • Ubuntu 24.04

  • Python 3.12.7+gc

  • Torch 2.5.1.6.post2

  • CUDA 12.8.0

  • ACCL-N 2.23.4.11

  • triton 3.1.0

  • TransformerEngine 1.13.0

  • deepspeed 0.15.4+ali

  • flash-attn 2.5.8

  • flashattn-hopper 3.0.0b1

  • transformers 4.48.3+ali

  • megatron-core 0.9.0

  • grouped_gemm 1.1.4

  • accelerate 1.1.0

  • diffusers 0.31.0

  • openmim 0.3.9

  • mmengine 0.10.3

  • mmcv 2.1.0

  • mmdet 3.3.0

  • opencv-python-headless 4.10.0.84

  • ultralytics 8.2.74

  • timm 1.0.13

  • mmdet 3.3.0

  • vllm 0.7.2

  • pytorch-dynamic-profiler 0.24.11

  • perf 5.4.30

  • gdb 15.0.50

  • peft 0.13.2

  • ray 2.42.1

Image assets

Public image

  • egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/training-nv-pytorch:25.02-serverless

VPC image

acs-registry-vpc.{region-id}.cr.aliyuncs.com/egslingjun/{image:tag}
Replace {region-id} with the region where your Alibaba Cloud Container Compute Service (ACS) is activated (for example, cn-beijing or cn-wulanchabu).
Replace {image:tag} with the name and tag of the image.
Note

The inference-nv-pytorch:25.03-vllm0.8.2-pytorch2.6-cu124-20250328-serverless and inference-nv-pytorch:25.03-sglang0.4.4.post1-pytorch2.5-cu124-20250327-serverless images are compatible with ACS and Lingjun multi-tenant deployments only. It is not compatible with Lingjun single-tenant deployments.

Note
  • The egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/training-nv-pytorch:25.02-serverless image is suitable for ACS and Lingjun multi-tenant products. It is not compatible with Lingjun single-tenant products.

  • The egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/training-nv-pytorch:25.02 image is suitable for Lingjun single-tenant scenarios.

Driver requirements

  • The 25.02 release is aligned with the NGC PyTorch 25.01 image, so the driver for Golden-gpu follows the requirements of the corresponding NGC image. This release is based on CUDA 12.8.0 and requires NVIDIA driver version 570 or later. However, if you are running on a data center GPU (such as a T4 or any other data center GPU), you can use NVIDIA driver version 470.57 (or a later R470 release), 525.85 (or a later R525 release), 535.86 (or a later R535 release), or 545.23 (or a later R545 release).

  • The CUDA driver compatibility package supports only specific drivers. Therefore, you must upgrade from any R418, R440, R450, R460, R510, R520, R530, R545, and R555 drivers, which are not forward-compatible with CUDA 12.8. For a complete list of supported drivers, see CUDA Application Compatibility. For more information, see CUDA Compatibility and Upgrades.

Key features and enhancements

PyTorch compilation optimization

torch.compile(), introduced in PyTorch 2.0, often delivers strong gains for small-scale, single-GPU workloads. But LLM training depends on GPU memory optimization and distributed frameworks such as FSDP or DeepSpeed, so torch.compile() may offer limited benefits or even degrade performance.

  • Control communication granularity in the DeepSpeed framework. This helps the compiler capture a more complete compute graph and apply broader compilation optimizations.

  • Use an optimized PyTorch build:

    • The PyTorch compiler frontend is improved to ensure that compilation succeeds even if a graph break occurs in the compute graph.

    • Pattern matching and dynamic shape support are strengthened to improve post-compilation performance.

With these optimizations, 8B-parameter LLM training typically achieves an end-to-end throughput gain of about 20%.

GPU memory optimization for recomputation

A predictive model for GPU memory overhead, built on large-scale performance data—including different models, clusters, and training parameter settings, as well as system metrics such as GPU memory utilization collected during benchmarking—recommends the optimal number of activation recomputation layers. This approach is integrated into PyTorch, allowing you to achieve the performance gains of GPU memory optimization with minimal effort. This feature is now supported in the DeepSpeed framework.

ACCL

ACCL is Alibaba Cloud’s high-performance communication library built for Lingjun. ACCL-N is the GPU-focused version. ACCL-N is a high-performance communication library customized from NVIDIA NCCL. It is fully compatible with NCCL, fixes issues in the upstream NCCL release, and includes performance and stability improvements.

End-to-end performance assessment

Using CNP, a cloud-native AI performance benchmarking and analysis tool, we conducted a full end-to-end performance comparison against a standard base image with mainstream open-source models and framework configurations. We also conducted ablation studies to measure how much each optimization component contributes to overall model training performance.

End-to-end performance contribution analysis of GPU key components

The following tests are based on 25.02 and run end-to-end performance benchmarks and comparisons on a multi-node GPU cluster. The comparison items include:

  1. Base: NGC PyTorch image.

  2. ACS AI Image: Base+ACCL: Base image with the ACCL communication library.

  3. ACS AI Image: AC2+ACCL: Base image on AC2 BaseOS with ACCL.

  4. ACS AI Image: AC2+ACCL+CompilerOpt: Base image on AC2 BaseOS with ACCL and torch.compile() optimization enabled.

  5. ACS AI Image: AC2+ACCL+CompilerOpt+CkptOpt: Base image on AC2 BaseOS with ACCL, torch.compile(), and selective gradient checkpointing optimizations enabled.

image.png

Quick start

The following examples show how to pull the training-nv-pytorch image by using Docker.

Note

To use the training-nv-pytorch image in ACS, select it from the artifact center page in the console when you create a workload, or specify the image reference in a YAML file.

1. Pull the image

docker pull egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/training-nv-pytorch:[tag]

2. Enable compiler and memory optimization

  • Enable compilation optimization

    Use the Transformers Trainer API:

    training_args = TrainingArguments(
        bf16=True,
        gradient_checkpointing=True,
        torch_compile=True
    )
  • Enable GPU memory optimization for recomputation

    export CHECKPOINT_OPTIMIZATION=true

3. Launch the container

The image includes the model training tool ljperf. The following steps show how to start a container and run a training task.

LLM

# Launch and enter the container.
docker run --rm -it --ipc=host --net=host  --privileged egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/training-nv-pytorch:[tag]
# Run the training demo.
ljperf benchmark --model deepspeed/llama3-8b 

4. Usage notes

  • Do not reinstall PyTorch or DeepSpeed. The image includes changes to these libraries (which will be contributed upstream later).

  • In your DeepSpeed configuration, leave zero_optimization.stage3_prefetch_bucket_size blank or set it to auto.

Known issues