You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a highly concurrent environemnt using the async event loop and noticed that everything would get locked up. All of your code was using async, so we went looking in the asyncinferenceclient to see what it did when an inference endpoint wasn't ready......
Hi @james-deee , thanks for noticing. This is clearly an oversight from our side while implementing the AsyncInferenceClient. I've opened a PR to fix it: #2674
Describe the bug
We have a highly concurrent environemnt using the async event loop and noticed that everything would get locked up. All of your code was using async, so we went looking in the asyncinferenceclient to see what it did when an inference endpoint wasn't ready......
https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/inference/_generated/_async_client.py#L327
Unfortunately that blocks everything on the event loop. This should instead be:
await asyncio.sleep(1)
Reproduction
No response
Logs
No response
System info
The text was updated successfully, but these errors were encountered: