IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.44k stars 383 forks source link

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

Closed mah007 closed 1 year ago

mah007 commented 1 year ago

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.

gio98 commented 1 year ago

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

ajaix734 commented 1 year ago

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

gio98 commented 1 year ago

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 commented 1 year ago

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

mah007 commented 1 year ago

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 commented 1 year ago

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

gio98 commented 1 year ago

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

robertsmaoui commented 1 year ago

same error !

IntelligenzaArtificiale commented 1 year ago

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

gio98 commented 1 year ago

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}"}

IntelligenzaArtificiale commented 1 year ago

Update, tell us if now work .

image

IntelligenzaArtificiale commented 1 year ago

any news? Work now ?

zatniteur commented 1 year ago

Still not working

showkeyjar commented 8 months ago

+1 still not working