[CI] Add Wheel Variant Packaging Format#446
Open
22dimensions wants to merge 3 commits into
Open
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Adds a GitHub Actions workflow to build and publish hardware-variant deep_ep wheels using variantlib (wheelnext). Supports 910b and a3 hardware targets across x86_64/aarch64 and Python 3.10/3.11. Key features: - Builds deep_ep wheels inside official CANN container images - Repairs wheels with auditwheel, excluding Ascend runtime libs - Generates hardware-variant wheels via variantlib with `ascend :: npu_type` property only - Uploads regular wheels to PyPI and variant wheels + index to OBS
f4e52a2 to
dc16055
Compare
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.
Motivation
This PR introduces WheelNext (PEP 817) variant metadata into the release workflow, enabling variant-aware installers (pip / uv) to automatically select the correct wheel based on the user's Ascend CANN version and NPU hardware type, without requiring manual zip selection.
Changes
Add a workflow for building deep-ep wheel vairiant, for now just remain old deepep workflow in build_and_release.yml, and migrate to wheelnext variant in the future, after that we can remove deepep workflow in build_and_release.yml.
And user can install deep-ep like the following:
here is the command ouput:

Does this PR introduce any user-facing change?
No. Users will be able to install hardware-specific deep_ep wheels from
the OBS variant index, eliminating the need to build from source.