Closed
Conversation
Summary: Fix erroneous logging `Failed to load GPU Faiss: No module named 'swigfaiss_gpu'. Will not load constructor refs for GPU indexes.` when I was running on a GPU-based index just fine. `GpuIndex...` is loaded via loader.py. X-link: facebookresearch/faiss#4086 Reviewed By: mnorris11 Differential Revision: D67118292 Pulled By: asadoughi
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D67118292 |
facebook-github-bot
pushed a commit
to facebookresearch/faiss
that referenced
this pull request
Dec 12, 2024
Summary: X-link: meta-pytorch/torchrec#2628 Fix erroneous logging `Failed to load GPU Faiss: No module named 'swigfaiss_gpu'. Will not load constructor refs for GPU indexes.` when I was running on a GPU-based index just fine. `GpuIndex...` is loaded via loader.py. Pull Request resolved: #4086 Test Plan: before ``` (faiss_gpu_cuvs_nightly) [sadoughi@devvm15198.frc0 ~]$ python3 script.py Failed to load GPU Faiss: No module named 'swigfaiss_gpu'. Will not load constructor refs for GPU indexes. ``` after ``` (faiss_gpu_cuvs_nightly) [sadoughi@devvm15198.frc0 ~]$ python3 Python 3.12.8 | packaged by conda-forge | (main, Dec 5 2024, 14:24:40) [GCC 13.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import faiss >>> ``` Reviewed By: mnorris11 Differential Revision: D67118292 Pulled By: asadoughi fbshipit-source-id: aa05aa20fe61e4ad75d4234f52e3b0d6a673a0b9
samanthawaters8882michaeldonovan
added a commit
to samanthawaters8882michaeldonovan/faiss
that referenced
this pull request
Oct 12, 2025
Summary: X-link: meta-pytorch/torchrec#2628 Fix erroneous logging `Failed to load GPU Faiss: No module named 'swigfaiss_gpu'. Will not load constructor refs for GPU indexes.` when I was running on a GPU-based index just fine. `GpuIndex...` is loaded via loader.py. Pull Request resolved: facebookresearch/faiss#4086 Test Plan: before ``` (faiss_gpu_cuvs_nightly) [sadoughi@devvm15198.frc0 ~]$ python3 script.py Failed to load GPU Faiss: No module named 'swigfaiss_gpu'. Will not load constructor refs for GPU indexes. ``` after ``` (faiss_gpu_cuvs_nightly) [sadoughi@devvm15198.frc0 ~]$ python3 Python 3.12.8 | packaged by conda-forge | (main, Dec 5 2024, 14:24:40) [GCC 13.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import faiss >>> ``` Reviewed By: mnorris11 Differential Revision: D67118292 Pulled By: asadoughi fbshipit-source-id: aa05aa20fe61e4ad75d4234f52e3b0d6a673a0b9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Fix erroneous logging
Failed to load GPU Faiss: No module named 'swigfaiss_gpu'. Will not load constructor refs for GPU indexes.when I was running on a GPU-based index just fine.GpuIndex...is loaded via loader.py.X-link: facebookresearch/faiss#4086
Reviewed By: mnorris11
Differential Revision: D67118292
Pulled By: asadoughi