Skip to content

HNSW memory usage estimation #33424

May 28, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

HNSW size is a bit larger than original vectors size. Each dimension value is a float32 type, so each dimension value occupies 4 bytes.
original vectors size = 100K * 3072 * 4 Bytes = 1172MB
Then the HNSW size could be around 1200MB.

https://milvus.io/docs/index.md#HNSW
The range of M is (2, 2048). M=48 is ok, it is not a big value.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rere950303
Comment options

@yhmo
Comment options

@rere950303
Comment options

Answer selected by rere950303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants