training-xpu-pytorch 25.08

Updated at:
Copy as MD

These are the release notes for the training-xpu-pytorch 25.08 image.

Main features and bug fixes

Main features

  • Upgraded the PPU SDK to 1.6.0.

  • Upgraded PyTorch and its related components to 2.7.0+ali and Transformers to 4.53.3+ali.

  • Upgraded CuPy to 13.5.1 and bitsandbytes to 0.45.5.

Bug fixes

  • Fixed an issue in the 25.07 SGLang image where the generate interface produced incorrect inference results.

  • Fixed a deployment failure in the 25.07 vLLM image for the Qwen2.5-VL-32B-Instruct-AWQ model.

Contents

Scenario

Training / inference

Framework

pytorch

Requirements

PPU SDK 1.6.0

Core components

  • Ubuntu: 24.04

  • Python: 3.12.7+gc

  • CUDA: 12.8

  • perf: 5.4.30

  • gdb: 15.0.50.20240403-git

  • torch: 2.7.0+ali.8.ppu1.6.0.cu128

  • triton: 3.3.0+ppu1.6.0.cu128

  • transformer_engine: 2.3+ppu1.6.0.oe

  • deepspeed: 0.16.9+ali

  • flash_attn: 2.5.7+torch2.7.ppu1.6.0.cu128

  • xformers: 0.0.29.post1+ppu1.6.0.oe

  • cupy: 13.5.1+ppu1.6.0.ce

  • transformers: 4.53.3+ali

  • accelerate: 1.7.0+ali

  • diffusers: 0.34.0

  • bitsandbytes: 0.45.5+ppu1.6.0.ce

  • mmengine: 0.10.3

  • mmcv: 2.1.0+ppu1.6.0.ce

  • mmdet3d: 1.4.0+ppu1.6.0.ce

  • vllm: 0.9.1+ppu1.6.0.oe

  • pytorch-dynamic-profiler: 0.24.11

  • peft: 0.16.0

  • ray: 2.48.0

  • cumm-cu128: 0.8.1+ppu1.6.0.ce

  • spconv-cu128: 2.3.6+ppu1.6.0.ce

  • imageio-ffmpeg: 0.5.1

  • open3d: 0.19.0+ppu1.6.0.ce

  • flashinfer-python: 0.2.7.post1+ppu1.6.0.oe

  • megatron-core: 0.12.1

  • ffmpeg: 7.0.1

Assets

25.08

Public image

  • egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/training-xpu-pytorch:25.08

VPC images

  • acs-registry-vpc.{region-id}.cr.aliyuncs.com/egslingjun/{image:tag}

    {region-id} is the ID of the region where your Container Service for Kubernetes (ACK) cluster is located, such as cn-beijing or cn-wulanchabu.
    {image:tag} is the actual image name and tag.

Driver requirements

  • Driver version >= 1.1.0

Key features and enhancements

PyTorch compilation optimizations

The compilation optimization feature introduced in PyTorch 2.0 usually provides significant benefits in small-scale, single-GPU scenarios, but in LLM training, the need to incorporate memory optimization and distributed frameworks such as FSDP and Deepspeed makes it difficult for torch.compile() to provide benefits and can even cause performance degradation:

  • This optimization controls communication granularity within the DeepSpeed framework, allowing the compiler to capture a more complete computation graph and apply broader optimizations.

  • This release includes an optimized version of PyTorch with the following enhancements:

    • An optimized PyTorch compiler frontend that ensures successful compilation even when arbitrary graph breaks occur.

    • Enhanced pattern matching and dynamic shape capabilities to improve the performance of compiled code.

With these optimizations, you can typically achieve an end-to-end (E2E) throughput gain of around 20% when training an 8B LLM.

Activation checkpointing for GPU memory optimization

A model to predict memory overhead was built using extensive benchmark data from various models, clusters, and training configurations—along with system metrics like memory utilization. This allows the system to recommend the optimal number of activation checkpointing layers. Integrated into PyTorch and compatible with the DeepSpeed framework, this feature helps users optimize memory usage.

ACCL communication library

ACCL is a high-performance network communication library developed by Alibaba for Lingjun products. It is available in three versions: ACCL-N for NVIDIA GPUs, ACCL-P for PPUs, and ACCL-R for AMD accelerators. ACCL-N is based on NVIDIA NCCL, offering full compatibility and including bug fixes and optimizations for performance and stability. ACCL-P is a collective communication library built upon T-Head's open-source pccl. ACCL-R is built upon AMD's open-source ROCm rccl. This release ports key features from ACCL and ACCL-N to pccl, resolves known issues, and is deeply customized for integration with Alibaba Cloud's proprietary networking components.

End-to-end performance gain assessment

Using CNP, a cloud-native AI performance benchmarking and analysis tool, we compared the end-to-end performance of our image against standard base images, using mainstream open-source models and framework configurations. We also performed ablation studies to evaluate the performance contribution of each optimization component.

Image comparison against base images and iterative evaluation.

image.png

End-to-end performance contribution analysis of PPU core components.

The following tests, based on version 25.08, were run on a multi-node PPU cluster to evaluate and compare end-to-end training performance. The comparison includes:

  1. Base: NGC PyTorch image or PPU PyTorch image.

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

  3. ACS AI image: AC2+ACCL: Uses the AC2 BaseOS with no optimizations enabled.

  4. ACS AI image: AC2+ACCL+CompilerOpt: Uses the AC2 BaseOS with only the torch compile optimization enabled.

  5. ACS AI image: AC2+ACCL+CompilerOpt+CkptOpt: Uses the AC2 BaseOS with both torch compile and selective gradient checkpoint optimizations enabled.

image.png

Quick start

The following examples demonstrate how to pull the training-xpu-pytorch image using Docker.

Note

To use the training-xpu-pytorch image in ACS, you must select it from the Artifact Center page on the Create Workload console or specify the image reference in a YAML file.

1. Authenticate to the registry

docker login egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com

2. Enable compiler and activation checkpointing optimizations

  • Enable compilation optimization

    Use the Transformers Trainer API:

    image.png

  • Enable activation checkpointing for GPU memory optimization

    export CHECKPOINT_OPTIMIZATION=true

3. Start the container

The model training tool ljperf is built into the image and is used in this topic to explain the steps for starting a container and running a training task.

Note

For ACS products, specify the image in a YAML file.

LLM models

# Start and enter the container
docker run --rm -it --ipc=host --net=host  --privileged egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/training-xpu-pytorch:25.08

# Run the training demo
ljperf --action train --model_name deepspeed/llama3-8b

Usage recommendations

  • Do not reinstall libraries such as PyTorch and DeepSpeed because the image contains modified versions.

  • In the DeepSpeed configuration, leave the zero_optimization.stage3_prefetch_bucket_size parameter empty or set it to auto.

  • SDK 1.6.0 supports the following quantization capabilities.

  • DeepSeek R1 (671B):

    • vLLM 0.9.1: Supports per-token/per-channel a8w8 (int8), AWQ (w4a16), and GPTQ (w4a16, w8a16) quantization schemes.

    • Qwen3: vLLM 0.9.1: Supports per-token/per-channel a8w8 (int8), AWQ (w4a16), and GPTQ (w4a16, w8a16) quantization schemes.

  • The built-in environment variable NCCL_SOCKET_IFNAME in this image needs to be dynamically adjusted according to the usage scenario:

    • When a single pod requests only 1, 2, 4, or 8 GPUs for training or inference tasks, you need to set NCCL_SOCKET_IFNAME=eth0. This is the default configuration in this image.

    • When a single pod requests all 16 GPUs of an entire machine for training or inference tasks, you must set NCCL_SOCKET_IFNAME=hpn0 to use HPN.

  • We recommend using this image with the "Use the Alibaba Cloud PPU PIP service in ACS" guide to enable seamless, password-free access to the PIP service within an ACS VPC, eliminating the need for other PIP sources. This image includes a pre-configured pip.config file for ACS environments. If you are using this image outside of ACS, follow the documentation to switch to the PPU PIP service provided by PTG. You may also need to perform additional configuration based on your specific use case.

Known issues

  • VLLM stability issues

    • During multi-GPU inference, an error involving mp_distributed_executor may occur. To prevent this issue, set VLLM_WORKER_MULTIPROC_METHOD=spawn. For more information, see the open-source community.

    • A known community issue where vLLM multi-GPU inference may randomly fail. For more information, see the open-source community.

  • VLLM quantization issues

    • By default, vLLM uses the Marlin kernel for accelerated GPTQ/AWQ quantized inference. You can explicitly specify quantization gptq_acext/awq_acext to use acext for quantized inference. However, acext does not currently support quantization with act_order=True or GPTQ-Int8 quantized weights.

    • vLLM FP8 quantization depends on the SM89/90 architecture, which PPU does not natively support. vLLM 0.9.1 provides an FP8 Marlin implementation, which acts as W8A16 quantized inference and allows FP8 models to run on architectures earlier than SM89. You can use this method to run FP8 on PPUs, but it has not yet been adapted or optimized.

  • vLLM v0.9.1 estimates less available KV Cache space than v0.8.5. This can reduce concurrency in KV Cache-constrained scenarios and affect performance, such as when running DeepSeek-R1-bf16 on a single Zhenwu 810E node.

    Important

    We recommend running A8W8 quantized models on Zhenwu 810E to avoid performance degradation.