How to solve ValueError: Dependencies for InstructorEmbedding not found. Error
from huggingface_hub import HfApi, hf_hub_url, cached_download, HfFolder ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\Users\ayush\anaconda3\envs\env_localGPT\lib\site-packages\huggingface_hub_init_.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\ayush\OneDrive\Documents\localGPT\ingest.py", line 185, in
I am facing the same problem. Did someone find a solution for this? I tried several things like changing transformers version to 2.2.2 it didn't solve the problem.
I was able to solve this issue by installing the huggingface-hub package.
pip install huggingface-hub===0.24.0
yes, it solved the problem, but I think we need to remove it "cached_download" since it is deprecated and will be replaced by "hf_hub_download". @sreeragnv-intel thank you very much for your valuable contribution 👍
@TinoCoda
Are you able to the run the whole code??
@ayush20501 no. I can run the following command python ingest.py --device_type cpu, then DB folder is created with a chroma.sqlite3 file inside of it and a subfolder with an ID like name f60fb72d-bbda-4982-bb2b-804501036dcf.
But I haven't yet successfuly executed python run_localGPT --device_type cpu. I am working in two different computers (private computer and work computer). I'll keep you updated if I make it.