localGPT icon indicating copy to clipboard operation
localGPT copied to clipboard

Installing depencies in conda takes forever

Open TinoCoda opened this issue 1 year ago • 3 comments

After cloning localGPT in my computer, I create a virtual environment using conda with the following command conda create -n localGPT_llama2 and then I activated the VE using conda activate localGPT_llama2. Running pip install -r requirements.txt it takes forever to install the depencies. I tried it on two computers it can easily take hours and hours. My first question: is someone else experiencing this problem? A subsequent issue it the compatibility problems between some libraries. I ran into the following error after trying to run python ingest.py --device_type cpu

C:\Users\Me\AppData\anaconda3\envs\localGPT_llama2\lib\site-packages\langchain\embeddings\huggingface.py", line 152, in init raise ValueError("Dependencies for InstructorEmbedding not found.") from e ValueError: Dependencies for InstructorEmbedding not found.

TinoCoda avatar Nov 11 '24 13:11 TinoCoda

For me it took nearly a hour to install all the packages.

I was able to solve this issue by installing the huggingface-hub package.

pip install huggingface-hub===0.24.0

sreeragu555 avatar Nov 13 '24 16:11 sreeragu555

@TinoCoda did you ever find out why it takes so long to download dependencies?

cswilsnetex avatar Jan 09 '25 19:01 cswilsnetex

@cswilsnetex no. But it's mainly connected to the version of hugging face that you choose. The one that is defined in the requirement.txt file is not working well. pip install huggingface-hub===0.24.0 solved the issue for me. But then I ran into other issues...

TinoCoda avatar Jan 10 '25 15:01 TinoCoda