idiap / fast-transformers

Pytorch library for fast transformer implementations
1.65k stars 179 forks source link

ImportError #127

Open PaulaTeeuwen opened 1 year ago

PaulaTeeuwen commented 1 year ago

I installed pytorch-fast-transformers==0.4.0 on a linux computer using pip install.

The error I observe is: ImportError: /home/pcpt3/.conda/envs/gt4sd/lib/python3.8/site-packages/fast_transformers/causal_product/causalproduct cpu.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZTIN3c1021AutogradMetaInterfaceE

How do I solve this? Thank you in advance

DrBrule commented 10 months ago

I was having the same issue.

Update : Installing from source seems to help:

https://github.com/idiap/fast-transformers/issues/117