Skip to content

Commit 54d331e

Browse files
mdouzefacebook-github-bot
authored andcommitted
Update INSTALL.md (facebookresearch#2853)
Summary: Update the INSTALL to get a recipe "that works" to install GPU faiss (which is not obvious). Pull Request resolved: facebookresearch#2853 Reviewed By: algoriddle Differential Revision: D45652590 Pulled By: mdouze fbshipit-source-id: fededbdfda33e7a44d279e6bf16da316cff6fcb0
1 parent f809cf0 commit 54d331e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

INSTALL.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ $ conda install -c pytorch/label/nightly faiss-cpu
3131
$ conda install -c pytorch/label/nightly faiss-gpu
3232
```
3333

34-
A combination of versions that works with Pytorch (as of 2022-11-23):
34+
A combination of versions that installs GPU Faiss with CUDA 11.4 and Pytorch (as of 2023-05-08):
3535
```
36-
conda create -n faiss_1.7.3 python=3.8
37-
conda activate faiss_1.7.3
38-
conda install pytorch==1.11.0 cudatoolkit=11.3 -c pytorch
39-
conda install numpy
40-
conda install -c pytorch faiss-gpu=1.7.3 cudatoolkit=11.3
36+
conda create --name faiss_1.7.4 python=3.10
37+
conda activate faiss_1.7.4
38+
conda install faiss-gpu=1.7.4 -c pytorch -c nvidia
39+
conda install faiss-gpu pytorch pytorch-cuda -c pytorch -c nvidia
4140
conda install -c conda-forge notebook
4241
conda install -y matplotlib
4342
```

0 commit comments

Comments
 (0)