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
10 changes: 6 additions & 4 deletions .github/workflows/publish-hf-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@ jobs:

- name: Install build tools
run: |
python -m pip install --upgrade pip auditwheel build wheel
python -m pip install --upgrade pip auditwheel build wheel "patchelf>=0.14.5"
patchelf --version
sudo apt-get update
sudo apt-get install -y --no-install-recommends cmake ninja-build patchelf wget ca-certificates
sudo apt-get install -y --no-install-recommends cmake ninja-build wget ca-certificates

- name: Install CUDA toolkit
run: |
Expand Down Expand Up @@ -223,9 +224,10 @@ jobs:

- name: Install build tools
run: |
python -m pip install --upgrade pip auditwheel build wheel
python -m pip install --upgrade pip auditwheel build wheel "patchelf>=0.14.5"
patchelf --version
sudo apt-get update
sudo apt-get install -y --no-install-recommends cmake ninja-build patchelf ca-certificates
sudo apt-get install -y --no-install-recommends cmake ninja-build ca-certificates

- name: Fetch qwentts.cpp
run: |
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ variants. Use them when the PyPI CUDA 12.8 wheel does not match the runtime or
GPU target, for example DGX Spark / GB10 with CUDA 13:

```bash
pip install "qwentts-cpp-python==0.3.0+cpu" \
pip install "qwentts-cpp-python==0.4.0+cpu" \
-f https://huggingface.co/datasets/andito/qwentts-cpp-python-wheels/tree/main/whl/cpu

pip install "qwentts-cpp-python==0.3.0+cu124" \
pip install "qwentts-cpp-python==0.4.0+cu124" \
-f https://huggingface.co/datasets/andito/qwentts-cpp-python-wheels/tree/main/whl/cu124

pip install "qwentts-cpp-python==0.3.0+cu128" \
pip install "qwentts-cpp-python==0.4.0+cu128" \
-f https://huggingface.co/datasets/andito/qwentts-cpp-python-wheels/tree/main/whl/cu128

pip install "qwentts-cpp-python==0.3.0+cu130" \
pip install "qwentts-cpp-python==0.4.0+cu130" \
-f https://huggingface.co/datasets/andito/qwentts-cpp-python-wheels/tree/main/whl/cu130
```

Expand All @@ -74,12 +74,12 @@ revision; validation artifacts are not reused for publishing.

### Apple Silicon (Metal)

The Hugging Face publisher builds a `+metal` wheel for **macOS 14 or newer,
arm64 Python 3.10+**. After this change is merged and the **Publish Hugging Face
Wheels** workflow has completed, install it with:
The PyPI `0.4.0` release contains Linux CUDA wheels. For **macOS 14 or newer,
arm64 Python 3.10+**, use the `+metal` wheel published to Hugging Face. After
the **Publish Hugging Face Wheels** workflow completes, install it with:

```bash
python -m pip install --only-binary=qwentts-cpp-python "qwentts-cpp-python==0.3.1+metal" \
python -m pip install --only-binary=qwentts-cpp-python "qwentts-cpp-python==0.4.0+metal" \
-f https://huggingface.co/datasets/andito/qwentts-cpp-python-wheels/tree/main/whl/metal
python -c "from qwentts_cpp import QwenLibrary; print(QwenLibrary().version())"
```
Expand All @@ -96,7 +96,7 @@ PyPI and cannot collide with the Linux CUDA or other backend variants.

Before publication, download the `hf-wheel-metal-macosx-arm64` artifact from
the PR's **Apple Silicon Metal wheel** check, unzip it, and install its `.whl`
with `python -m pip install /path/to/qwentts_cpp_python-0.3.1+metal-*.whl`.
with `python -m pip install /path/to/qwentts_cpp_python-0.4.0+metal-*.whl`.
This macOS check also runs for PRs; the Linux matrix remains dispatch-only.
The Hugging Face publisher rebuilds and checks its own Metal wheel.

Expand Down
Loading