Repository navigation
Added ability to configure concurrent_requests in litellm_model.py - #911
Merged
Merged
Conversation
NathanHB
reviewed
Aug 12, 2025
NathanHB
approved these changes
Aug 12, 2025
NathanHB
left a comment
Member
There was a problem hiding this comment.
hey ! thanks for the fix, if the tests pass we are good to merge
Collaborator
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Co-authored-by: Nathan Habib <[email protected]>
Contributor
Author
Thanks for the review @NathanHB 🙇 I've updated with the suggested change. |
NathanHB
requested changes
Aug 13, 2025
NathanHB
left a comment
Member
There was a problem hiding this comment.
Hey, this is good to merge, i just missed that you need to add the new parametr to the docstring, thanks !
Contributor
Author
Sorry totally should have thought of that. Update made now |
NathanHB
approved these changes
Aug 14, 2025
NathanHB
added a commit
that referenced
this pull request
Sep 19, 2025
) * Added ability to configure concurrent_requests in litellm_model.py * Update src/lighteval/models/endpoints/litellm_model.py Co-authored-by: Nathan Habib <[email protected]> * Updated docstring for new concurrent_requests parameter in LiteLLMModelConfig --------- Co-authored-by: Nathan Habib <[email protected]>
rakkit
pushed a commit
to SDLAML/lighteval
that referenced
this pull request
Jun 21, 2026
…uggingface#911) * Added ability to configure concurrent_requests in litellm_model.py * Update src/lighteval/models/endpoints/litellm_model.py Co-authored-by: Nathan Habib <[email protected]> * Updated docstring for new concurrent_requests parameter in LiteLLMModelConfig --------- Co-authored-by: Nathan Habib <[email protected]>
artemorloff
pushed a commit
to artemorloff/lighteval
that referenced
this pull request
Jul 16, 2026
…uggingface#911) * Added ability to configure concurrent_requests in litellm_model.py * Update src/lighteval/models/endpoints/litellm_model.py Co-authored-by: Nathan Habib <[email protected]> * Updated docstring for new concurrent_requests parameter in LiteLLMModelConfig --------- Co-authored-by: Nathan Habib <[email protected]>
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.
This pull request updates the way concurrent API requests are configured for the LiteLLM model endpoint. Instead of using a hardcoded value, the number of concurrent requests is now configurable through the model's configuration object, making the code more flexible and easier to tune for different environments.
Configuration improvements:
concurrent_requeststo theLiteLLMModelConfigclass, allowing the number of concurrent API requests to be set via configuration instead of being hardcoded.LiteLLMClientclass to use the newconcurrent_requestsconfiguration value, removing the old hardcodedCONCURRENT_CALLSattribute.Concurrency handling:
__call_api_parallelmethod to use the configurableconcurrent_requestsvalue when creating theThreadPoolExecutor, improving flexibility and maintainability.