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

bitsandbytes, test existence of triton.ops.matmul_perf_model #1493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lamikr
Copy link

@lamikr lamikr commented Jan 26, 2025

This fixes the bitsandbytes to work with newer triton versions which does not anymore include the triton.ops.matmul_perf_model which has been moved to triton-langs kernels project. https://github.com/triton-lang/kernels

Fix is to simply catch the import error if triton is available but the triton.ops.matmul_perf_model is not. In such case the logic is implemented in a same way than earlier when the triton was not available at all.

To my understanding there is currently no a way to install opt_matmul_perf.py from new tritons kernel project directly with pip, so in future it could propably be good to include that python class directly in bitsandbytes.

#1492

This fixes the bitsandbytes to work with newer triton versions
which does not anymore include the triton.ops.matmul_perf_model
which has been moved to triton-langs kernels project.
https://github.com/triton-lang/kernels

Fix is to simply catch the import error if triton is available
but the triton.ops.matmul_perf_model is not. In such case the logic
is implemented in a same way than earlier when the triton
was not available at all.

To my understanding there is currently no a way to install
opt_matmul_perf.py from new tritons kernel project directly with pip,
so in future it could propably be good to include that python class
directly in bitsandbytes.

bitsandbytes-foundation#1492

Signed-off-by: Mika Laitio <[email protected]>
@matthewdouglas matthewdouglas added the duplicate This issue or pull request already exists label Jan 28, 2025
@matthewdouglas
Copy link
Member

Hi @lamikr, please see #1413 which was merged and released in v0.45.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants