The official vLLM CPU and vLLM Ascend docker images
Maintained by: openEuler CloudNative SIG
Where to get help: openEuler CloudNative SIG, openEuler
Current vLLM docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
vLLM is a fast and easy-to-use library for LLM inference and serving.
vLLM Ascend (vllm-ascend) is a community maintained hardware plugin for running vLLM seamlessly on the Ascend NPU.
Originally developed in the Sky Computing Lab at UC Berkeley, vLLM has evolved into a community-driven project with contributions from both academia and industry.
vLLM is fast with:
Read more about vLLM at vLLM paper (SOSP 2023) and explore the vLLM technical documentation at docs.vllm.ai
The tag of each vLLM docker image is consist of the version of vLLM and the version of basic image. For vLLM Ascend images, the tag also contains the versions of torch_npu, CANN and Python. The details are as follows
| Tags | Currently | Architectures |
|---|---|---|
| 0.32.0-oe2403sp4 | vllm 0.32.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 0.30.0-torch_npu2.10.0.post7-cann9.2.1-python3.12-oe2403lts | vLLM Ascend 0.30.0 (torch_npu 2.10.0.post7, CANN 9.2.1, Python 3.12) on openEuler 24.03-LTS | amd64, arm64 |
| 0.23.0-torch_npu2.10.0.post4-cann9.1.0-python3.12-oe2403lts | vLLM Ascend 0.23.0 (torch_npu 2.10.0.post4, CANN 9.1.0, Python 3.12) on openEuler 24.03-LTS | amd64, arm64 |
| 0.29.0-oe2403sp4 | vllm 0.29.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 0.23.0-oe2403sp4 | vllm 0.23.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 0.23.0-oe2403sp3 | vllm 0.23.0 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| 0.20.1-oe2403sp3 | vllm 0.20.1 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| 0.18.0-torch_npu2.9.0.post1-cann8.5.1-python3.11-oe2403lts | vLLM Ascend 0.18.0 (torch_npu 2.9.0.post1, CANN 8.5.1, Python 3.11) on openEuler 24.03-LTS | amd64, arm64 |
| 0.18.0-oe2403sp3 | vllm 0.18.0 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| 0.16.0-oe2403sp3 | vllm 0.16.0 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| 0.6.3-oe2403lts | vLLM 0.6.3 on openEuler 24.03-LTS | amd64 |
| 0.8.3-oe2203sp4 | vLLM 0.8.3 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 0.8.3-oe2403lts | vLLM 0.8.3 on openEuler 24.03-LTS | amd64, arm64 |
| 0.8.4-oe2203sp4 | vLLM 0.8.4 on openEuler 22.03-LTS-SP4 | amd64 |
| 0.8.4-oe2403lts | vLLM 0.8.4 on openEuler 24.03-LTS | amd64 |
| 0.8.5-oe2203sp4 | vLLM 0.8.5 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 0.8.5-oe2403lts | vLLM 0.8.5 on openEuler 24.03-LTS | amd64, arm64 |
| 0.9.0-oe2203sp4 | vLLM 0.9.0 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 0.9.0-oe2403lts | vLLM 0.9.0 on openEuler 24.03-LTS | amd64, arm64 |
| 0.9.1-oe2203sp4 | vLLM 0.9.1 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 0.9.1-oe2403lts | vLLM 0.9.1 on openEuler 24.03-LTS | amd64, arm64 |
| 0.10.1-oe2203sp4 | vLLM 0.10.1 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 0.10.1-oe2403lts | vLLM 0.10.1 on openEuler 24.03-LTS | amd64, arm64 |
| 0.13.0-torch_npu2.8.0.post2-cann8.5.0-python3.11-oe2403lts | vLLM Ascend 0.13.0 (torch_npu 2.8.0.post2, CANN 8.5.0, Python 3.11) on openEuler 24.03-LTS | amd64, arm64 |
| 0.14.0-oe2403sp3 | vllm 0.14.0 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
For CPU images:
# Update the vllm image
docker run --rm --name vllm -p 8000:8000 -it --entrypoint bash openeuler/vllm:latest
For vLLM Ascend images:
# Update DEVICE according to your device (/dev/davinci[0-7])
export DEVICE=/dev/davinci0
# Update the vllm-ascend image
export IMAGE=openeuler/vllm:0.13.0-torch_npu2.8.0.post2-cann8.5.0-python3.11-oe2403lts
docker run --rm \
--name vllm-ascend \
--device $DEVICE \
--device /dev/davinci_manager \
--device /dev/devmm_svm \
--device /dev/hisi_hdc \
-v /usr/local/dcmi:/usr/local/dcmi \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-p 8000:8000 \
-it $IMAGE bash
For more official vLLM Ascend images (including A3, 310P, and 950DT hardware variants) and installation methods, refer to the vLLM Ascend installation guide.
You can use Modelscope mirror to speed up download:
export VLLM_USE_MODELSCOPE=true
With vLLM installed, you can start generating texts for list of input prompts (i.e. offline batch inferencing).
Try to run below Python script directly or use python3 shell to generate texts:
from vllm import LLM, SamplingParams
prompts = [
"Hello, my name is",
"The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
# The first run will take about 3-5 mins (10 MB/s) to download models
llm = LLM(model="Qwen/Qwen3-8B")
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:568b37f32…
Size
2.9 GB
Last updated
about 17 hours ago
docker pull openeuler/vllm