Skip to content

Commit

Permalink
Faiss version install conditional on Python version
Browse files Browse the repository at this point in the history
There are no faiss 1.7.x versions built for Python 3.12:
https://pypi.org/project/faiss-cpu/#files

Signed-off-by: Ehud-Karavani <[email protected]>
  • Loading branch information
ehudkr committed Jul 31, 2024
1 parent 6afd482 commit f624759
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion causallib/contrib/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-f https://download.pytorch.org/whl/cpu/ # To support cpu torch installation
torch>=1.2.0
faiss-cpu~=1.7.0 # Can also use gpu for some Python versions
faiss-cpu~=1.7.0;python_version < '3.12' # Can also use gpu for some Python versions
faiss-cpu~=1.8.0;python_version >= '3.12'

0 comments on commit f624759

Please sign in to comment.