The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
update load test docs
Ishaan Jaffe5717d2cb057
diff --git a/docs/my-website/docs/benchmarks.md b/docs/my-website/docs/benchmarks.mdindex ddb3d0a57d9..570d45f8993 100644--- a/docs/my-website/docs/benchmarks.md+++ b/docs/my-website/docs/benchmarks.md@@ -5,25 +5,36 @@ import Image from '@theme/IdealImage';Benchmarks for LiteLLM Gateway (Proxy Server) tested against a fake OpenAI endpoint.+Use this config for testing:++**Note:** we're currently migrating to aiohttp which has 10x higher throughput. We recommend using the `aiohttp_openai/` provider for load testing.++```yaml+model_list:+ - model_name: "fake-openai-endpoint"+ litellm_params:+ model: aiohttp_openai/any+ api_base: https://your-fake-openai-endpoint.com/chat/completions+ api_key: "test"+```+## 1 Instance LiteLLM Proxy| Metric | Litellm Proxy (1 Instance) ||--------|------------------------|| Median Latency (ms) | 110 |-| RPS | 68.2 |+| RPS | 250 |-<Image img={require('../img/1_instance_proxy.png')} />+<!-- <Image img={require('../img/1_instance_proxy.png')} /> -->-## **Horizontal Scaling - 10K RPS**+<!-- ## **Horizontal Scaling - 10K RPS**-<Image img={require('../img/instances_vs_rps.png')} />+<Image img={require('../img/instances_vs_rps.png')} /> -->#### Key Findings-- Single instance: 68.2 RPS @ 100ms latency-- 10 instances: 4.3% efficiency loss (653 RPS vs expected 682 RPS), latency stable at `100ms`-- For 10,000 RPS: Need ~154 instances @ 95.7% efficiency, `100ms latency`-+- Single instance: 250 RPS @ 100ms latency+- 4 LiteLLM instances: 1000 RPS @ 100ms latency### 2 Instances@@ -32,20 +43,9 @@ Benchmarks for LiteLLM Gateway (Proxy Server) tested against a fake OpenAI endpo| Metric | Litellm Proxy (2 Instances) ||--------|------------------------|| Median Latency (ms) | 100 |-| RPS | 142 |-+| RPS | 500 |-<Image img={require('../img/2_instance_proxy.png')} />---### 10 Instances--| Metric | Litellm Proxy (10 Instances) |-|--------|------------------------|-| Median Latency (ms) | 110 |-| RPS | 653 |-<Image img={require('../img/10_instance_proxy.png')} />## Logging Callbacksdiff --git a/docs/my-website/docs/load_test_advanced.md b/docs/my-website/docs/load_test_advanced.mdindex 082b24e1927..0b3d38f3fcc 100644--- a/docs/my-website/docs/load_test_advanced.md+++ b/docs/my-website/docs/load_test_advanced.md@@ -25,6 +25,18 @@ Tutorial on how to get to 1K+ RPS with LiteLLM Proxy on locustcallbacks: ["prometheus"] # Enterprise LiteLLM Only - use prometheus to get metrics on your load test```+**Use this config for testing:**++**Note:** we're currently migrating to aiohttp which has 10x higher throughput. We recommend using the `aiohttp_openai/` provider for load testing.++```yaml+model_list:+ - model_name: "fake-openai-endpoint"+ litellm_params:+ model: aiohttp_openai/any+ api_base: https://your-fake-openai-endpoint.com/chat/completions+ api_key: "test"+```## Load Test - Fake OpenAI Endpoint@@ -46,7 +58,7 @@ litellm provides a hosted `fake-openai-endpoint` you can load test againstmodel_list:- model_name: fake-openai-endpointlitellm_params:- model: openai/fake+ model: aiohttp_openai/fakeapi_key: fake-keyapi_base: https://exampleopenaiendpoint-production.up.railway.app/@@ -170,7 +182,7 @@ Use the following [prometheus metrics to debug your load tests / failures](./pro## Machine Specifications for Running LiteLLM Proxy-👉 **Number of Replicas of LiteLLM Proxy=20** for getting 1K+ RPS+👉 **Number of Replicas of LiteLLM Proxy=4** for getting 1K+ RPS| Service | Spec | CPUs | Memory | Architecture | Version|| --- | --- | --- | --- | --- | --- |