inference-xpu-pytorch 25.07

Updated at:
Copy as MD

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

  • Ubuntu 24.04

  • Python 3.12

  • Torch 2.6.0

  • CUDA 12.6

  • ACCL-P 1.5.1-9

  • EIC 1.3.8

  • accelerate 1.8.1

  • apex 0.1

  • vllm 0.9.1+cu126

  • diffusers 0.34.0

  • transformers 4.51.3

  • flash-attn 2.7.4.post1

  • imageio 2.37.0

  • imageio-ffmpeg 0.6.0

  • ray 2.47.1

  • xformers 0.0.29.post1

  • triton 3.2.0

  • flashinfer-python 0.2.2.post1

  • xgrammar 0.1.19

  • xfuser 0.4.3.post3

  • Ubuntu 24.04

  • Python 3.12

  • Torch 2.6.0

  • CUDA 12.6

  • ACCLEP-P 1.0.0.2+888937e

  • ACCL-P 1.5.1-9

  • EIC 1.3.8

  • eic-sailshmem 1.0.2.0.g880582f

  • accelerate 1.8.1

  • diffusers 0.34.0

  • vllm 0.9.1+cu126

  • sglang 0.4.7

  • sgl-kernel 0.1.7

  • transformers 4.51.3

  • flash-attn 2.7.4.post1

  • flash_mla 1.0.0

  • flashinfer-python 0.2.6.post1

  • imageio 2.37.0

  • imageio-ffmpeg 0.6.0

  • ray 2.47.1

  • xformers 0.0.29.post1

  • triton 3.2.0

  • xgrammar 0.1.19

  • torchao 0.11.0

  • xfuser 0.4.3.post3

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 as cn-beijing or cn-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.

Note

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.

  1. Pull the inference image.

    docker pull egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-xpu-pytorch:[tag]
  2. 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-Instruct
  3. Run 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]
  4. Run an inference test to verify the conversational inference feature of vLLM.

    1. 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 1
    2. Run 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:

      image.png

      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_int8 option. 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 the sglang package to 0.4.6post1.

    • To run native DeepSeek-R1-FP8 models on vLLM, add the --quantization moe_wna16 option.

  • 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_int8 option. 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_IFNAME environment 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=hpn0 to use HPN.

Known issues

  • When using the generate interface 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.

    Important

    We 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-fusion option. 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-static option can cause insufficient GPU memory capacity on a single machine, leading to a decode out of memory error. This is a known community issue.