Free-Auto-GPT icon indicating copy to clipboard operation
Free-Auto-GPT copied to clipboard

RuntimeError: The model is currently loading, please re-run the query.

Open mah007 opened this issue 1 year ago • 11 comments

File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/retry/api.py", line 33, in __retry_internal return f() File "/home/mahmoud/Projects/gpt/Embedding/HuggingFaceEmbedding.py", line 33, in newEmbeddings raise RuntimeError( RuntimeError: The model is currently loading, please re-run the query.

mah007 avatar May 09 '23 11:05 mah007

hi i have same issue , i debug the code the problem is the hugging face token , they probably have change something and it stop work because i receive in output the header is valid and token no. i try create new account in hugging face but the site no permit submit the request

gio98 avatar May 09 '23 12:05 gio98

Hi, Refer #67 and see if changing the model_id helps

ajaix734 avatar May 09 '23 13:05 ajaix734

hi ajaix i try but same error , the problem is not the model but api token, if you debug can see the error appear

gio98 avatar May 09 '23 13:05 gio98

ok i see the code again and now whith modify of ajaix i resolve, thank you!

gio98 avatar May 09 '23 17:05 gio98

ok i see the code again and now whith modify of ajaix i resolve, thank you!

i see it still not working how can we fix it ?

mah007 avatar May 09 '23 17:05 mah007

{'error': 'Authorization header is correct, but the token seems invalid'}

mah007 avatar May 09 '23 20:05 mah007

good morning mah , i get same error and i change the url as say ajaix and after it will work

gio98 avatar May 10 '23 07:05 gio98

same error !

robertsmaoui avatar May 10 '23 09:05 robertsmaoui

@gio98 can you share your solution ? So let's update the code.

IntelligenzaArtificiale avatar May 10 '23 09:05 IntelligenzaArtificiale

hi all in folder embeded modify huggingface.py #read from env the hf token if os.environ.get("HUGGINGFACEHUB_API_TOKEN") is not None: hf_token = os.environ.get("HUGGINGFACEHUB_API_TOKEN") else: raise Exception("You must provide the huggingface token")

#model_id = "sentence-transformers/all-MiniLM-L6-v2" model_id = "obrizum/all-MiniLM-L6-v2" api_url = f"https://api-inference.huggingface.co/pipeline/feature-extraction/{model_id}" headers = {"Authorization": f"Bearer {hf_token}"}

gio98 avatar May 10 '23 11:05 gio98

Update, tell us if now work .

image

IntelligenzaArtificiale avatar May 10 '23 12:05 IntelligenzaArtificiale

any news? Work now ?

IntelligenzaArtificiale avatar May 11 '23 08:05 IntelligenzaArtificiale

Still not working

zatniteur avatar Jun 12 '23 06:06 zatniteur

+1 still not working

showkeyjar avatar Nov 02 '23 03:11 showkeyjar