Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start publishing nightly Python packages #305

Closed
ScottTodd opened this issue Dec 2, 2024 · 1 comment · Fixed by #314
Closed

Start publishing nightly Python packages #305

ScottTodd opened this issue Dec 2, 2024 · 1 comment · Fixed by #314
Assignees

Comments

@ScottTodd
Copy link
Member

Overview

We have a substantial number of workflows downstream that install iree-turbine from the git source like so:

# Install latest iree-tubrine.
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
    -e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"

As part of rolling out releases across all IREE ecosystem projects ("upstream": iree-base-compiler, iree-base-runtime, iree-turbine, etc. "downstream": sharktank, shortfin, shark-ai, etc.), we should publish nightly packages for iree-turbine and get them listed in a common pip index page: iree-org/iree#19193.

Once packages are published, we can teach the release index generator in iree-org/iree to scrape them as part of iree-org/iree#19193, then we'll be able to write

# Install iree-turbine nightly (which may pin versions of iree-base-compiler and iree-base-runtime)
pip install -f https://iree.dev/pip-release-links.html --pre iree-turbine

# ... or explicitly install all nightly packages
pip install -f https://iree.dev/pip-release-links.html --pre \
    iree-base-compiler iree-base-runtime iree-turbine

Implementation details

We can fork code from

Those were rewritten from similar files in https://github.com/iree-org/iree and inspired by files in https://github.com/llvm/torch-mlir and https://github.com/openxla/stablehlo. The shark-ai files are the most recently authored that follow the same version scheme as IREE.

The package publication in those pushes to a dev-wheels release like https://github.com/nod-ai/shark-ai/releases/tag/dev-wheels or https://github.com/openxla/stablehlo/releases/tag/dev-wheels, which have pip-compatible index pages like -f https://github.com/nod-ai/shark-ai/releases/expanded_assets/dev-wheels. More complete docs: https://github.com/nod-ai/shark-ai/blob/main/docs/nightly_releases.md

@ScottTodd
Copy link
Member Author

Nightly wheels are now published to https://github.com/iree-org/iree-turbine/releases/tag/dev-wheels

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 a pull request may close this issue.

2 participants