Questions about index size #3953
Unanswered
Amphetaminewei
asked this question in
Q&A
Replies: 1 comment
-
The amount of memory used by HNSWFlat is
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Platform
OS: Ubuntu 2004
Faiss version: commit 52ce3f5
Installed from: compiled by myself
Faiss compilation options: cmake -DBUILD_TESTING=OFF -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=OFF ../
Running on: CPU
Interface: C++
Hi, I have some questions when verifying the index size.
In the material I consulted, HNSWFlat index use more memory than Flat indexe, HNSWFlat is a very memory-consuming index, but in my tests, the HNSWFlat index didn't use much more memory than the Flat index.
IndexHNSWFlat use memory 4043.84 MB, IndexFlatL2 use memory 3928.93 MB
They don't differ much, is this normal? Is it my hnsw index M that is too small and the index doesn't need more extra memory?
The code I used is as follows:
Beta Was this translation helpful? Give feedback.
All reactions