adopt https://astral.sh/blog/wheel-variants for distribution #10531
sergei-something-ai
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I was looking today at the sglang distribution model.
I started at pypi with sgl-kernels and trying to piece together what should I do to get some fresh version of it
https://pypi.org/project/sgl-kernel/#files
Then I read a number of issues that raise various problems with packaging and edge-cases and lack of wheels for arm and so on. (i.e. #7504 (comment))
I also looked at the GH action workflow for wheels publishing a little bit trying to wrap my head around it.
The problem is very complex indeed and python doesn't have a great way to deal with such accelerator-specific wheels. Yet!
But there is a promising project
https://wheelnext.dev/proposals/pepxxx_wheel_variant_support/
and more importantly you can use experimental build of
uvtoday to runuv pip install torchand it will do "THE RIGHT THING for your accelerator"Here are more details
https://astral.sh/blog/wheel-variants
There is a lot of momentum behind this design, even though it's not yet accepted as a PEP.
I though that it could be a good idea to start looking into adopting WheelNext format.
Beta Was this translation helpful? Give feedback.
All reactions