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

.causal_product_cuda missing in pip installed version on linux #125

Closed
Jackl-o-o-l opened this issue Sep 5, 2023 · 4 comments
Closed

.causal_product_cuda missing in pip installed version on linux #125

Jackl-o-o-l opened this issue Sep 5, 2023 · 4 comments

Comments

@Jackl-o-o-l
Copy link

I installed the package with pip install --user pytorch-fast-transformers using python 3.8 in linux.

causal_product/__init__.py fails to find .causal_product_cuda in line 13
from .causal_product_cuda import ...

because causal_product_cpu.cpython-38-x86_64-linux-gnu.so is the only file left in the folder.

The file for .causal_product_cuda to be imported is missing.

@Jackl-o-o-l
Copy link
Author

I tried to download the code and build it with pip install -e . Only causal_product_cpu.cpp gets compiled and causal_product_cpu.cpython-38-x86_64-linux-gnu.so is generated.

@Jackl-o-o-l
Copy link
Author

The problem is finally solved with similar solution in #12

@Jackl-o-o-l
Copy link
Author

Jackl-o-o-l commented Sep 7, 2023

Final update: This issue is solved after adding CUDA to PATH.

After that pip uninstall pytorch-fast-transformers
and pip install --no-cache-dir pytorch-fast-transformers
should work.

You will find causal_product_cuda.cpython-38-x86_64-linux-gnu.so under folder causal_product

@cjmcgill
Copy link

@Jackl-o-o-l thanks for posting this fix!

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