Skip to content

[Bug]: Unable to build docker image #508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
manvemur opened this issue Apr 9, 2025 · 2 comments
Open
1 task done

[Bug]: Unable to build docker image #508

manvemur opened this issue Apr 9, 2025 · 2 comments
Labels
bug Something isn't working Under Investigation

Comments

@manvemur
Copy link

manvemur commented Apr 9, 2025

Your current environment

The output of `python collect_env.py`
Your output of `python collect_env.py` here

🐛 Describe the bug

=> ERROR [build_vllm 1/1] RUN cd vllm && python3 -m pip install -r requirements/rocm.txt && python3 setup.py clean --all 2.5s

[build_vllm 1/1] RUN cd vllm && python3 -m pip install -r requirements/rocm.txt && python3 setup.py clean --all && if [ 0 -eq "1" ]; then python3 tests/build_cython.py build_ext --inplace; fi && python3 setup.py bdist_wheel --dist-dir=dist:
2.437 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements/rocm.txt'


Dockerfile.rocm:41

40 | # Build vLLM
41 | >>> RUN cd vllm
42 | >>> && python3 -m pip install -r requirements/rocm.txt
43 | >>> && python3 setup.py clean --all
44 | >>> && if [ ${USE_CYTHON} -eq "1" ]; then python3 tests/build_cython.py build_ext --inplace; fi
45 | >>> && python3 setup.py bdist_wheel --dist-dir=dist
46 | FROM scratch AS export_vllm

ERROR: failed to solve: process "/bin/sh -c cd vllm && python3 -m pip install -r requirements/rocm.txt && python3 setup.py clean --all && if [ ${USE_CYTHON} -eq "1" ]; then python3 tests/build_cython.py build_ext --inplace; fi && python3 setup.py bdist_wheel --dist-dir=dist" did not complete successfully: exit code: 1

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.
@manvemur manvemur added the bug Something isn't working label Apr 9, 2025
@ppanchad-amd
Copy link

Hi @manvemur. Internal ticket has been created to assist with your issue. Thanks!

@zichguan-amd
Copy link

Hi @manvemur, can you share your build steps and system setup? I just built vllm docker from source (commit c43debd) on 7900xtx.

$ git clone https://github.com/ROCm/vllm.git
Cloning into 'vllm'...
remote: Enumerating objects: 81513, done.
remote: Counting objects: 100% (73/73), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 81513 (delta 48), reused 41 (delta 41), pack-reused 81440 (from 2)
Receiving objects: 100% (81513/81513), 103.72 MiB | 19.13 MiB/s, done.
Resolving deltas: 100% (63581/63581), done.
$ cd vllm && sudo DOCKER_BUILDKIT=1 docker build --build-arg BASE_IMAGE="rocm/vllm-dev:navi_base" -f docker/Dockerfile.rocm -t vllm-rocm .
2025/04/14 16:19:22 in: []string{}
2025/04/14 16:19:22 Parsed entitlements: []
[+] Building 1312.6s (25/25) FINISHED                                                                                                                                                                                                                                                docker:default
 => [internal] load build definition from Dockerfile.rocm                                                                                                                                                                                                                                      0.0s
 => => transferring dockerfile: 4.07kB                                                                                                                                                                                                                                                         0.0s
 => [internal] load metadata for docker.io/rocm/vllm-dev:navi_base                                                                                                                                                                                                                             0.4s
 => [internal] load .dockerignore                                                                                                                                                                                                                                                              0.0s
 => => transferring context: 387B                                                                                                                                                                                                                                                              0.0s
 => CACHED [base 1/5] FROM docker.io/rocm/vllm-dev:navi_base@sha256:c7fd65194dbfe67dbc9dd3b5d20b9a8b2c0e4944782cbb6190c57600977b3996                                                                                                                                                           0.0s
 => [internal] load build context                                                                                                                                                                                                                                                              0.6s
 => => transferring context: 134.03MB                                                                                                                                                                                                                                                          0.5s
 => [base 2/5] RUN apt-get update -q -y && apt-get install -q -y     sqlite3 libsqlite3-dev libfmt-dev libmsgpack-dev libsuitesparse-dev     apt-transport-https ca-certificates wget curl                                                                                                    23.9s
 => [base 3/5] RUN python3 -m pip install --upgrade pip && pip install setuptools_scm                                                                                                                                                                                                          1.3s 
 => [base 4/5] RUN apt-get purge -y sccache; python3 -m pip uninstall -y sccache; rm -f "$(which sccache)"                                                                                                                                                                                     1.3s 
 => [base 5/5] WORKDIR /app                                                                                                                                                                                                                                                                    0.1s 
 => [final 1/7] RUN python3 -m pip install --upgrade pip && rm -rf /var/lib/apt/lists/*                                                                                                                                                                                                        0.7s 
 => [fetch_vllm 1/1] ONBUILD COPY ./ vllm/                                                                                                                                                                                                                                                     0.6s 
 => [build_vllm 1/1] RUN cd vllm     && python3 -m pip install -r requirements/rocm.txt     && python3 setup.py clean --all      && if [ 0 -eq "1" ]; then python3 tests/build_cython.py build_ext --inplace; fi     && python3 setup.py bdist_wheel --dist-dir=dist                        1222.0s 
 => [final 2/7] RUN case "$(which python3)" in         *"/opt/conda/envs/py_3.9"*)             rm -rf /opt/conda/envs/py_3.9/lib/python3.9/site-packages/numpy-1.20.3.dist-info/;;         *) ;; esac                                                                                          0.3s 
 => [final 3/7] RUN python3 -m pip install --upgrade huggingface-hub[cli]                                                                                                                                                                                                                      2.5s
 => [final 4/7] RUN if [ 1 -eq "1" ]; then     git clone -b nvtx_enabled https://github.com/ROCm/rocmProfileData.git     && cd rocmProfileData/rpd_tracer     && pip install -r requirements.txt && cd ../     && make && make install     && cd hipMarker && python3 setup.py install ; fi   10.5s
 => [export_vllm 1/6] COPY --from=build_vllm /app/vllm/dist/*.whl /                                                                                                                                                                                                                            0.1s 
 => [export_vllm 2/6] COPY --from=build_vllm /app/vllm/requirements /requirements                                                                                                                                                                                                              0.1s 
 => [export_vllm 3/6] COPY --from=build_vllm /app/vllm/benchmarks /benchmarks                                                                                                                                                                                                                  0.1s 
 => [export_vllm 4/6] COPY --from=build_vllm /app/vllm/tests /tests                                                                                                                                                                                                                            0.1s 
 => [export_vllm 5/6] COPY --from=build_vllm /app/vllm/examples /examples                                                                                                                                                                                                                      0.1s 
 => [export_vllm 6/6] COPY --from=build_vllm /app/vllm/.buildkite /.buildkite                                                                                                                                                                                                                  0.1s 
 => [final 5/7] RUN --mount=type=bind,from=export_vllm,src=/,target=/install     cd /install     && pip install -U -r requirements/rocm.txt     && pip uninstall -y vllm     && pip install *.whl                                                                                             48.5s 
 => [final 6/7] COPY --from=export_vllm /benchmarks /app/vllm/benchmarks                                                                                                                                                                                                                       0.1s 
 => [final 7/7] COPY --from=export_vllm /examples /app/vllm/examples                                                                                                                                                                                                                           0.1s 
 => exporting to image                                                                                                                                                                                                                                                                        10.8s 
 => => exporting layers                                                                                                                                                                                                                                                                       10.7s 
 => => writing image sha256:b2fcb1cd820e1618808c1736e0333d8beea6b1d292fd06cfa392cea04944424b                                                                                                                                                                                                   0.0s 
 => => naming to docker.io/library/vllm-rocm 
$ sudo docker image list
REPOSITORY                      TAG                                                          IMAGE ID       CREATED              SIZE
vllm-rocm                       latest                                                       b2fcb1cd820e   About a minute ago   35.8GB                                                      

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Under Investigation
Projects
None yet
Development

No branches or pull requests

3 participants