facebookresearch / faiss

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

Home Page:https://faiss.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reproduce 4bit pq performance

chasingegg opened this issue · comments

commented

Summary

Platform

OS:

Faiss version:

Installed from:

Faiss compilation options:

Running on:

  • CPU
  • GPU

Interface:

  • C++
  • Python

Reproduction instructions

4ibt PQ SIMD is super fast, and I can easily reproduce the result with the conda package. However, when I try to reproduce the result by building from source, I just fail to reproduce, about 0.15s -> 2.5s degration. And I find out the mkl is successfully found by cmake. There is also a similar issue #1609 but could be fixed by setting mkl lib path. Anyone knows why?
image

Is it possible that your build command line does not enable AVX2?

commented

I see the reason.. There are two libs named faiss and faiss_avx2, although I enabled AVX2, I didn't link the avx2 version faiss... It is kind of weird that we have two libs.