[vLLM] Update vLLM pin #1245
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Triton wheels | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "5 23 * * *" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/nightly-wheels.yml | |
| - .github/pins/pytorch.txt | |
| - scripts/vllm/install-vllm.sh | |
| - scripts/vllm/vllm-xpu-kernels-pin.txt | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/nightly-wheels.yml | |
| - .github/pins/pytorch.txt | |
| - scripts/vllm/install-vllm.sh | |
| - scripts/vllm/vllm-xpu-kernels-pin.txt | |
| permissions: read-all | |
| env: | |
| USE_AOT_DEVLIST: pvc | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: | |
| - max1100 | |
| - rolling | |
| - runner-0.0.22 | |
| strategy: | |
| matrix: | |
| python: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| - "3.15.0-beta.2" | |
| fail-fast: false | |
| max-parallel: 2 | |
| defaults: | |
| run: | |
| shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Install Python ${{ matrix.python }} | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install Python build dependencies | |
| run: | | |
| # cmake 3.22.1 does not work with the recent torchaudio: https://github.com/intel/intel-xpu-backend-for-triton/issues/2079 | |
| pip install cmake build | |
| - name: Setup PyTorch | |
| id: setup-pytorch | |
| uses: ./.github/actions/setup-pytorch | |
| - name: Identify pinned versions | |
| run: | | |
| cd pytorch | |
| echo "TORCHVISION_COMMIT_ID=$(<.github/ci_commit_pins/vision.txt)" | tee -a $GITHUB_ENV | |
| echo "TORCHAUDIO_COMMIT_ID=$(<.github/ci_commit_pins/audio.txt)" | tee -a $GITHUB_ENV | |
| echo "TIMM_COMMIT_ID=$(<.ci/docker/ci_commit_pins/timm.txt)" | tee -a $GITHUB_ENV | |
| cd .. | |
| echo "VLLM_PIN=$(<scripts/vllm/vllm-pin.txt)" | tee -a $GITHUB_ENV | |
| echo "VLLM_XPU_KERNELS_PIN=$(<scripts/vllm/vllm-xpu-kernels-pin.txt)" | tee -a $GITHUB_ENV | |
| - name: Identify Triton commit id | |
| run: | | |
| echo "TRITON_COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV | |
| - name: Build Triton wheels | |
| uses: ./.github/actions/setup-triton | |
| with: | |
| command: > | |
| DEBUG=1 | |
| python -m build --wheel --no-isolation && pip install dist/*.whl | |
| - name: Install torchvision package | |
| if: "!startsWith(matrix.python, '3.15')" | |
| uses: ./.github/actions/install-dependency | |
| with: | |
| package: torchvision | |
| repository: pytorch/vision | |
| ref: ${{ env.TORCHVISION_COMMIT_ID }} | |
| extra-cache-key: ${{ steps.setup-pytorch.outputs.pytorch_cache_key }} | |
| - name: Install torchaudio package | |
| if: "!startsWith(matrix.python, '3.15')" | |
| uses: ./.github/actions/install-dependency | |
| with: | |
| package: torchaudio | |
| repository: pytorch/audio | |
| ref: ${{ env.TORCHAUDIO_COMMIT_ID }} | |
| extra-cache-key: ${{ steps.setup-pytorch.outputs.pytorch_cache_key }} | |
| - name: Install timm package | |
| if: "!startsWith(matrix.python, '3.15')" | |
| uses: ./.github/actions/install-dependency | |
| with: | |
| package: timm | |
| repository: huggingface/pytorch-image-models | |
| ref: ${{ env.TIMM_COMMIT_ID }} | |
| extra-cache-key: ${{ steps.setup-pytorch.outputs.pytorch_cache_key }} | |
| - name: Install transformers package | |
| if: "!startsWith(matrix.python, '3.15')" | |
| run: | | |
| cd pytorch | |
| pip install -r .ci/docker/ci_commit_pins/huggingface-requirements.txt | |
| - name: Install vLLM and vLLM XPU kernels | |
| if: contains(fromJSON('["3.10", "3.11", "3.12"]'), matrix.python) | |
| run: | | |
| scripts/vllm/install-vllm.sh --source --force-reinstall | |
| - name: Prepare wheels for upload | |
| run: | | |
| mkdir -p wheels | |
| cp -L pytorch/dist/*.whl wheels/ | |
| cp -L dist/*.whl wheels/ | |
| cp -L torchvision*/dist/*.whl wheels/ 2>/dev/null || true | |
| cp -L torchaudio*/dist/*.whl wheels/ 2>/dev/null || true | |
| cp -L timm*/dist/*.whl wheels/ 2>/dev/null || true | |
| ls -lh wheels/ | |
| - name: Prepare vLLM wheels for upload | |
| if: contains(fromJSON('["3.10", "3.11", "3.12"]'), matrix.python) | |
| run: | | |
| mkdir -p wheels-vllm | |
| cp -L vllm-xpu-kernels/dist/*.whl wheels-vllm/ | |
| ls -lh wheels-vllm/ | |
| - name: Report environment details | |
| run: | | |
| reports_file="wheels/.env" | |
| TIMESTAMP=$(date '+%Y%m%d') | |
| echo "TIMESTAMP=$TIMESTAMP" >> "${GITHUB_ENV}" | |
| cat <<EOF | tee "$reports_file" | |
| TIMESTAMP=$TIMESTAMP | |
| GITHUB_RUN_ID=$GITHUB_RUN_ID | |
| GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER | |
| GITHUB_RUN_ATTEMPT=$GITHUB_RUN_ATTEMPT | |
| PYTHON_VERSION=$PYTHON_VERSION | |
| PYTORCH_REPO=$PYTORCH_REPO | |
| PYTORCH_COMMIT_ID=$PYTORCH_COMMIT_ID | |
| LLVM_REPO=llvm/llvm-project | |
| LLVM_COMMIT_ID=$LLVM_COMMIT_ID | |
| TRITON_REPO=intel/intel-xpu-backend-for-triton | |
| TRITON_COMMIT_ID=$TRITON_COMMIT_ID | |
| TORCHVISION_COMMIT_ID=$TORCHVISION_COMMIT_ID | |
| TORCHAUDIO_COMMIT_ID=$TORCHAUDIO_COMMIT_ID | |
| VLLM_PIN=$VLLM_PIN | |
| VLLM_XPU_KERNELS_PIN=$VLLM_XPU_KERNELS_PIN | |
| EOF | |
| ./scripts/capture-hw-details.sh | tee -a "$reports_file" | |
| - name: Upload PyTorch wheels to artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: wheels-pytorch-py${{ matrix.python }}-${{ env.TIMESTAMP }} | |
| path: wheels | |
| include-hidden-files: true | |
| - name: Upload vLLM wheels to artifacts | |
| if: contains(fromJSON('["3.10", "3.11", "3.12"]'), matrix.python) | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: wheels-vllm-py${{ matrix.python }}-${{ env.TIMESTAMP }} | |
| path: wheels-vllm | |
| include-hidden-files: true |