Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

faiss-gpu Wont install requirements #45

Closed
EthanHarwood opened this issue May 2, 2023 · 8 comments
Closed

faiss-gpu Wont install requirements #45

EthanHarwood opened this issue May 2, 2023 · 8 comments

Comments

@EthanHarwood
Copy link

WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/17/76/47d0cc8161f4bf988583a2839bb1e56baf09d6b80cfa472b9eba4d5f543b/faiss-gpu-1.7.1.post2.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/17/76/47d0cc8161f4bf988583a2839bb1e56baf09d6b80cfa472b9eba4d5f543b/faiss-gpu-1.7.1.post2.tar.gz (from -r requirements.txt (line 11)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'

@IntelligenzaArtificiale
Copy link
Owner

open the requirements.txt and comment the line with faiss-gpu and remove the comment frome the line faiss-cpu

@EthanHarwood
Copy link
Author

This is my contents of my requirments.txt
But i still seem to be having the same error. Have i done this correctly ? Thanks in advance

requests
langchain
streamlit
streamlit-chat-media
numpy
retry
duckduckgo-search
transformers
tabulate
wikipedia
faiss-gpu
nest_asyncio
torch

tensorflow >= 2.0 -- For other future models

flax -- For other future models

pytest-playwright
undetected-chromedriver>=3.2.1
markdownify>=0.11.6
hugchat

@IntelligenzaArtificiale
Copy link
Owner

replace faiss-gpu with faiss-cpu in your requirements.txt file.

@EthanHarwood
Copy link
Author

Thanks. that seems to be installing now. However, i do have a gpu installed so not sure why this has happened. Will it cause any performance issue using CPU instead ?

@IntelligenzaArtificiale
Copy link
Owner

Yes faiss-gpu uses your gpu to do the calculations so it's more performant. If the problem is resolved pls close the Issue ❤

@Amazonprimeo1
Copy link

Thanks. that seems to be installing now. However, i do have a gpu installed so not sure why this has happened. Will it cause any performance issue using CPU instead ?

@amazon1

@Amazonprimeo1
Copy link

No branch to pull request

@IntelligenzaArtificiale
Copy link
Owner

@Amazonprimeo1 use main branch . but make you have dowload the last version of repository and add good quality documentation for pull

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants