Skip to content

Commit db6491b

Browse files
committed
update cuda to 12.8 to build sm100 sm120
1 parent b2106a4 commit db6491b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG CUDA_VERSION=12.6.1
1+
ARG CUDA_VERSION=12.8.0
22
FROM nvidia/cuda:${CUDA_VERSION}-cudnn-devel-ubuntu22.04 as main
33
ARG PYTHON_VERSION=3.10
44
ARG MAMBA_VERSION=24.7.1-0
@@ -41,7 +41,7 @@ RUN case ${TARGETPLATFORM} in \
4141
WORKDIR /workspace
4242

4343
# Install PyTorch with CUDA support
44-
RUN pip install torch==2.8.0
44+
RUN pip install torch==2.8.0 --index-url https://download.pytorch.org/whl/cu128
4545

4646
# Install build dependencies
4747
RUN pip install --upgrade pip setuptools wheel build scikit-build-core[pyproject] pybind11 ninja
@@ -81,7 +81,7 @@ RUN TORCH_CMAKE_PATH=$(python -c "import torch; print(torch.utils.cmake_prefix_p
8181
# Create output directory
8282
RUN mkdir -p /out
8383

84-
# Build lightllm-kernel package (main project)
84+
# Build lightllm-kernel package (main project)
8585
# 🎯 关键:在构建时设置 CMAKE_PREFIX_PATH,让 CMake 找到 PyTorch
8686
RUN echo "🔧 Building lightllm-kernel package..." && \
8787
echo "📋 Verifying PyTorch installation..." && \
@@ -107,6 +107,6 @@ RUN echo "📦 Using prebuilt flash_attn_3 wheel..." && \
107107
RUN pip install /out/*.whl && \
108108
echo "✅ All wheels installed and ready to use"
109109

110-
# Export stage for GitHub Actions (allows direct wheel extraction)
110+
# Export stage for GitHub Actions (allows direct wheel extraction)
111111
FROM scratch as wheels
112-
COPY --from=main /out/*.whl /
112+
COPY --from=main /out/*.whl /

0 commit comments

Comments
 (0)