Skip to main content

A library for efficient similarity search and clustering of dense vectors.

Project description

faiss-wheels

Build PyPI

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 of generic, avx2, avx512. Note that AVX option is only available in x86_64 arch.
  • FAISS_ENABLE_GPU: Setting this variable to ON 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

faiss_cpu-1.8.0-cp312-cp312-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.12Windows x86-64

faiss_cpu-1.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

faiss_cpu-1.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

faiss_cpu-1.8.0-cp312-cp312-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

faiss_cpu-1.8.0-cp312-cp312-macosx_10_14_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.12macOS 10.14+ x86-64

faiss_cpu-1.8.0-cp311-cp311-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.11Windows x86-64

faiss_cpu-1.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

faiss_cpu-1.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

faiss_cpu-1.8.0-cp311-cp311-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

faiss_cpu-1.8.0-cp311-cp311-macosx_10_14_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

faiss_cpu-1.8.0-cp310-cp310-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.10Windows x86-64

faiss_cpu-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

faiss_cpu-1.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

faiss_cpu-1.8.0-cp310-cp310-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

faiss_cpu-1.8.0-cp310-cp310-macosx_10_14_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64

faiss_cpu-1.8.0-cp39-cp39-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.9Windows x86-64

faiss_cpu-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

faiss_cpu-1.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

faiss_cpu-1.8.0-cp39-cp39-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

faiss_cpu-1.8.0-cp39-cp39-macosx_10_14_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

faiss_cpu-1.8.0-cp38-cp38-win_amd64.whl (14.5 MB view details)

Uploaded CPython 3.8Windows x86-64

faiss_cpu-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

faiss_cpu-1.8.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

faiss_cpu-1.8.0-cp38-cp38-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

faiss_cpu-1.8.0-cp38-cp38-macosx_10_14_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

File details

Details for the file faiss_cpu-1.8.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: faiss_cpu-1.8.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for faiss_cpu-1.8.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9e6520324f0a6764dd267b3c32c76958bf2b1ec36752950f6fab31a7295980a0
MD5 fbe0759cb5f6213501b1d86b55102323
BLAKE2b-256 7d39e5bc357d7992f2a8e02af666f2bf01af6d247968fec6c08df56d8b6dc430

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d460a372efce547e53d3c47d2c2a8a90b186ad245969048c10c1d7a1e5cf21b
MD5 f01eb1a3dd30fab87c09a5a291563c36
BLAKE2b-256 feb85e19df9e07c8a251ef152c9a0805f3728eb4ace5a1c99e5dc7eb671d3f0d

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5658d90a202c62e4a69c5b065785e9ddcaf6986cb395c16afed8dbe4c58c31a2
MD5 cc1393746a74ac8cfd866053f9080a61
BLAKE2b-256 9e0b941585da76d22acb265472faaf4753bc257aecc9d16e342baedc2add157f

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b788186d6eb94e6333e1aa8bb6c84b66e967458ecdd1cee22e16f04c43ee674c
MD5 daa2f4eeb3b4e74dbb5b7fd78ffde91a
BLAKE2b-256 70f424f678bd798f7792fc4b6ec0a184d4d1128e182998ae00dbde09495320dc

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp312-cp312-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 61abc0129a357ac00f17f5167f14dff41480de2cc852f306c3d4cd36b893ccbd
MD5 485dd922f6b68064a8077c7973ea157a
BLAKE2b-256 5ade5eb33b994950e998f00ec7618e485e43847ace0a8a08466b7b9a866bccb0

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: faiss_cpu-1.8.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for faiss_cpu-1.8.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f85ecf3514850f93985be238351f5a70736133cfae784b372640aa17c6343a1b
MD5 5a9913726fd7a9913a25c4c26eccd68c
BLAKE2b-256 d3ad63eb31be05c38445781caecbc6d3b9dec151012194b00573ba34f29d5cf5

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b644b366c3b239b34fa3e08bf65bfc78a24eda1e1ea5b2b6d9be3e8fc73d8179
MD5 4f8dd7f8d5047d967d1c165cd675fffd
BLAKE2b-256 b5be23bfb89fdeacf133dffd905787c620740d89d3fd35ffcf98bdd31f9348f7

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fa943d3b5e8c5c77cdd629d9c3c6f78d7da616e586fdd1b94aecbf2e5fa9ba06
MD5 47532afe63b177f8275f2b0b7e73151b
BLAKE2b-256 7552db396f7b8bdad98a65d2df247d59183e890d11204ad830b2dc8f9a4418d8

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4601dbd81733bf1bc3bff690aac981289fb386dc8e60d0c4eec8a37ba6856d20
MD5 0c99b9ad6d93d803dd54bbf9b8ca3a12
BLAKE2b-256 c3d32465dda67d48c873fcce7dbfa8018a0ae648e150e4d336c84e8ba553c897

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c9e6ad94b86626be1a0faff3e53c4ca169eba88aa156d7e90c5a2e9ba30558fb
MD5 b6fae3742ac5b22ebaf947acff01dcbb
BLAKE2b-256 347bd2c76b92d3082998f74b6318c86f350f33f9a6bca7f671641744ba74b73d

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: faiss_cpu-1.8.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for faiss_cpu-1.8.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 38152761242870ec7019e0397cbd0ed0b0716562029ce41a71bb38448bd6d5bc
MD5 fe78f6cbe887414a470195525427e5ed
BLAKE2b-256 5a8e2328d2ce168c396950bb7b19311802c4e89ffc0d969bedd89a9656bd26ed

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51aaef5a1255d0ea88ea7e52a2415f98c5dd2dd9cec10348d55136541eeec99f
MD5 4f3034b4d7525c751065736b9d27e629
BLAKE2b-256 06f047615aeed86433e6ed84ea1c5e6fc650723fead0d7c30d56c78689bdb0b6

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a66e9fa7b70556a39681f06e0652f4124c8ddb0a1924afe4f0e40b6924dc845b
MD5 0b67770391fa9354a81a0428ca3f5e5f
BLAKE2b-256 9a92bcac599c5023eb4b6e72de1dbcbfc2fb207819a3486760847b5ae6357d40

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba8e6202d561ac57394c9d691ff17f8fa6eb9a077913a993fce0a154ec0176f1
MD5 c7390f2742be1f810017bc6889332db8
BLAKE2b-256 adbba5edf5f8f8cad32fbc9e2d4746bba510f3ed02c081abc6eed74627229c24

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 134a064c7411acf7d1d863173a9d2605c5a59bd573639ab39a5ded5ca983b1b2
MD5 8eb400fc6b67fefb2d32d16208c890f5
BLAKE2b-256 3e308f88460fe5df7a7cff3e2e8ba995bb9680eda49db8f1a399bf92930306fd

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: faiss_cpu-1.8.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for faiss_cpu-1.8.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cb475d3f25f08c97ac64dfe026f113e2aeb9829b206b3b046256c3b40dd7eb62
MD5 c7ea0b403d57514ab6b837ad88a56859
BLAKE2b-256 71a61f3c96d1bc32237aa76453638999cf9473383f5dcdd5438c578f81b9dea9

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 304da4e0d19044374b63a5b6467028572eac4bd3f32bc9e8783d800a03fb1f02
MD5 e021f06ae43b501d8a636416c135ffa9
BLAKE2b-256 f0a3588739a0baad3d63c2573d6cd7828c2a9e30e062e4edf1835a0611437cf9

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 652f6812ef2e8b0f9b18209828c590bc618aca82e7f1c1b1888f52928258e406
MD5 33814e21f71b06d18fbc13c29d0cc09c
BLAKE2b-256 312f270cce444fc52dfdf8ff5de470daaba80a25d656e3169d18012ea1d15271

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c6fa6b7eaf558307b4ab118a236e8d1da79a8685222928e4dd52e277dba144a
MD5 20dce61ba30760d27a0453f7473ba422
BLAKE2b-256 fe0ea6adde0c0ea2094bb57da36ec8cf1ccc2c2e055f4d6577b4399fc932eb4a

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e81fc376a3bcda213ffb395dda1018c953ce927c587731ad582f4e6c2b225363
MD5 85fb9bd7ce97c6b21d5f139309ffe822
BLAKE2b-256 ed964694074d8684b9684116d1669b34f7b7b585406ad714af8940a66ff31c7d

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: faiss_cpu-1.8.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for faiss_cpu-1.8.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 655433755845adbb6f0961e2f8980703640cb9faa96f1cd1ea190252149e0d0a
MD5 2f894266dc43bb2c89bac68fb9ab93ad
BLAKE2b-256 045ec56c670cc6f5fea71d4b3cd52d7194f2eb16ba15967a88370402bdd0fc1f

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b864e23c1817fa6cfe9bbec096fd7140d596002934f71aa89b196ffb1b9cd846
MD5 236ae018bf1fdccbd3b7932047b923ae
BLAKE2b-256 dbae76c22f84faa6dd4010cd9b869607c26769efbb8262bfb575095d4a4b098f

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06e7add0c8a06ce8fb0443c38fcaf49c45fb74527ea633b819e56452608e64f5
MD5 fa294373df01f814b83fa7f834abc1a9
BLAKE2b-256 eb792b43410ec86088c8dd364f721e5dcd8434b3d69a4acd664a56e78698fca8

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbd6f0bc2e1424a12dc7e19d2cc95b53124867966b21110d26f909227e7ed1f1
MD5 388b75af47cf7397b16388cd976dfeef
BLAKE2b-256 bc1cf51e5e5beb4b812b3857160bdc0649cf4c4f930eaad82910f2522c47d9be

See more details on using hashes here.

File details

Details for the file faiss_cpu-1.8.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for faiss_cpu-1.8.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 fc44be179d5b7f690484ef0d0caf817fea2698a5275a0c7fb6cbf406e5b2e4d1
MD5 07a9873771f32e5af7519b8495657053
BLAKE2b-256 fbb84ff1a1c72ca17971832486af8a94dc9a1069c47d74815bb5d65e3275820d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page