nomic-ai / contrastors

Train Models Contrastively in Pytorch
Apache License 2.0
498 stars 36 forks source link

Install faiss #52

Closed DanielMitiku closed 1 month ago

DanielMitiku commented 1 month ago

Hello,

I'm having issue installing faiss. At this stage: make -C build -j faiss I get this error: make: *** build: No such file or directory. Stop.

I am following the readme on installing faiss

zanussbaum commented 1 month ago

Are you in the faiss directory?

DanielMitiku commented 1 month ago

yep, downloaded faiss from the latest source code and cd into it.

zanussbaum commented 1 month ago

Hm it looks like wherever you are, there's no makefile. can you print out your cwd as well as ls?

DanielMitiku commented 1 month ago

pwd: /opt/dlami/nvme/faiss

ls: CHANGELOG.md CONTRIBUTING.md LICENSE c_api cmake-3.28.0-rc4.tar.gz demos tests CMakeLists.txt Doxyfile README.md cmake conda faiss tutorial CODE_OF_CONDUCT.md INSTALL.md benchs cmake-3.28.0-rc4 contrib misc

zanussbaum commented 1 month ago

I mostly followed the instructions here, did you run cmake -B build . in the faiss directory?

DanielMitiku commented 1 month ago

yep, everything worked until that point. I run cmake -B build . in the cmake-3.28.0-rc4/ dir as the per the readme and I get this:

-- Configuring done (0.6s) -- Generating done (0.2s) -- Build files have been written to: /opt/dlami/nvme/faiss/cmake-3.28.0-rc4

Then I changed dir into faiss after that and get that error. I will look at the official repo if people faced similar issues.

zanussbaum commented 1 month ago

does it work if you cd into /opt/dlami/nvme/faiss/cmake-3.28.0-rc4 instead?

DanielMitiku commented 1 month ago

No, It doesn't. make: *** build: No such file or directory. Stop.

DanielMitiku commented 1 month ago

For some reason it worked after running the cmake again in the cmake-3.28.0-rc4 dir and make -C build -j faiss in the faiss I don't know what happened though. Thank you!