inference-nv-pytorch 25.02

Updated at:

Provides the release notes for inference-nv-pytorch 25.02, an image for large language model (LLM) inference.

Main features and bug fixes

Main features

  • vLLM is upgraded to v0.7.2.

  • SGLang v0.4.3.post2 is supported.

  • DeepSeek models are supported.

Bug fixes

(None)

Contents

Use cases

LLM inference

Framework

pytorch

Requirements

NVIDIA Driver release >= 550

System components

  • Ubuntu 22.04

  • Python 3.10

  • Torch 2.5.1

  • CUDA 12.4

  • transformers 4.48.3

  • triton 3.1.0

  • ray 2.42.1

  • vllm 0.7.2

  • sgl-kernel 0.0.3.post6

  • sglang 0.4.3.post2

  • flashinfer-python 0.2.1.post2

  • ACCL-N 2.23.4.11

Assets

Public image

  • egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun/inference-nv-pytorch:25.02-vllm0.7.2-sglang0.4.3.post2-pytorch2.5-cuda12.4-20250305-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
  • inference-nv-pytorch:25.02-vllm0.7.2-sglang0.4.3.post2-pytorch2.5-cuda12.4-20250305-serverless image is compatible with ACS and Lingjun multi-tenant deployments, and is not compatible with Lingjun single-tenant deployments.

  • inference-nv-pytorch:25.02-vllm0.7.2-sglang0.4.3.post2-pytorch2.5-cuda12.4-20250305 image is compatible with Lingjun single-tenant deployments.

Driver requirements

NVIDIA Driver release >= 550

Quick start

The following example pulls the inference-nv-pytorch image only by using Docker and tests the inference service with the Qwen2.5-7B-Instruct model.

Note

To use the inference-nv-pytorch image in ACS, select the image from the Artifact Center page on the Create Workload page in the console. Alternatively, specify the image reference in a YAML file. For more information, see the series on building DeepSeek model inference services 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. 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. Run an inference test on the vLLM chat 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 the test on the client side.

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

      Output:

      {"id":"chat-d3c28759793d4376a65bfc4e40b59a71","object":"chat.completion","created":1735278194,"model":"/mnt/Qwen2.5-7B-Instruct","choices":[{"index":0,"message":{"role":"assistant","content":"Deep learning is a branch of machine learning inspired by biological nervous systems, especially the interactions between neurons in the brain. Deep learning uses deep neural networks to process and analyze large amounts of data to identify valid predictive models. This technology has achieved significant success in many 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 (also called neurons) that are connected to nodes in other layers through weighted connections. During training, 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 typically uses optimization algorithms such as gradient descent.\n\nTraining deep learning models requires large amounts of compute resources and data. In recent years, with advances in compute hardware such as GPUs and TPUs, and the rapid growth of datasets, deep learning has been widely applied and developed. In addition to the applications mentioned above, deep learning is also widely used in fields such as medical diagnosis, 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 how to use vLLM, see vLLM.

Known issues