training-xpu-pytorch 25.11

Updated at:
Copy as MD

This document provides the release notes for training-xpu-pytorch 25.11.

Note
  • Before PPU SDK 1.7.0, the SDK-bundled approach for releasing Python packages resulted in long iteration cycles that could not keep pace with rapid community updates. Starting from PPU SDK 1.7.0, the PPU runtime environment decouples Python packages from the PPU SDK. The PPU SDK is now released only for major feature enhancements or updates, ending the monthly release cycle. Agile releases of Python packages now support new models and frameworks from the community.

  • Due to the change in the PPU SDK release cadence, PPU container images are also no longer released monthly. PPU container images are updated in sync with PPU SDK releases and serve as the base runtime environment for subsequent SDK versions. On the latest base runtime, you can upgrade packages to support new models and frameworks.

Main features and bug fixes

Main features

  • Upgraded PPU SDK to 1.7.0, CUDA to 12.9, and the core PyTorch component to 2.8.

  • Upgraded core training components: Transformers to 4.57.1, TransformerEngine to 2.5, and DeepSpeed to 0.18.1.

  • Upgraded the vLLM component to 0.11.1 (built-in) in the training-xpu-pytorch:25.11.post1 image.

Bug fixes

None

Contents

Image name

training-xpu-pytorch

Image tag

25.11

25.11.post1

Application scenario

Training/Inference

Training/Inference

Framework

pytorch

pytorch

Requirements

PPU SDK 1.7.0

PPU SDK 1.7.0

Core components

  • Ubuntu : 24.04

  • Python : 3.12.7+gc

  • CUDA : 12.9

  • perf : 5.4.30

  • gdb : 15.0.50.20240403-git

  • ffmpeg : 7.1.1

  • torch : 2.8.0+ali.9.ppu1.7.0.cu129

  • triton : 3.4.0+post1.ppu1.6.0.cu128

  • transformer_engine : 2.5+ppu1.7.0.oe

  • deepspeed : 0.18.1+ali

  • flash-attn : 2.7.4.post1+ppu1.7.0.oe

  • xformers : 0.0.30+ppu1.7.0.oe

  • cupy : 13.5.1+ppu1.7.0.ce

  • transformers : 4.57.1+ali

  • accelerate : 1.11.0+ali

  • diffusers : 0.34.0

  • bitsandbytes : 0.48.1+ppu1.7.0.ce

  • mmengine : 0.10.7

  • mmcv : 2.1.0+ppu1.7.0.ce

  • mmdet3d : 1.4.0+ppu1.7.0.ce

  • vllm : 0.10.2+ppu1.7.0.oe

  • pytorch-dynamic-profiler : 0.24.11

  • peft : 0.16.0

  • ray : 2.51.1

  • cumm-cu129 : 0.8.1+ppu1.7.0.ce

  • spconv-cu129 : 2.3.6+ppu1.7.0.ce

  • imageio-ffmpeg : 0.5.1

  • open3d : 0.19.0+ppu1.7.0.ce

  • flashinfer-python : 0.3.1+ppu1.7.0.oe

  • megatron-core : 0.14.0

  • Ubuntu : 24.04

  • Python : 3.12.7+gc

  • CUDA : 12.9

  • perf : 5.4.30

  • gdb : 15.0.50.20240403-git

  • ffmpeg : 7.1.1

  • torch : 2.8.0+ali.9.ppu1.7.0.cu129

  • triton : 3.4.0+post1.ppu1.6.0.cu128

  • transformer_engine : 2.8+ppu1.7.0.post1.oe

  • deepspeed : 0.18.1+ali

  • flash-attn : 2.7.4.post1+ppu1.7.0.oe

  • flash-attn-3 : 2.8.2+ppu1.7.0.post2.oe

  • xformers : 0.0.30+ppu1.7.0.oe

  • cupy : 13.5.1+ppu1.7.0.ce

  • transformers : 4.57.1+ali

  • accelerate : 1.11.0+ali

  • diffusers : 0.34.0

  • bitsandbytes : 0.48.1+ppu1.7.0.ce

  • mmengine : 0.10.7

  • mmcv : 2.1.0+ppu1.7.0.ce

  • mmdet3d : 1.4.0+ppu1.7.0.ce

  • vllm : 0.11.1+ppu1.7.0.post1.oe

  • pytorch-dynamic-profiler : 0.24.11

  • peft : 0.16.0

  • ray : 2.53.0

  • cumm-cu129 : 0.8.1+ppu1.7.0.ce

  • spconv-cu129 : 2.3.6+ppu1.7.0.ce

  • imageio-ffmpeg : 0.5.1

  • open3d : 0.19.0+ppu1.7.0.ce

  • flashinfer-python : 0.4.0rc3+ppu1.7.0.oe

  • megatron-core : 0.15.0

Assets

25.11

Public images

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

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

VPC images

Replace the AI container image asset URI egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/{image:tag} with acs-registry-vpc.{region-id}.cr.aliyuncs.com/egslingjun/{image:tag} for accelerated pulling of PPU AI container images from within your VPC.

  • {region-id}: The region ID of the available region for your ACS product (including Finance Cloud, Government Cloud, and others). For example: cn-beijing, cn-wulanchabu, or cn-shanghai-finance-1.

  • {image:tag}: The name and tag of the AI container image. For example: inference-xpu-pytorch:25.11-v1.7.0-vllm0.10.2-torch2.8-cu129-20251113 or training-xpu-pytorch:25.11.

Driver requirements

  • Driver version >= 1.1.0

Key features and enhancements

PyTorch compiler optimization

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.

Recomputation for 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.

E2E performance evaluation

Using CNP, a cloud-native AI performance benchmarking and analysis tool, we compared the end-to-end performance of this image against the standard base image, using mainstream open-source models and framework configurations. Through ablation studies, we further evaluated the contribution of each optimization component to the overall model training performance.

Image vs. Base Image and Previous Release

image.png

E2E performance contribution analysis of PPU core components

The following tests were run on a multi-node PPU cluster using version 25.11 to evaluate and compare E2E training performance. The configurations compared include:

  1. Base: PPU PyTorch image.

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

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

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

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

image.png

Quick start

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

Note

In ACS, you can use the training-xpu-pytorch image by entering its address when you create a workload in the console, or by referencing it in a YAML file.

1. Log in to the image registry

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

2. Enable compiler and recomputation memory optimizations

  • Enable compilation optimization

    Use the torch_compile argument in the transformers Trainer:

    image.png

  • Enable recomputation for memory optimization

    export CHECKPOINT_OPTIMIZATION=true

3. Start the container

The image contains the built-in model training tool ljperf, which is used to describe the steps for starting a container and running a training task.

Note

For ACS-based products, use the image by specifying it 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.11

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

Usage notes

  • The changes in this image involve libraries such as PyTorch and DeepSpeed. Do not reinstall them.

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

  • SDK 1.7.0 supports standard quantization capabilities for various frameworks.

    • vLLM 0.10.2 (built-in) / 0.11.0 (upgraded via pip): Supports per-token/per-channel a8w8 (int8), AWQ (w4a16), and GPTQ (w4a16, w8a16) quantization schemes.

    • Quantized model examples compatible with SDK 1.7.0 are available. The login credentials are the same as for the PTG PIP service (contact your PDSA to obtain them):

      • DeepSeek-R1: Supports per-token/per-channel a8w8 (int8) quantization.

      • DeepSeek v3.2: Supports per-token/per-channel a8w8 (int8) quantization.

      • Kimi-K2-Instruct: Supports per-token/per-channel a8w8 (int8) quantization.

      • Qwen3-235B-A22B: Supports per-token/per-channel a8w8 (int8) quantization.

  • For optimal performance, use this image with driver version 1.5.1 or later. For setup instructions, see Specify GPU Model and Driver Version for ACS GPU Pods and GPU Driver Version Notes.

  • To use AcclEP-P (the PPU version of DeepEP) in an ACS environment, you must set the environment variable export EIC_VSOLAR=1. This setting is required for the current image and is expected to be removed in future images.

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

    • When a single Pod requests only 1, 2, 4, or 8 GPUs for training or inference tasks: you must set NCCL_SOCKET_IFNAME=eth0 (This is the default configuration in this image).

    • If a single Pod requests all 16 cards of an entire machine for training or inference tasks, you can use HPN by setting NCCL_SOCKET_IFNAME=hpn0.

  • We recommend using this image with the Use Alibaba Cloud-provided PPU PIP Service in ACS Products. This provides a one-stop, password-free PIP service within the ACS VPC, eliminating the need to combine it with other PIP sources. The necessary pip configuration is already included in this image, but you may need to make additional configurations based on your specific use case as described in the documentation.