inference-nv-pytorch 25.05

Updated at:

Release notes for the inference-nv-pytorch 25.05 images.

Main features and bug fix lists

Main features

  • For the vLLM image, this release upgrades the operating system to Ubuntu 24.04, Python to 3.12, CUDA to 12.8, and vLLM to v0.8.5.post1.

  • For the SGLang image, this release upgrades SGLang to v0.4.6.post4.

Bug fix

None.

Contents

inference-nv-pytorch

inference-nv-pytorch

Tag

25.05-vllm0.8.5.post1-pytorch2.7-cu128-20250513-serverless

25.05-sglang0.4.6.post4-pytorch2.6-cu124-20250513-serverless

Common scenarios

LLM inference

LLM inference

Framework

PyTorch

PyTorch

Requirements

NVIDIA Driver release >= 570

NVIDIA Driver release >= 550

System components

  • Ubuntu 24.04

  • Python 3.12

  • Torch 2.7.0+cu128

  • CUDA 12.8

  • NCCL 2.26.5

  • transformers 4.51.3

  • vllm 0.8.5.post2.dev0+g3015d5634.d20250513.cu128

  • ray 2.46.0

  • triton 3.3.0

  • xgrammar 0.1.18

  • Ubuntu 22.04

  • Python 3.10

  • Torch 2.6.0+cu124

  • CUDA 12.4

  • NCCL 2.26.5

  • accelerate 1.6.0

  • transformers 4.51.1

  • triton 3.2.0

  • xgrammar 0.1.19

  • flashinfer-python 0.2.5

  • sglang 0.4.6.post4

  • sgl-kernel 0.1.2.post1

Asset

Public network images

  • egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-nv-pytorch:25.05-vllm0.8.5.post1-pytorch2.7-cu128-20250513-serverless

  • egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-nv-pytorch:25.05-sglang0.4.6.post4-pytorch2.6-cu124-20250513-serverless

VPC image

acs-registry-vpc.{region-id}.cr.aliyuncs.com/egslingjun/{image:tag}
Replace {region-id} with the region where your Alibaba Cloud Container Compute Service (ACS) is activated (for example, cn-beijing or cn-wulanchabu).
Replace {image:tag} with the name and tag of the image.
Note

The inference-nv-pytorch:25.03-vllm0.8.2-pytorch2.6-cu124-20250328-serverless and inference-nv-pytorch:25.03-sglang0.4.4.post1-pytorch2.5-cu124-20250327-serverless images are compatible with ACS and Lingjun multi-tenant deployments only. It is not compatible with Lingjun single-tenant deployments.

Note

25.05-vllm0.8.5.post1-pytorch2.7-cu128-20250513-serverless and 25.05-sglang0.4.6.post4-pytorch2.6-cu124-20250513-serverless images apply to the ACS product form and the Lingjun multi-tenant product form. These images do not apply to the Lingjun single-tenant product form.

Driver requirements

Images built on CUDA 12.8: NVIDIA Driver release >= 570

Images built on CUDA 12.4: NVIDIA Driver release >= 550

Quick start

This example shows how to pull the inference-nv-pytorch image with Docker and test the inference service on the Qwen2.5-7B-Instruct model.

Note

To use the inference-nv-pytorch image in ACS, select it from the artifact center page on the console when you create a workload, or specify the image reference in a YAML file. For more information, see the following topics about building a DeepSeek model inference service by using ACS GPU compute power:

  1. Pull the inference container image.

    docker pull egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-nv-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 -it --rm --gpus all --network=host --privileged --init --ipc=host \
    --ulimit memlock=-1 --ulimit stack=67108864  \
    -v /mnt/:/mnt/ \
    egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-nv-pytorch:[tag]
  4. Test the vLLM conversational inference feature.

    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 from 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": "Please introduce deep learning."}
          ]}'

      The output is as follows:

      {"id":"chat-d3c28759793d4376a65bfc4e40b59a71","object":"chat.completion","created":1735278194,"model":"/mnt/deep_learning_test/testsuite/dataset/llms_inference_qwen7b-v2.5_accelerate/checkpoint/7B-V2.5/","choices":[{"index":0,"message":{"role":"assistant","content":"Deep learning is a subfield of machine learning inspired by biological nervous systems, particularly the interaction between neurons in the brain. Deep learning uses deep neural networks to process and analyze large amounts of data to identify effective predictive models. This technology has achieved significant success in numerous fields, such as image recognition, speech recognition, and natural language processing.\n\nIn deep learning, a neural network consists of multiple layers, including an input layer, several hidden layers, and an output layer. Each layer contains multiple nodes (or neurons), which are connected to nodes in other layers through weighted connections. During the training process, the neural network adjusts the weights of these connections based on the input data to minimize the error between the predicted output and the actual output. This process is typically accomplished using optimization algorithms like gradient descent.\n\nTraining deep learning models requires substantial computing resources and data. In recent years, with advancements in computing hardware (such as GPUs and TPUs) and the rapid growth of datasets, deep learning technology has been widely applied and developed. In addition to the applications mentioned above, deep learning is also extensively used in various other fields, including medical diagnostics, autonomous driving, gaming, and finance.","tool_calls":[]},"logprobs":null,"finish_reason":"stop","stop_reason":null}],"usage":{"prompt_tokens":237,"completion_tokens":213}}

      For more information about using vLLM, see vLLM.

Known issues

None for this release.