A library for efficient similarity search and clustering of dense vectors.
Project description
faiss-wheels
faiss python wheel packages.
Overview
This repository provides scripts to build wheel packages for the faiss library.
- Builds CPU-only version with cibuildwheel.
- Bundles OpenBLAS in Linux/Windows
- Uses Accelerate framework in macOS
There is also a source package to customize the build process.
Note GPU package has been supported until version 1.7.2, but is not available since version 1.7.3 due to the PyPI limitation.
Install
Install a binary package by:
pip install faiss-cpu
Building source package
If there is a custom built faiss library in the system, build source package for the best performance.
Prerequisite
The source package assumes faiss is already built and installed in the system. Build and install the faiss library first.
cd faiss
cmake . -B build -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=OFF -DFAISS_OPT_LEVEL=avx512
cmake --build build --config Release -j
cmake --install build install
cd ..
See the official faiss installation instruction for more on how to build and install faiss.
For building sdist, swig 3.0.12 or later needs to be available.
Building a source distribution
The following builds and installs the faiss-cpu source package with AVX512.
export FAISS_OPT_LEVEL=avx512
pip install --no-binary :all: faiss-cpu
The following example builds a GPU wheel.
export FAISS_ENABLE_GPU=ON
pip install --no-binary :all: faiss-cpu
There are a few environment variables that specifies build-time options.
FAISS_INSTALL_PREFIX
: Specifies the install location of faiss library, default to/usr/local
.FAISS_OPT_LEVEL
: Faiss SIMD optimization, one ofgeneric
,avx2
,avx512
. Note that AVX option is only available in x86_64 arch.FAISS_ENABLE_GPU
: Setting this variable toON
builds GPU wrappers. Set this variable if faiss is built with GPU support.CUDA_HOME
: Specifies CUDA install location for building GPU wrappers, default to/usr/local/cuda
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for faiss_cpu-1.8.0.post1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8756f1d93faba56349883fa2f5d47fe36bb2f11f789200c6b1c691ef805485f2 |
|
MD5 | d5e777a9089e1b30b2e09ecf4b9579c7 |
|
BLAKE2b-256 | 3a0ad18ff177cab09587918b6e67ce75b7e0a2b90ea0b4fdc7c3535cca39c5e8 |
Hashes for faiss_cpu-1.8.0.post1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327a9c30971bf72cd8392b15eb4aff5d898c453212eae656dfaa3ba555b9ca0c |
|
MD5 | 42d45f94458659b9a573d842f597e35e |
|
BLAKE2b-256 | ba916460e628d7d1cfbce2f1a62bdd617619e2d8fb3d4428b5e4a1e2858aeb61 |
Hashes for faiss_cpu-1.8.0.post1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 709ef9394d1148aef70dbe890edbde8c282a4a2e06a8b69ab64f65e90f5ba572 |
|
MD5 | 1acda2d93344d7436a8a279abab5800f |
|
BLAKE2b-256 | 195e1fd33bee1ad83c12467d2850ecb7d9a6d28afb9a2c7aa88b92dfe75f3167 |
Hashes for faiss_cpu-1.8.0.post1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b06147fa84732ecdc965922e8ef50dc7011ef8be65821ff4abb2118cb5dce0 |
|
MD5 | d63732bca35c36846b665c3b7791e21c |
|
BLAKE2b-256 | 75b9eb43cbcbdc8c1177f1f275659920fb002c18e381253efb7f6431471f87df |
Hashes for faiss_cpu-1.8.0.post1-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96aec0d08a3099883af3a9b6356cfe736e8bd879318a940a27e9d1ae6f33d788 |
|
MD5 | 368ffc1e3ad2a875f13010614b9e6fa2 |
|
BLAKE2b-256 | e54f5d063231073917edfe1af57d1fcb2e281f60eca64694fb062428d80a1966 |
Hashes for faiss_cpu-1.8.0.post1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fa5fc8ea210b919aa469e27d6687e50052db906e7fec3f2257178b1384fa18b |
|
MD5 | 0effae275a19875dc95552050be4c4c5 |
|
BLAKE2b-256 | 4ce1657eb537027b2d7aa0f0ccfc58aee6fe0252ea3d9e49472aecc5c7f30992 |
Hashes for faiss_cpu-1.8.0.post1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed46928de3dc20170b10fec89c54075a11383c2aaf4f119c63e0f6ae5a507d74 |
|
MD5 | 4b84e880cf2f066ff49590d434b869b7 |
|
BLAKE2b-256 | 766c256239bd142101cd2ce50d920622ab6d5a03742eabc462db49d7910c69c7 |
Hashes for faiss_cpu-1.8.0.post1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8542a87743a7f94ac656fd3e9592ad57e58b04d961ad2fe654a22a8ca59defdb |
|
MD5 | d6e2de2cfb761799cff798a9ea61567a |
|
BLAKE2b-256 | c5d232832d55f6ef6e4ac9316fd4169b1c62c88c4e0248b8e76499308b7d100e |
Hashes for faiss_cpu-1.8.0.post1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20bd43eca3b7d77e71ea56b7a558cc28e900d8abff417eb285e2d92e95d934d4 |
|
MD5 | 5999db9c99ec98463afff51093f508a2 |
|
BLAKE2b-256 | 4490a21e37b01a302b8bcf1f30747eae1812d43f45e7f1a08bfa7da28c6647ce |
Hashes for faiss_cpu-1.8.0.post1-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d4bade10cb63e9f9ff261751edd7eb097b1f4bf30be4d0d25d6f688559d795e |
|
MD5 | 97786d590e1c645388b651ee9a2f2768 |
|
BLAKE2b-256 | 17d2c90a810b594d11f66b0162a08415029b7e056243a5023a7d5c719353a057 |
Hashes for faiss_cpu-1.8.0.post1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00345290680a444a4b4cb2d98a3844bb5c401a2160fee547c7631d759fd2ec3e |
|
MD5 | 32524fa7d5ad8c73c1a9f1526639530c |
|
BLAKE2b-256 | 42c648fcc1368b3bf6a72fc4d9311d24a2d9bac2735a7de5be640b8babcd24e2 |
Hashes for faiss_cpu-1.8.0.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adae0f1b144e7216da696f14bc4991ca4300c94baaa59247c3d322588e661c95 |
|
MD5 | 2f7c8327ce5ff0d15bf0e19c63b29953 |
|
BLAKE2b-256 | 87dad0caea09df6b6b3ef1dc6662154e095e1049c3881d841609c2438eb17e80 |
Hashes for faiss_cpu-1.8.0.post1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9de25c943d1789e35fe06a20884c88cd32aedbb1a33bb8da2238cdea7bd9633f |
|
MD5 | a0a85f11cb9c5097d9690c40d27b4f78 |
|
BLAKE2b-256 | 78f140dc20554510728ee35d0aaa7aae1820fffd673ab04d44f76413dad55754 |
Hashes for faiss_cpu-1.8.0.post1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78ff9079d15fd0f156bf5dd8a2975a8abffac1854a86ece263eec1500a2e836 |
|
MD5 | 103ed3c7cf3fffa1ed6f394b304d4721 |
|
BLAKE2b-256 | 1f22231e1b30cf7d90da6a59bf6169c509ae62d3c3b1e9a88b702c267cd25e41 |
Hashes for faiss_cpu-1.8.0.post1-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd84721eb599aa1da19b1b36345bb8705a60bb1d2887bbbc395a29e3d36a1a62 |
|
MD5 | b5c2de01823b7bad539f90cacf4e9035 |
|
BLAKE2b-256 | a36c025d4b55e81c23b63ce093880afa5944f7f5cdc1a93e7a10b0f67fcc26b5 |
Hashes for faiss_cpu-1.8.0.post1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fcc67a2353f08a20c1ab955de3cde14ef3b447761b26244a5aa849c15cbc9b3 |
|
MD5 | 0d410c498d4e83c71789ceab6efe7b65 |
|
BLAKE2b-256 | c8add74139e96d50b55f280a524475e4616dcb296397764f8216d0967515626a |
Hashes for faiss_cpu-1.8.0.post1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f3b36b80380bae523e3198cfb4a137867055945ce7bf10d18fe9f0284f2fb47 |
|
MD5 | dcd524199de30be4c7083e4b8a0b2c96 |
|
BLAKE2b-256 | 9c59210909b9583acdc684f9a80a0882c63b2d4b0965c65a4394668b973a3c6d |
Hashes for faiss_cpu-1.8.0.post1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98ce428a7a67fe5c64047280e5e12a8dbdecf7002f9d127b26cf1db354e9fe76 |
|
MD5 | 414d6d43244b767e6da840094bd782b5 |
|
BLAKE2b-256 | f9715e22c2a2e3e3edb8902c41f9d307fc989c738f45bfa120a3b92d1c71d6af |
Hashes for faiss_cpu-1.8.0.post1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c50c8697077470ede7f1939ef8dc8a846ec19cf1893b543f6b67f9af03b0a122 |
|
MD5 | 34e3aa28d919289f8e88678464195c44 |
|
BLAKE2b-256 | c22ae72ebe364754fb110cfd802aec92c2a1bb3590f55d6c1910b3c6fe3c6d18 |
Hashes for faiss_cpu-1.8.0.post1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ef04b17b19189dd6601a941bdf4bfa9de0740dbcd80305aeba51a1b1955f80 |
|
MD5 | 71047c371aa0f1d707d3e5cbdbc0dc4f |
|
BLAKE2b-256 | 8ff1e7c2e9991a4c5779742c5069fc259b7b846658c17aac7c782f997fa8363b |
Hashes for faiss_cpu-1.8.0.post1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce652df3c4dd50c88ac9235d072f30ce60694dc422c5f523bbbcab320e8f3097 |
|
MD5 | da1b9917f837add634203bd348f963ab |
|
BLAKE2b-256 | 9d205eb782f90ff39a4da7311096a9f28b091c596f1e1b8be32388e841919612 |
Hashes for faiss_cpu-1.8.0.post1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a70923b0fbbb40f647e20bcbcbfd472277e6d84bb23ff12d2a94b6841806b55 |
|
MD5 | 8e317d90a5ed0c0f4fdb60f24e5e1580 |
|
BLAKE2b-256 | 28bde199ff36d8688df5e118f99673ffb36ea76da77b80577c6beecab8053133 |
Hashes for faiss_cpu-1.8.0.post1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d5a9799634e32c3862d5436d1e78112ed9a38f319e4523f5916e55d86adda8f |
|
MD5 | 9fc7e4cf6d917726f2a64b223f8b2f38 |
|
BLAKE2b-256 | 975753ac928f045879e348859111a1debdec10dc88a6c596381bb21513ddfdb7 |
Hashes for faiss_cpu-1.8.0.post1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8842b7fc921ca1fafdb0845f2ba029e79df04eebae72ab135239f93478a9b7a2 |
|
MD5 | da3e3607a260b0a50d85e70a8b12c978 |
|
BLAKE2b-256 | e2e99cbc94fd9802641ab491aeee9f6e53917bf6aeef176dbdb2b21270c19253 |
Hashes for faiss_cpu-1.8.0.post1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a3045909c447bf1955b70083891e80f2c87c5427f20cae25245e08ec5c9e52 |
|
MD5 | e0a815b6f8322412263eefe5bc26ff8a |
|
BLAKE2b-256 | 666b2e84b5b9f28f4a82f40e151098b1283beebd0b9c3fb348f61c7dbff90d58 |