Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ jobs:
steps:
- uses: actions/checkout@v6

# The XPU image bundles the large torch-xpu wheel (SYCL/MKL/OneCCL);
# the stock runner runs out of disk mid-extract (os error 28). Reclaim
# ~25 GB of preinstalled toolchains we don't need before building.
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android \
/usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
sudo docker image prune -af

- uses: docker/setup-buildx-action@v4

- name: Log in to GHCR
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ jobs:
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
- name: Create or update GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ github.ref_name }} \
--title "Release ${{ steps.version.outputs.VERSION }}" \
--generate-notes \
dist/*
if gh release view ${{ github.ref_name }} >/dev/null 2>&1; then
gh release upload ${{ github.ref_name }} dist/* --clobber
else
gh release create ${{ github.ref_name }} \
--title "Release ${{ steps.version.outputs.VERSION }}" \
--generate-notes \
dist/*
fi

- name: Trigger docker-publish workflow
env:
Expand Down
6 changes: 4 additions & 2 deletions docker/Dockerfile.xpu
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ USER 1000
RUN uv sync --no-dev --extra all

# Replace PyPI torch with the XPU build (bundles SYCL runtime, MKL, OneCCL).
# triton-xpu is Linux-only; Linux-only base image makes the marker moot.
# torch pulls its matching pytorch-triton-xpu itself; the Linux base resolves
# that dependency's sys_platform marker, so no explicit triton pin is needed.
# torchaudio is not a project dependency — dropped to save image space.
RUN uv pip install --index-url https://download.pytorch.org/whl/xpu \
torch==2.11.0 torchvision==0.26.0 torchaudio==2.11.0 triton-xpu==3.7.0
torch==2.13.0 torchvision==0.28.0

ENV VIRTUAL_ENV=/app/.venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
Expand Down
Loading