Skip to content

[Installation]: Dockerfile.cpu installation problem vLLM #14033

@ifoyil

Description

@ifoyil

Your current environment

The output of `python collect_env.py`

Dockerfile.cpu installation I can't complete the build somehow, I want to use vLLM over CPU since I don't have a graphics card on my own server, but the installation gives an error as follows.
OS= rockylinux 9.4
ram 16gb
vCPU=> 24
Hypervisor= proxmox 8.2.7
docker version => Docker version 28.0.1, build 068a01e

errors messages;

docker build -f Dockerfile.cpu -t vllm-cpu-env --shm-size=4g .

Dockerfile.cpu:54

53 |
54 | >>> RUN --mount=type=cache,target=/root/.cache/pip
55 | >>> --mount=type=cache,target=/root/.cache/ccache
56 | >>> --mount=type=bind,source=.git,target=.git
57 | >>> VLLM_TARGET_DEVICE=cpu python3 setup.py bdist_wheel &&
58 | >>> pip install dist/*.whl &&
59 | >>> rm -rf dist
60 |

ERROR: failed to solve: process "/bin/sh -c VLLM_TARGET_DEVICE=cpu python3 setup.py bdist_wheel && pip install dist/*.whl && rm -rf dist" did not complete successfully: exit code: 1

How you are installing vllm

docker build -f Dockerfile.cpu -t vllm-cpu-env --shm-size=4g .

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    installationInstallation problemsstaleOver 90 days of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions