Skip to content

Conversation

bertmaher
Copy link
Contributor

Summary: Triton upstream removed triton.ops and moved it to a semi-unmaintained kernels repo. Since all that's needed here is the perf model, just add those bits here.

Summary: Triton upstream removed `triton.ops` and moved it to a
semi-unmaintained `kernels` repo.  Since all that's needed here is the perf
model, just add those bits here.
@@ -0,0 +1,208 @@
import functools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should have a reference comment to the triton upstream it was copies from, as well as suitable license attribution.

Suggested change
import functools
# Adapted from https://github.com/triton-lang/kernels/blob/eeeebdd8be7d13629de22d600621e6234057eed3/kernels/matmul_perf_model.py
# https://github.com/triton-lang/kernels is licensed under the MIT License.
import functools

should probably be enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@bertmaher
Copy link
Contributor Author

Hi @akx, any chance to get this merged? Thanks!

@akx
Copy link
Contributor

akx commented Dec 17, 2024

@bertmaher Sorry, I don't have merge privileges here, just a humble contributor. Cc @matthewdouglas :)

@matthewdouglas matthewdouglas self-assigned this Dec 17, 2024
@matthewdouglas
Copy link
Member

LGTM, thanks!

@matthewdouglas matthewdouglas merged commit 032beb9 into bitsandbytes-foundation:main Dec 17, 2024
pnunna93 pushed a commit to ROCm/bitsandbytes that referenced this pull request Feb 20, 2025
…1413)

* Remove triton.ops, copy necessary bits here

Summary: Triton upstream removed `triton.ops` and moved it to a
semi-unmaintained `kernels` repo.  Since all that's needed here is the perf
model, just add those bits here.

* Add source reference/license comment
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.

3 participants