inference-xpu-pytorch 25.07
These release notes describe the 25.07 release of inference-xpu-pytorch.
Main features and bug fixes
Main features
Upgraded the PPU SDK in the base image to v1.5.3.
Added support for vLLM v0.9.1.
Added support for SGLang v0.4.7.
Added support for FlashInfer v0.2.6.post1.
Improved the performance of sailSHMEM.
Bug fixes
Fixed an accuracy issue in acext caused by passing a bias to the w8a8-int8 gemm interface. Resolved a crash in the int8_gemm API during CUDA graph capture.
Resolved an issue where the Torch profiler reported abnormal performance data in the PyTorch 2.6 environment.
Fixed inference accuracy issues for the Qwen3-235B-A22B and Llama-4-Scout-17B-16E-Instruct models.
Contents
inference-xpu-pytorch | inference-xpu-pytorch | |
Image Tag | 25.07-v1.5.3-vllm0.9.1-torch2.6-cu126-20250721 | 25.07-v1.5.3-sglang0.4.7-torch2.6-cu126-20250717 |
Use Case | LLM inference | LLM inference |
Framework | pytorch | pytorch |
Requirements | PPU SDK v1.5.3 | PPU SDK v1.5.3 |
System Components |
|
|
Image assets
We recommend using a VPC endpoint to accelerate AI container image pulls and reduce pull times.
Public images
egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-xpu-pytorch:25.07-v1.5.3-vllm0.9.1-torch2.6-cu126-20250721
egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-xpu-pytorch:25.07-v1.5.3-sglang0.4.7-torch2.6-cu126-20250717
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.
E2E performance evaluation
In vLLM's online inference mode, we measured the maximum concurrency and compared throughput while maintaining a Time to First Token (TTFT) of less than 3s and a Time Per Output Token (TPOT) of less than 100 ms.
vLLM v0.9.1:
For the DeepSeek-R1-bf16 model, the single-machine output token throughput has slightly decreased. For details, see Known Issues.
The single-machine output token throughput for the DeepSeek-R1-W8A8 model is 260% of the throughput of the bf16 model.
Quick start
The following example shows how to pull the inference-xpu-pytorch image using Docker and test the inference service with the Qwen2.5-7B-Instruct model.
To use the inference-xpu-pytorch image in Container Service for Kubernetes (ACK), you can select it from the artifact center page when you create a workload in the Console, or specify the image reference in a YAML file.
For instructions on using XPU large model inference images in an ACK environment, see Guide to using LLM large model inference images in ACK clusters.
For instructions on deploying the DeepSeek inference service in an ACK environment, see Quickly deploy DeepSeek V3/R1 inference service on PPU in ACK.
Pull the inference image.
docker pull egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-xpu-pytorch:[tag]Download the open-source model in ModelScope format.
pip install modelscope cd /mnt modelscope download --model Qwen/Qwen2.5-7B-Instruct --local_dir ./Qwen2.5-7B-InstructRun the following command to start and enter the container.
docker run -d -t --network=host --privileged --init --ipc=host \ --ulimit memlock=-1 --ulimit stack=67108864 \ -v /mnt/:/mnt/ \ egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-xpu-pytorch:[tag]Run an inference test to verify the conversational inference feature of vLLM.
Start the server.
python3 -m vllm.entrypoints.openai.api_server \ --model /mnt/Qwen2.5-7B-Instruct \ --trust-remote-code --disable-custom-all-reduce \ --tensor-parallel-size 1Run a test on the client.
curl http://localhost:8000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "/mnt/Qwen2.5-7B-Instruct", "messages": [ {"role": "system", "content": "You are a friendly AI assistant."}, {"role": "user", "content": "Tell me about deep learning."} ]}'The following output is returned:

For more information about using vLLM, see the vLLM documentation.
Usage recommendations
Quantization capabilities in SDK 1.5.3
vLLM 0.9.1 and SGLang 0.4.7, released in SDK 1.5.3, are not yet optimized for AWQ/GPTQ and have known performance issues. We recommend using vLLM 0.8.5 or waiting for the SDK 1.6 image release. Both vLLM 0.9.1 and SGLang 0.4.7 in SDK 1.5.3 support a8w8 (int8) quantization.
DeepSeek R1 (671B):
vLLM 0.9.1 (SDK 1.5.3): Supports per-token/per-channel a8w8 (int8) quantization. It does not support AWQ (w4a16) or GPTQ (w4a16, w8a16) due to a lack of optimization, which results in significant performance issues.
SGLang 0.4.7 (SDK 1.5.3): Supports per-token/per-channel a8w8 (int8) quantization. To run a8w8 (int8) quantized models, add the
--quantization w8a8_int8option. It does not support AWQ (w4a16) or GPTQ (w4a16, w8a16) due to a lack of optimization, which results in significant performance issues.To use AWQ (w4a16) or GPTQ (w4a16, w8a16) quantization with vLLM, you must use the SDK 1.5.2 image from inference-xpu-pytorch 25.06:
inference-xpu-pytorch:25.06-v1.5.2-vllm0.8.5-torch2.6-cu126-20250610.To use AWQ (w4a16) or GPTQ (w4a16, w8a16) quantization with SGLang, use the SDK 1.5.3 SGLang image (
inference-xpu-pytorch:25.07-v1.5.3-sglang0.4.7-torch2.6-cu126-20250717) and downgrade thesglangpackage to0.4.6post1.To run native DeepSeek-R1-FP8 models on vLLM, add the
--quantization moe_wna16option.
Qwen3:
vLLM 0.9.1 (SDK 1.5.3): Supports per-token/per-channel a8w8 (int8) quantization. It does not support AWQ (w4a16) or GPTQ (w4a16, w8a16) due to a lack of optimization, which results in significant performance issues.
SGLang 0.4.7 (SDK 1.5.3): Supports per-token/per-channel a8w8 (int8) quantization. To run an a8w8 (int8) quantized model, add the
--quantization w8a8_int8option. It does not support AWQ (w4a16) or GPTQ (w4a16, w8a16) due to a lack of optimization, which results in significant performance issues.To use AWQ (w4a16) or GPTQ (w4a16, w8a16) quantization, you must use the SDK 1.5.2 image from inference-xpu-pytorch 25.06.
For optimal performance, we recommend using this image with driver version 1.5.1 or later. See Specify GPU model and driver version for ACS GPU pods and GPU driver version notes for setup instructions.
The
NCCL_SOCKET_IFNAMEenvironment variable in this image must be set according to your use case:When a single pod requests 1, 2, 4, or 8 GPUs for an inference task, set
NCCL_SOCKET_IFNAME=eth0. This is the default configuration in this inference image.When a single pod requests all 16 GPUs on a host for an inference task, set
NCCL_SOCKET_IFNAME=hpn0to use HPN.
Known issues
When using the
generateinterface in SGLang v0.4.7, inference may produce incorrect responses. As a workaround, use the OpenAI-compatible interface.vLLM v0.9.1 estimates less available KV cache space compared to v0.8.5. This reduces concurrency in scenarios constrained by the KV cache. For example, this occurs when running DeepSeek-R1-bf16 on a single Zhenwu 810E machine.
ImportantWe recommend running a8w8 (int8) quantized models on Zhenwu 810E to avoid performance degradation.
When running DeepSeek-R1 or DeepSeek-V3 a8w8 (int8) models, SGLang v0.4.7 uses shared experts by default, whereas SGLang v0.4.6.post1 does not. As a result, the performance of SGLang v0.4.7 is lower than that of SGLang v0.4.6.post1 for these models. In SGLang v0.4.7, you can disable shared experts by using the
--disable-shared-experts-fusionoption. With this option, the performance of SGLang v0.4.7 becomes comparable to that of SGLang v0.4.6.post1.In the SGLang v0.4.7 image, setting a large value for the
--mem-fraction-staticoption can cause insufficient GPU memory capacity on a single machine, leading to adecode out of memoryerror. This is a known community issue.