File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- ARG CUDA_VERSION=12.6.1
1+ ARG CUDA_VERSION=12.8.0
22FROM nvidia/cuda:${CUDA_VERSION}-cudnn-devel-ubuntu22.04 as main
33ARG PYTHON_VERSION=3.10
44ARG MAMBA_VERSION=24.7.1-0
@@ -41,7 +41,7 @@ RUN case ${TARGETPLATFORM} in \
4141WORKDIR /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
4747RUN 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
8282RUN mkdir -p /out
8383
84- # Build lightllm-kernel package (main project)
84+ # Build lightllm-kernel package (main project)
8585# 🎯 关键:在构建时设置 CMAKE_PREFIX_PATH,让 CMake 找到 PyTorch
8686RUN echo "🔧 Building lightllm-kernel package..." && \
8787 echo "📋 Verifying PyTorch installation..." && \
@@ -107,6 +107,6 @@ RUN echo "📦 Using prebuilt flash_attn_3 wheel..." && \
107107RUN 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)
111111FROM scratch as wheels
112- COPY --from=main /out/*.whl /
112+ COPY --from=main /out/*.whl /
You can’t perform that action at this time.
0 commit comments