Skip to content

[CI] Add Wheel Variant Packaging Format#446

Open
22dimensions wants to merge 3 commits into
sgl-project:mainfrom
22dimensions:plugin
Open

[CI] Add Wheel Variant Packaging Format#446
22dimensions wants to merge 3 commits into
sgl-project:mainfrom
22dimensions:plugin

Conversation

@22dimensions

@22dimensions 22dimensions commented Apr 22, 2026

Copy link
Copy Markdown

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:

# install uv-wheelnext
curl -LsSf https://astral.sh/uv/install.sh | sed 's/verify_checksum "$_file"/true/' | INSTALLER_DOWNLOAD_URL=https://wheelnext.astral.sh/ sh
source $HOME/.local/bin/env

# install deep-ep
uv pip install --system -v deep-ep  --extra-index-url https://mirrors.huaweicloud.com/ascend/repos/pypi/variant

here is the command ouput:
image

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.

@gemini-code-assist

Copy link
Copy Markdown
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
@22dimensions 22dimensions force-pushed the plugin branch 5 times, most recently from f4e52a2 to dc16055 Compare April 30, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants