mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[GH-ISSUE #333] [Feature Request] Make binary artifacts portable on torch and Python versions #165
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Harry-Chen on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/333
Currently this project uses pybind11, which is coupled with both torch and Python ABIs. This leads to a huge amount of release artifacts (M * N, now 86) for each version, and sometimes causes some trouble to downstream projects that want to vendor it (https://github.com/vllm-project/vllm/pull/41516, https://github.com/vllm-project/vllm/issues/41487).
To make it portable, my suggestions are:
Py_LIMITED_API. So we can have 1 binary wheel on each architecture that is compatible with Torch 2.9+ and Python 3.8+. Or,TORCH_LIBRARY(not using stable ABIs) and opt-inPy_LIMITED_API. Then the wheel still depends on a specific torch version, but a wide range of Python versions from 3.8+. Or,pybind11withnanobind. This requires minimal effort with Python stable ABI support, but only ranging from 3.12+.I can help with any option if needed.