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

AttributeError: module 'triton.language.math' has no attribute 'round' #42

Open
sourcesync opened this issue Sep 17, 2024 · 2 comments
Open

Comments

@sourcesync
Copy link

Versions:

  • python=3.9
  • mmfreelm=0.1
  • triton=3.0.0
  • torch=2.4.1
  • transformers=4.44.2

It could be related to this triton issue.

@ridgerchu
Copy link
Owner

Hi, I think you can try to downgrade your triton to 2.3.1, and it will be solved.

@tcollavo
Copy link

replacing "y = tl.math.round(y * scale)" with "y = tl.extra.cuda.libdevice.round(y * scale)" in the following files fixed the issue for me:
./.local/lib/python3.12/site-packages/mmfreelm/ops/fusedbitnet.py line 128
./.local/lib/python3.12/site-packages/mmfreelm/ops/fusedbitnet.py line 282

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

No branches or pull requests

3 participants