training-xpu-pytorch 25.08
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
generateinterface 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 |
|
Assets
We recommend using a VPC to accelerate image pulls and reduce pull times.
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 ascn-beijingorcn-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.

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:
Base: NGC PyTorch image or PPU PyTorch image.
ACS AI image: Base+ACCL: Uses the ACCL communication library.
ACS AI image: AC2+ACCL: Uses the AC2 BaseOS with no optimizations enabled.
ACS AI image: AC2+ACCL+CompilerOpt: Uses the AC2 BaseOS with only the torch compile optimization enabled.
ACS AI image: AC2+ACCL+CompilerOpt+CkptOpt: Uses the AC2 BaseOS with both torch compile and selective gradient checkpoint optimizations enabled.

Quick start
The following examples demonstrate how to pull the training-xpu-pytorch image using Docker.
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.com2. Enable compiler and activation checkpointing optimizations
Enable compilation optimization
Use the Transformers Trainer API:

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.
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-8bUsage 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_sizeparameter empty or set it toauto.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_IFNAMEin 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=hpn0to 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_acextto useacextfor quantized inference. However,acextdoes not currently support quantization withact_order=Trueor 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.
ImportantWe recommend running A8W8 quantized models on Zhenwu 810E to avoid performance degradation.