Commit 47ac5e7
Measure the real concurrency ceiling instead of reasoning about it
LiteLLM reports its own key limits and passes the provider's through on every
response, so both layers are observable rather than guesswork:
x-litellm-key-tpm-limit: 10000000 (per key)
x-litellm-key-rpm-limit: 5000 (per key)
llm_provider-x-ratelimit-limit-tokens-generated: 216000 (account)
llm_provider-x-ratelimit-limit-tokens-uncached-prompt: 2250000 (account)
llm_provider-x-ratelimit-limit-tokens-prompt: 14062500 (account)
One officeqa run at max_concurrency 24 draws 2.90M metered TPM (347k fresh prompt
+ 2.47M cache reads + 82k generated) at ~182 peak RPM. That fits 3.4 runs by
LiteLLM TPM, 27 by RPM, 6.5 by uncached prompt, 5.0 by total prompt -- and only
2.6 by generated tokens, which is therefore the binding ceiling. It is an account
limit reached through the key, so more keys do not raise it; only a key routing to
a different provider account would.
This corrects the previous note, which named provider pairing as the primary lever
without numbers and implied separate keys buy no independent capacity. They do buy
independent LiteLLM TPM/RPM; that just is not the first ceiling. Net effect is the
same for scheduling: the deepseek trio caps near 2 concurrent runs, and gaia is
free because gpt-5.4-mini never touches Fireworks.
Also note Fireworks meters cached and uncached prompt separately (14.06M vs
2.25M), which is why a ~90%-cache-read workload sits far below its prompt ceiling
while generated tokens are scarce.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent b4f07e7 commit 47ac5e7
1 file changed
Lines changed: 29 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
287 | 288 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
296 | 293 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
303 | 315 | | |
304 | 316 | | |
305 | 317 | | |
| |||
0 commit comments