Skip to content

Commit b0abf84

Browse files
authored
add vllm-cuda (#21)
* add vllm-cuda * debug vllm * update vllm install
1 parent 5e2dec7 commit b0abf84

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/build-docker.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818
env:
1919
BUILDKIT_PROGRESS: "plain" # Full logs for CI build.
2020
REGISTRY_SRC: ${{ vars.REGISTRY_SRC || 'docker.io' }} # For BASE_NAMESPACE of images: where to pull base images from, docker.io or other source registry URL.
21-
REGISTRY_DST: ${{ vars.REGISTRY_DST || 'docker.io' }} # For tags of built images: where to push images to, docker.io or other destination registry URL.
21+
REGISTRY_DST: ${{ vars.REGISTRY_DST || 'quay.io' }} # For tags of built images: where to push images to, docker.io or other destination registry URL.
2222
# DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD is required for docker image push, they should be set in CI secrets.
2323
DOCKER_REGISTRY_USERNAME: ${{ vars.DOCKER_REGISTRY_USERNAME }}
2424
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
@@ -46,6 +46,18 @@ jobs:
4646
echo 'build_image paddleocr-models latest docker_PaddleOCR/models.Dockerfile --build-arg "BASE_IMG=paddleocr-cuda112" --build-arg "BASE_NAMESPACE_SRC=docker.io/library"'
4747
push_image
4848
49+
50+
qpod_vllm-cuda:
51+
name: 'vllm-cuda'
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v4
55+
- run: |
56+
source ./tool.sh && free_diskspace && export IMG_PREFIX_SRC="${IMG_PREFIX_DST}"
57+
build_image vllm-cuda latest docker_vllm/vllm-cuda.Dockerfile
58+
push_image
59+
60+
4961
qpod_PaddleOCR_cuda120:
5062
name: 'paddleocr-cuda120,doc-ai-cuda120'
5163
runs-on: ubuntu-latest
@@ -87,7 +99,7 @@ jobs:
8799
88100
## Sync all images in this build (listed by "names") to mirror registry.
89101
sync_images:
90-
needs: ["qpod_OpenCV", "qpod_HuggingFaceModels", "qpod_PaddleOCR_cuda112", "qpod_PaddleOCR_cuda120"]
102+
needs: ["qpod_OpenCV", "qpod_HuggingFaceModels", "qpod_PaddleOCR_cuda112", "qpod_PaddleOCR_cuda120", "qpod_vllm-cuda"]
91103
runs-on: ubuntu-latest
92104
steps:
93105
- uses: actions/checkout@v4

docker_vllm/vllm-cuda.Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Distributed under the terms of the Modified BSD License.
2+
3+
ARG BASE_NAMESPACE
4+
ARG BASE_IMG="cuda_12.4"
5+
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG}
6+
7+
LABEL maintainer="[email protected]"
8+
9+
RUN set -eux && source /opt/utils/script-setup.sh \
10+
&& pip install vllm \
11+
# https://docs.vllm.ai/en/latest/getting_started/installation/gpu.html
12+
# && cd /tmp/ \
13+
# && git clone https://github.com/vllm-project/vllm.git \
14+
# && cd /tmp/vllm \
15+
# && export export MAX_JOBS=8 \
16+
# && python use_existing_torch.py \
17+
# && pip install -r requirements/build.txt \
18+
# && pip install --no-build-isolation -e . \
19+
&& install__clean && list_installed_packages

0 commit comments

Comments
 (0)