TransformerEngine icon indicating copy to clipboard operation
TransformerEngine copied to clipboard

AttributeError: module 'transformer_engine' has no attribute 'pytorch'

Open carrot0117 opened this issue 1 year ago • 3 comments

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 avatar Dec 17 '24 12:12 carrot0117

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

carrot0117 avatar Dec 17 '24 12:12 carrot0117

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 avatar Jan 02 '25 19:01 ptrendx

Closing this issue due to lack of activity. Please feel free to reopen if you still encounter this issue.

ptrendx avatar Jan 06 '26 19:01 ptrendx