Replies: 3 comments
-
OnDisk indexes is not supported on windows because the OS does not support the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the confirmation on this; as a result I've decided I might as well take the Ubuntu plunge... But out of curiosity, do you know if there are alternative methods to combining this kind of index file? |
Beta Was this translation helpful? Give feedback.
0 replies
-
If they fit in RAM, then you can just load the indexes and call merge_from. |
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
Attempting to merge a set of index files results in the following error:
Fulsome error at bottom of post.
Description:
I am following the following guide from a third party repository: https://github.com/rom1504/clip-retrieval/blob/main/docs/laion5B_h14_back.md in an attempt to run a local image-captioning pipeline. My issue occurs when I try to combine the 80 index files into one larger index, which uses faiss to do so through the following python function:
The problem is that it breaks on this line:
empty_index = faiss.read_index(block_fnames[0], faiss.IO_FLAG_MMAP)
and throws the error shown above (and at bottom of post).My best current guess as to the basic cause of the issue (other than corrupt index files possibly), is that since the overall index is 700 GB in total, well outside of my memory limitations, my windows OS might be the cause #2106 . I can't seem to find solid details about what exactly causes this, how I can get around it, or what my alternatives might be.
Platform
OS:
Windows 10
Faiss version:
faiss-cpu=1.7.4
Installed from: third party package: (
pip install huggingface_hub clip-retrieval
)Faiss compilation options: uncertain (set by third party package I reckon)
Running on:
Reproduction instructions
Reproducing this properly involves downloading over 700 gigabytes, so i don't recommend trying, but simply follow this guide on a windows 10 system and it will lead to the following error
Please don't hesitate to ask for any additional information that might be
Beta Was this translation helpful? Give feedback.
All reactions