-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ModuleNotFoundError: No module named 'triton' #964
Labels
Comments
boseong-yun
changed the title
Module Not Found Error: Llama 3 - 8b model
Module Not Found Error (triton): Llama 3 - 8b model
Aug 27, 2024
Apologies on the issue! %%capture
# Installs Unsloth, Xformers (Flash Attention) and all other packages!
!pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
# We have to check which Torch version for Xformers (2.3 -> 0.0.27)
from torch import __version__; from packaging.version import Version as V
xformers = "xformers==0.0.27" if V(__version__) < V("2.4.0") else "xformers"
!pip install --no-deps {xformers} trl peft accelerate bitsandbytes triton |
danielhanchen
added
fixed - pending confirmation
Fixed, waiting for confirmation from poster
URGENT BUG
Urgent bug
labels
Aug 27, 2024
danielhanchen
changed the title
Module Not Found Error (triton): Llama 3 - 8b model
Module Not Found Error (triton)
Aug 27, 2024
danielhanchen
changed the title
Module Not Found Error (triton)
ModuleNotFoundError: No module named 'triton'
Aug 27, 2024
Works fine! Thank you for your prompt help. |
Had same issue thanks for the fix |
Thanks for this! Though it spewed a different error when I first applied the fix in my colab notebook, deleting the runtime and connecting to it again fixed it. |
No problems and sorry again! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I have been using the codes for a while (at least a week ago), and I can no longer import the module. There seem to be other people experiencing the same issues, but was not sure whether this problem was exactly the same. Sorry if this is a repeat. Here are the details:
After running the following (directly copied from your example code):
The following code chunk throws the error
Code:
Errror:
The text was updated successfully, but these errors were encountered: