gpo.zugaina.org

Search Portage & Overlays:

sci-libs/faiss

Library for efficient similarity search and clustering of dense vectors

Screenshots

  • faiss-1.14.3
    ~amd64 ~arm64
    python test cpu_flags_x86_avx2 cpu_flags_x86_avx512f python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14

    View      Download      Browse     License: MIT   
    Overlay: stuff
  • faiss-1.14.2
    ~amd64 ~arm64
    python test cpu_flags_x86_avx2 cpu_flags_x86_avx512f python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14

    View      Download      Browse     License: MIT   
    Overlay: stuff
  • faiss-1.14.1
    ~amd64 ~arm64
    python test cpu_flags_x86_avx2 cpu_flags_x86_avx512f python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14

    View      Download      Browse     License: MIT   
    Overlay: stuff

ChangeLog

commit 17b2b00372275d5fcc1f8dbf9b0a5838a7226623
Author: Ivan S. Titov <iohann.s.titov@gmail.com>
Date: Sat Jun 20 15:49:37 2026 +0200

sci-libs/faiss: Keyword 1.14.2 for ~arm64

commit 9395f30281a865597978d1640b9f8ce0c1c3a8a0
Author: Ivan S. Titov <iohann.s.titov@gmail.com>
Date: Sat Jun 20 15:49:36 2026 +0200

sci-libs/faiss: Keyword 1.14.1 for ~arm64

commit 73b7e41e88b6ee2ffdb04b6de5697d2558f99f64
Author: Ivan S. Titov <iohann.s.titov@gmail.com>
Date: Tue Jun 16 22:53:48 2026 +0200

sci-libs/faiss: Keyword 1.14.3 for ~arm64

aarch64-portable; no architecture-specific code.

commit cdb3fe52da4fda7249ef5d8752612c5a743fce7b
Author: Ivan S. Titov <iohann.s.titov@gmail.com>
Date: Sat Jun 13 13:24:31 2026 +0200

sci-libs/faiss: add 1.14.3, fix AVX512 fast-scan build

Patch-level bump (1.14.3); deps and FAISS_* knobs unchanged. The bump
surfaced a latent build bug that also broke the shipped 1.14.2, fixed in
both here.

AVX512 fast-scan: the headers (kernels_simd512.h, decompose_qbs.h) gate
their use of the AVX512 simd types on bare __AVX512F__, but those types
are only defined when COMPILE_SIMD_AVX512 is set (PRIVATE to the
faiss_avx512 target). With a -march that enables AVX512 (e.g. znver5) the
generic/avx2 targets get __AVX512F__ without the types and fail on gcc-16
(no member 'clear', missing operator>> / operator&, no lookup_4_lanes).
The local patch aligns both guards with faiss's own accumulate_loops_512.h;
the headers are byte-identical across 1.14.2/1.14.3 so the patch is shared.

src_install, both versions:
- Drop the libfaiss_python_callbacks.so relocation — faiss builds that
helper STATIC (linked into each _swigfaiss*.so), so the old move hit a
nonexistent file and aborted the USE=python build.
- Drop the duplicate /usr/faiss install (~57M of package + libfaiss*.so
copies); the importable package is the pip-installed site-packages one.

commit 8bdbc45e760cd3d092132380664fd77e3295d3bc
Author: Ivan S. Titov <iohann.s.titov@gmail.com>
Date: Sat May 23 00:41:53 2026 +0200

sci-libs/faiss: add 1.14.2

commit 06a8fffd889e58a72561fba2dbbbf4b23899a431
Author: Ivan S. Titov <iohann.s.titov@gmail.com>
Date: Sat May 9 12:34:38 2026 +0200

sci-libs/faiss: new package, add 1.14.1

Facebook AI Similarity Search — efficient nearest-neighbour and
similarity search over dense vectors. C++ library with optional
SWIG-generated Python bindings (USE=python; PyPI distribution name
"faiss-cpu", import name plain "faiss").

Stepping stone toward sci-ml/amd-gaia's deferred ui extra (which boots
faiss eagerly under gaia.ui.server) and standalone-useful for any RAG /
semantic-search pipeline against sci-ml/sentence-transformers.

CPU-only build (no FAISS_ENABLE_GPU / cuVS / SVS / ROCm — those are
their own packaging worlds and the gfx1150 host has no Faiss-supported
GPU path). FAISS_OPT_LEVEL is hierarchical: cpu_flags_x86_avx512f >
cpu_flags_x86_avx2 > generic; the Python loader.py picks the highest
variant available at runtime. Verified end-to-end on this Strix Point
host (avx512 selected, IndexFlatL2/IP/IVF queries return sensible
results).

Quirk worth a comment: libfaiss_python_callbacks.so is a pure-C++
helper that swigfaiss DT_NEEDs. Upstream PyPI wheels keep it inside
the package dir and rely on RPATH=$ORIGIN, but Gentoo's cmake.eclass
strips RPATH at install time, so the ebuild relocates it to
/usr/lib64/. Verified 2026-05-09 the SONAME has no libpython
dependency, so the relocation is safe across Python versions.