File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed
Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ function install_efa {
7272 apt-get autoremove -y
7373 rm -rf /var/lib/apt/lists/*
7474 ldconfig
75- check_libnccl_net_so
75+ # check_libnccl_net_so
7676}
7777
7878# idiomatic parameter and option handling in sh
Original file line number Diff line number Diff line change 1- FROM --platform=linux/arm64 docker.io/vllm/vllm-openai:v0.10.1 as final
1+ FROM nvidia/cuda:12.8.1-devel-ubuntu22.04 AS builder
2+
3+ # build arguments
4+ ARG CUDA_VERSION=12.8.1
5+ ARG PYTHON_VERSION=3.12
6+ ARG TARGETPLATFORM=linux/arm64
7+
8+ RUN apt-get update && apt-get install -y \
9+ git \
10+ python${PYTHON_VERSION} \
11+ python${PYTHON_VERSION}-dev \
12+ python${PYTHON_VERSION}-venv \
13+ python3-pip \
14+ wget \
15+ ninja-build \
16+ ccache \
17+ && rm -rf /var/lib/apt/lists/*
18+ RUN pip install --upgrade pip && \
19+ pip install uv
20+
21+ # Install PyTorch nightly for ARM64
22+ RUN uv pip install --system \
23+ --index-url https://download.pytorch.org/whl/nightly/cu$(echo $CUDA_VERSION | cut -d. -f1,2 | tr -d '.') \
24+ "torch==2.8.0.dev20250318+cu128" \
25+ "torchvision==0.22.0.dev20250319" \
26+ --pre pytorch_triton==3.3.0+gitab727c40
27+
28+ WORKDIR /workspace
29+ RUN git clone https://github.com/vllm-project/vllm.git --branch v0.10.1
30+ WORKDIR /workspace/vllm
31+
32+ ENV TORCH_CUDA_ARCH_LIST="7.5 8.9 9.0 10.0 12.0"
33+
34+ RUN --mount=type=cache,target=/root/.cache/uv \
35+ uv pip install --system -r requirements/cuda.txt \
36+ --extra-index-url https://download.pytorch.org/whl/nightly/cu$(echo $CUDA_VERSION | cut -d. -f1,2 | tr -d '.') && \
37+ python setup.py bdist_wheel --dist-dir=/workspace/dist
38+
39+ FROM nvidia/cuda:12.8.1-devel-ubuntu22.04 as final
240ARG PYTHON="python3"
341ARG EFA_VERSION="1.43.1"
442LABEL maintainer="Amazon AI"
You can’t perform that action at this time.
0 commit comments