fix: update Dockerfile for cu118 (#3181)
This commit is contained in:
@@ -32,6 +32,7 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
|
|||||||
python3 -m pip install torch --index-url https://download.pytorch.org/whl/cu124; \
|
python3 -m pip install torch --index-url https://download.pytorch.org/whl/cu124; \
|
||||||
elif [ "$CUDA_VERSION" = "11.8.0" ]; then \
|
elif [ "$CUDA_VERSION" = "11.8.0" ]; then \
|
||||||
python3 -m pip install torch --index-url https://download.pytorch.org/whl/cu118; \
|
python3 -m pip install torch --index-url https://download.pytorch.org/whl/cu118; \
|
||||||
|
python3 -m pip install sgl-kernel -i https://docs.sglang.ai/whl/cu118; \
|
||||||
else \
|
else \
|
||||||
echo "Unsupported CUDA version: $CUDA_VERSION" && exit 1; \
|
echo "Unsupported CUDA version: $CUDA_VERSION" && exit 1; \
|
||||||
fi \
|
fi \
|
||||||
@@ -43,6 +44,7 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
|
|||||||
python3 -m pip --no-cache-dir install -e "python[srt]" --find-links https://flashinfer.ai/whl/cu124/torch2.4/flashinfer/; \
|
python3 -m pip --no-cache-dir install -e "python[srt]" --find-links https://flashinfer.ai/whl/cu124/torch2.4/flashinfer/; \
|
||||||
elif [ "$CUDA_VERSION" = "11.8.0" ]; then \
|
elif [ "$CUDA_VERSION" = "11.8.0" ]; then \
|
||||||
python3 -m pip --no-cache-dir install -e "python[srt]" --find-links https://flashinfer.ai/whl/cu118/torch2.4/flashinfer/; \
|
python3 -m pip --no-cache-dir install -e "python[srt]" --find-links https://flashinfer.ai/whl/cu118/torch2.4/flashinfer/; \
|
||||||
|
python3 -m pip install sgl-kernel -i https://docs.sglang.ai/whl/cu118; \
|
||||||
else \
|
else \
|
||||||
echo "Unsupported CUDA version: $CUDA_VERSION" && exit 1; \
|
echo "Unsupported CUDA version: $CUDA_VERSION" && exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -53,6 +55,7 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
|
|||||||
python3 -m pip --no-cache-dir install -e "python[all]" --find-links https://flashinfer.ai/whl/cu124/torch2.4/flashinfer/; \
|
python3 -m pip --no-cache-dir install -e "python[all]" --find-links https://flashinfer.ai/whl/cu124/torch2.4/flashinfer/; \
|
||||||
elif [ "$CUDA_VERSION" = "11.8.0" ]; then \
|
elif [ "$CUDA_VERSION" = "11.8.0" ]; then \
|
||||||
python3 -m pip --no-cache-dir install -e "python[all]" --find-links https://flashinfer.ai/whl/cu118/torch2.4/flashinfer/; \
|
python3 -m pip --no-cache-dir install -e "python[all]" --find-links https://flashinfer.ai/whl/cu118/torch2.4/flashinfer/; \
|
||||||
|
python3 -m pip install sgl-kernel -i https://docs.sglang.ai/whl/cu118; \
|
||||||
else \
|
else \
|
||||||
echo "Unsupported CUDA version: $CUDA_VERSION" && exit 1; \
|
echo "Unsupported CUDA version: $CUDA_VERSION" && exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|||||||
Reference in New Issue
Block a user