parallel searching in multi-gpu setting using faiss
See original GitHub issueWhile I notice that add_faiss_index
has supported assigning multiple GPUs, I am still confused about how it works.
Does the search-batch
function automatically parallelizes the input queries to different gpus?https://github.com/huggingface/datasets/blob/d76599bdd4d186b2e7c4f468b05766016055a0a5/src/datasets/search.py#L360
Issue Analytics
- State:
- Created a year ago
- Comments:25 (25 by maintainers)
Top Results From Across the Web
Faiss: A library for efficient similarity search
This month, we released Facebook AI Similarity Search (Faiss), a library that allows us to quickly search for multimedia documents that are ...
Read more >Using faiss to search in multidimensional spaces
Since we need to search among hundreds of millions of vectors quickly enough, exhaustive search is not an option — we need an...
Read more >Billion-scale similarity search with GPUs
This paper tackles the problem of better utilizing GPUs for this task. While. GPUs excel at data-parallel tasks, prior approaches are bot-.
Read more >Multi-GPU k-Nearest Neighbor Search in the Context of ...
vectors from Ω,. 2. Compute k-nearest neighbors for the query vector by using a sorting algorithm,. 3. Repeat steps 1 and 2 for...
Read more >Nearest Neighbors Search Using Multi-GPU
multi-GPU version of the grid method for solving the kNN problem. ... to reduce the computational cost is to explore the parallel nature...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes, there is a speed up using GPU compared with CPU.
By the way, have you run this toy example and replicated my experiment results? I think it is a more direct way to figure this out 😃