pip install farm-haystack[all-gpu]
installs faiss-cpu
, breaking FAISS
#3218
Labels
Contributions wanted!
Looking for external contributions
P1
High priority, add to the next sprint
topic:dependencies
topic:faiss
topic:speed
type:bug
Something isn't working
Describe the bug
pip install farm-haystack[all-gpu]
will install alsofaiss-cpu
, which does not play well withfaiss-gpu
. This should not happen.faiss-gpu
: for example,faiss.get_num_gpus()
returns 0.Investigation results
pipdeptree
.beir
package, which requiresfaiss-cpu
explicitly but is installed in theall-gpu
group.beir
inall-gpu
makes sense, because it's a benchmarking package.Action to take
beir
regarding their management of the FAISS dependencyfaiss
beir-cellar/beir#71To Reproduce
pip install farm-haystack[all-gpu]
pip install farm-haystack[faiss-gpu]
Error message
Expected behavior
Additional context
FAQ Check
The text was updated successfully, but these errors were encountered: