inference-xpu-pytorch 25.08

Updated at:
Copy as MD

These are the release notes for inference-xpu-pytorch 25.08.

Main features and bug fixes

Main features

  • Upgraded the PPU SDK in the base image to v1.6.0.

  • Added support for flashinfer 0.2.6.post1.

Bug fixes

  • Fixed an issue in the 25.07 SGLang image where the generate API returned incorrect inference responses.

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

Contents

inference-xpu-pytorch

inference-xpu-pytorch

Image tag

25.08-v1.6.0-vllm0.9.1-torch2.7-cu128-20250815

25.08-v1.6.0-sglang0.4.7-torch2.7-cu128-20250811

Use case

LLM inference

LLM inference

Framework

pytorch

pytorch

Requirements

PPU SDK v1.6.0

PPU SDK v1.6.0

System components

  • Ubuntu 24.04

  • Python 3.12

  • Torch 2.7.0

  • CUDA 12.8

  • ACCL-P 1.6.0-10

  • EIC 1.3.8.2

  • eic-sailshmem 1.0.3.1.0.gda3c51b

  • accelerate 1.9.0

  • apex 0.1

  • deepseed 0.14.4

  • vllm 0.9.1

  • diffusers 0.34.0

  • transformers 4.51.3

  • flash-attn 2.7.4.post1

  • imageio 2.37.0

  • imageio-ffmpeg 0.6.0

  • peft 0.12.0

  • ray 2.48.0

  • xformers 0.0.30

  • triton 3.3.0+git36ef89f7

  • flashinfer-python 0.2.6.post1

  • xgrammar 0.1.19

  • xfuser 0.4.4

  • Ubuntu 24.04

  • Python 3.12

  • Torch 2.7.0

  • CUDA 12.8

  • ACCL-P 1.6.0-10

  • AcclEP-P 1.0.0.4+9fab99e

  • EIC 1.3.8.2

  • eic-sailshmem 1.0.3.1.0.gda3c51b

  • accelerate 1.9.0

  • 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.48.0

  • peft 0.12.0

  • xformers 0.0.29.post1

  • triton 3.3.0+git36ef89f7

  • xgrammar 0.1.19

  • torchao 0.11.0

  • xfuser 0.4.4

Image assets

We recommend that you accelerate AI container image pulls over VPC to reduce pull times.

Public images

  • egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-xpu-pytorch:25.08-v1.6.0-vllm0.9.1-torch2.7-cu128-20250815

  • egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-xpu-pytorch:25.08-v1.6.0-sglang0.4.7-torch2.7-cu128-20250811

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.

Performance evaluation

We tested vLLM's online inference throughput by finding the maximum concurrency that meets the following conditions: Time to First Token (TTFT) below 3s and Time Per Output Token (TPOT) below 100ms.

  • vllm0.9.1:

    • This release restores the single-node Output Token Throughput for the DeepSeek-R1-bf16 model, which had regressed in version 25.07.

    • The single-node Output Token Throughput of the DeepSeek-R1-W8A8 model is 197% that 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

  • DeepSeek R1 (671B):

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

    • SGLang 0.4.7: Supports per-token/per-channel a8w8 (int8), AWQ (w4a16), and GPTQ (w4a16, w8a16) quantization schemes. Running an a8w8 (int8) quantized model requires the --quantization w8a8_int8 option.

  • Qwen3:

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

    • SGLang 0.4.7: Supports per-token/per-channel a8w8 (int8), AWQ (w4a16), and GPTQ (w4a16, w8a16) quantization schemes. Running an a8w8 (int8) quantized model requires the --quantization w8a8_int8 option.

  • For optimal performance, we recommend using this image with driver version 1.5.1 or later. For setup instructions, see Specify the GPU model and driver version for an ACS GPU pod and GPU driver version notes.

  • The built-in environment variable NCCL_SOCKET_IFNAME in this image must be dynamically adjusted depending on the use case:

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

    • When a single Pod requests all 16 GPUs of an entire machine for an inference task, set NCCL_SOCKET_IFNAME=hpn0 to use HPN.

  • We recommend using this image with the PPU PIP service provided by Alibaba Cloud. It enables one-stop, password-free access to the PIP service from within an ACS VPC, eliminating the need for other PIP sources. The image includes the required pip configuration, but you may need to configure it further for your use case, as described in the documentation.

Known issues

  • vLLM stability issues:

    • During multi-GPU inference, an error may occur when using mp_distributed_executor. Use VLLM_WORKER_MULTIPROC_METHOD=spawn to avoid this issue. For more information, see the open source community.

    • vLLM may randomly exit after multi-GPU inference completes. This is a known community issue, see the open source community for details.

  • vLLM quantization issues:

    • By default, vLLM uses the Marlin kernel to accelerate 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 (in practice, W8A16 quantized inference) that allows FP8 models to run on architectures with SM < 89. PPU can run FP8 models this way, but it has not yet been adapted or optimized for PPU.

  • Compared to v0.8.5, vLLM v0.9.1 estimates a smaller available KV cache. This reduces concurrency in KV cache-constrained scenarios and affects performance (for example, running DeepSeek-R1-bf16 on a single Zhenwu 810E instance).

    • We recommend using an a8w8 quantized model on Zhenwu 810E to avoid this performance degradation.

  • When running the DeepSeek-R1 / DeepSeek-V3 A8W8-INT8 models, SGLang-v0.4.7 uses shared experts by default, while SGLang-v0.4.6.post1 does not. This causes the performance of SGLang-v0.4.7 to be lower than that of SGLang-v0.4.6.post1. In SGLang-v0.4.7, you can disable shared experts by using the --disable-shared-experts-fusion option. When this is done, the performance of SGLang-v0.4.7 is comparable to that of SGLang-v0.4.6.post1.

  • In the SGLang-v0.4.7 image, if the --mem-fraction-static option is set to a large value when the GPU memory capacity of a single machine is insufficient, the decode out of memory issue occurs. This is a known issue in the community.

  • The following flashinfer modules have known accuracy issues, causing their unit tests (UTs) to fail:

    1. PoD Attention

    2. Segment gemm