Publish CUDA wheel variants on Hugging Face - #8
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.
Summary
Add a Hugging Face wheel publishing path for CUDA-specific
qwentts-cpp-pythonvariants while keeping PyPI as the CUDA 12.8 default.This PR adds:
Publish Hugging Face Wheelsworkflow that builds local-version CUDA wheels:0.2.0+cu1240.2.0+cu1280.2.0+cu130--find-linksHTML pages for each CUDA flavor.HF_TOKENrepository secret.Why
--find-linksPyTorch uses custom package indexes such as
https://download.pytorch.org/whl/cu128. A plain Hugging Face repo is raw file hosting, not a PEP 503 directory index, so the reliable equivalent is a static HTML wheel page consumed by pip via--find-links:pip install "qwentts-cpp-python==0.2.0+cu130" \ -f https://huggingface.co/datasets/andimarafioti/qwentts-cpp-python-wheels/resolve/main/whl/cu130.htmlDependencies still resolve from PyPI normally.
CUDA matrix
sm_80,sm_86,sm_90, PTXsm_75.sm_80,sm_86,sm_90,sm_120, PTXsm_75,sm_120for HF wheels.sm_80,sm_86,sm_90,sm_121, PTXsm_75.The existing PyPI publish workflow remains unchanged and still publishes CUDA 12.8 wheels only.
Validation
py_compile.uv run --with pytest pytest -q tests:5 passed, 1 skipped.Setup Needed
Add a repository secret named
HF_TOKENwith write access to the target HF account/org. The workflow will create the public dataset repoandimarafioti/qwentts-cpp-python-wheelsif it does not exist.