-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot get past 50 RPS #6592
Comments
hi @vutrung96 looking into this, how do you get the % complete log output ? |
Hi @ishaan-jaff I was just using tqdm |
Hi @ishaan-jaff , any updates on this, also facing this issue! |
hi @vutrung96 @CharlieJCJ do you see the issue on litellm.router too ? https://docs.litellm.ai/docs/routing It would help me if you could test with litellm router too |
Hi @ishaan-jaff Litellm uses the official OpenAI python client
The official OpenAI client has performance issues with high numbers of concurrent requests due to issues in httpx The issues in httpx are due to a number of factors related to anyio vs asyncio Which are addressed in the open PRs below
We saw this when implementing litellm as the backend for our synthetic data engine When using our own openai client (with aiohttp instead of httpx) we saturate the highest rate limits (30,000 requests per minute on gpt-4o-mini tier 5). When using litellm, the performance issues cap us well under the highest rate limit (200 queries per second - 12,000 requests per minute). |
What happened?
I have OpenAI tier 5 usage, which should give me 30,000 RPM = 500 RPS with "gpt-4o-mini". However I struggle get past 50 RPS.
The minimal replication:
I only get 50 items/second as opposed to ~500 items/second when sending raw HTTP requests.
Relevant log output
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: