-
Notifications
You must be signed in to change notification settings - Fork 273
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 'transformer_engine' #51
Comments
I didn't run into this error. Here's how I set up Evo2, it might be helpful for you: Install cuda12.4:
Install cudnn:
Set environment variables:
then: Create conda env for Evo2:
Install latest torch , cause I found this in vortex's requirements.txt: "torch>=2.6.0"
Install Evo2:
It takes a little while, but finally success. If got the error: "ModuleNotFoundError: No module named 'vortex.model', install vortex manually:
Hope it helpful for you! |
Thank you for sharing, can you also share what GPU model you are using? |
that works for me , especially the transformer engineer could not installed successfully for me due to cudnn install. After following your instructions to install cudnn everything works out. Thanks so much |
I meet the same problem. I spent several days and find out that the module transfomer_engine == 1.13.0 which is necessary requires glibc >= 2.28 on Linux. So if you are on Linux, you should check your transfomer_engine to see if it download transfomer_engine == 0.0.0 automatically. Every version of transfomer_engine needs glibc >= 2.28, except for transfomer_engine == 0.0.0 |
I had similar issues and decided to make a docker container, if you have docker you can do this:
Than you should enter the interactive container and you can test if evo2 works with:
However, I encountered another error "RuntimeError: CUDA error: CUDA-capable device(s) is/are busy or unavailable",
But I think this last error was specific for my system configuration, and thus not necessary for everyone. |
Why, when I enter this command python ./test/test_evo2.py --model_name evo2_7b I get this error:
Traceback (most recent call last):
File "C:\Users\User\evo2\test\test_evo2.py", line 9, in
from evo2 import Evo2
File "C:\ProgramData\anaconda3\envs\evo2\Lib\site-packages\evo2-0.1.0-py3.12.egg\evo2_init_.py", line 1, in
File "C:\ProgramData\anaconda3\envs\evo2\Lib\site-packages\evo2-0.1.0-py3.12.egg\evo2\models.py", line 12, in
File "C:\Users\User\evo2\vortex\vortex\model\model.py", line 14, in
from vortex.model.layers import (
File "C:\Users\User\evo2\vortex\vortex\model\layers.py", line 10, in
from transformer_engine.pytorch import Linear
ModuleNotFoundError: No module named 'transformer_engine'
The text was updated successfully, but these errors were encountered: