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 'transformer_engine' has no attribute 'pytorch' #1379

Open
carrot0117 opened this issue Dec 17, 2024 · 2 comments
Open
Assignees

Comments

@carrot0117
Copy link

I encountered the error AttributeError: module 'transformer_engine' has no attribute 'pytorch' when installing TE using pip install transformer_engine. Does anyone have any good solutions?

@carrot0117
Copy link
Author

transformer_engine==1.13.0
pytorch==2.3.0
cuda==12.1

@ptrendx
Copy link
Member

ptrendx commented Jan 2, 2025

Hi @carrot0117 to install from the pip wheel you need to specify which framework you want to use TE with. E.g. to install with pyTorch support you need to install

pip install transformer_engine[pytorch]

For more information see our Installation guide.

@ptrendx ptrendx self-assigned this Jan 2, 2025
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

2 participants