feat: add LiteLLM backend for multi-provider benchmarking#800
Open
RheagalFire wants to merge 1 commit into
Open
feat: add LiteLLM backend for multi-provider benchmarking#800RheagalFire wants to merge 1 commit into
RheagalFire wants to merge 1 commit into
Conversation
Contributor
|
Hi @RheagalFire, the DCO check has failed. Please click on DCO in the Checks section for instructions on how to resolve this. |
d0d1bda to
1b1135f
Compare
Generated-by: Claude claude-opus-4-6 Signed-off-by: RheagalFire <arishalam121@gmail.com>
1b1135f to
8e17f9b
Compare
Author
|
cc @sjmonson |
sjmonson
requested changes
Jun 16, 2026
sjmonson
left a comment
Collaborator
There was a problem hiding this comment.
Just a quick issue I noticed. Also I am guessing you didn't run with pre-check locally since at minimum you will need to regen the lock file after changing dependencies. You can do that with tox run -e lock and plain tox run will run all the other CI tasks if you want to have a faster feedback loop.
| recommended = ["guidellm[perf,tokenizers]"] | ||
| # Feature Extras | ||
| perf = ["orjson", "msgpack", "msgspec", "uvloop"] | ||
| litellm = ["litellm>=1.80.0,<1.87.0"] |
Collaborator
There was a problem hiding this comment.
Any reason to cap the version at 1.87.0 when the latest available is 1.89.*? Also the minimum should be no lower then 1.83 due to that supply chain attack from a while back.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
litellmbackend that routes generation requests through the LiteLLM SDK, enabling benchmarking across 100+ providers (Anthropic, Gemini, Bedrock, Groq, Cohere, Mistral, etc.) via a unified interface. Timing instrumentation matches the existing OpenAI HTTP backend so benchmark results are directly comparable.Details
LiteLLMBackendandLiteLLMBackendArgsfollowing the existingBackend/BackendArgsregistration patternlitellm.acompletion(stream=True)withdrop_params=Truefor cross-provider compatibilityChatCompletionsRequestHandler.format()to build messages fromGenerationRequest.columnsguidellm.extras.litellmso the optional dep doesn't break imports when not installedlitellm>=1.80.0,<1.87.0added as optional dependency under[project.optional-dependencies].litellmTest Plan
pytest tests/unit/backends/litellm/ -vto verify unit testspytest tests/unit/backends/ -vto verify no regressions in existing backendsanthropic/claude-sonnet-4-6via Azure Foundry:Related Issues
Use of AI
git log
commit 8e17f9b
Author: RheagalFire arishalam121@gmail.com
Date: Tue Jun 16 23:51:47 2026 +0530
Generated-by: Claude claude-opus-4-6
Signed-off-by: RheagalFire arishalam121@gmail.com