Unverified Commit 1958b3aa authored by zaristei's avatar zaristei Committed by GitHub
Browse files

build: Fixes for vLLM Blackwell Builds (#2020)

parent b127d95f
...@@ -171,7 +171,8 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" ...@@ -171,7 +171,8 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
# TEMP: disable gds backend for arm64 # TEMP: disable gds backend for arm64
RUN if [ "$ARCH" = "arm64" ]; then \ RUN if [ "$ARCH" = "arm64" ]; then \
cd ${NIXL_SRC_DIR} && uv build . --out-dir /workspace/wheels/nixl \ cd ${NIXL_SRC_DIR} && uv build . --out-dir /workspace/wheels/nixl \
--config-settings=setup-args="-Ddisable_gds_backend=true -Dgds_path=/usr/local/cuda/targets/sbsa-linux"; \ --config-settings=setup-args="-Ddisable_gds_backend=true" \
--config-settings=setup-args="-Dgds_path=/usr/local/cuda/targets/sbsa-linux"; \
else \ else \
cd ${NIXL_SRC_DIR} && uv build . --out-dir /workspace/wheels/nixl; \ cd ${NIXL_SRC_DIR} && uv build . --out-dir /workspace/wheels/nixl; \
fi && \ fi && \
......
...@@ -119,9 +119,10 @@ if [ "$ARCH" = "arm64" ]; then ...@@ -119,9 +119,10 @@ if [ "$ARCH" = "arm64" ]; then
# Try to install specific PyTorch version first, fallback to latest nightly # Try to install specific PyTorch version first, fallback to latest nightly
echo "Attempting to install pinned PyTorch nightly versions..." echo "Attempting to install pinned PyTorch nightly versions..."
if ! uv pip install torch==2.9.0.dev20250712+cu128 torchvision==0.24.0.dev20250712+cu128 torchaudio==2.8.0.dev20250712+cu128 --index-url https://download.pytorch.org/whl/nightly/cu128; then if ! uv pip install torch==2.8.0.dev20250613+cu128 torchaudio==2.8.0.dev20250616 torchvision==0.23.0.dev20250616 --index-url https://download.pytorch.org/whl/nightly/cu128; then
echo "Pinned versions failed, falling back to latest stable..." echo "Pinned versions failed"
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 exit 1
# uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
fi fi
python use_existing_torch.py python use_existing_torch.py
...@@ -163,10 +164,14 @@ python setup.py install ...@@ -163,10 +164,14 @@ python setup.py install
# Install Flash Infer # Install Flash Infer
cd $INSTALLATION_DIR if [ "$ARCH" = "arm64" ]; then
git clone https://github.com/flashinfer-ai/flashinfer.git --recursive uv pip install flashinfer-python
cd flashinfer else
git checkout $FLASHINF_REF cd $INSTALLATION_DIR
python -m pip install -v . git clone https://github.com/flashinfer-ai/flashinfer.git --recursive
cd flashinfer
git checkout $FLASHINF_REF
python -m pip install -v .
fi
echo "vllm installation completed successfully" echo "vllm installation completed successfully"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment