Add Apple Silicon Metal wheels - #21
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19.
Apple Silicon users can install a macOS 14+ arm64
+metalwheel from the existing Hugging Face wheel channel, with libqwen and all ggml dylibs bundled and discoverable byQwenLibrary(). The PyPI release remains Linux CUDA 12.8. Publication follows merge by dispatching Publish Hugging Face Wheels; the PR check also exposes the wheel as an artifact.Validation on Apple M3 Pro, macOS 26.6.2, Python 3.12:
qwentts_cpp_python-0.3.1+metal-py3-none-macosx_14_0_arm64.whl; delocate repair andtwine check --strictpassed. All six dylibs are arm64 and pass signature verification; external dependencies are Apple system libraries/frameworks only.QwenLibrary().version()returned7df559a (2026-07-17)without a library path, with the source/build/package-library trees moved away and library-path overrides unset.GGML_BACKEND=MTL0: 7 finite, nonempty chunks, 2.56 seconds of non-silent mono 24 kHz PCM WAV. Native logs confirm Apple M3 Pro Metal execution. GPU access required running outside the tool sandbox.The local GPU test is on macOS 26.6.2; the macOS 14 CI job verifies build/ABI/clean loading without model inference. The public HF wheel will be available after the publishing workflow runs on the merged change.