[Feature]: Add flag to disable compression on upstream requests? #3965
Manouchehri
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@Manouchehri can we move these from being issues to discussions? happy to move this to a feature request once if you can confirm you're seeing a perf boost here |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Feature
Similar to #3958 / #3533, LiteLLM might get a performance boost by disabling gzip on upstream LLM requests.
See encode/httpx#2220 (comment) for more details on how to disable compression. tl;dr: set the
Accept-Encoding: identity
header.Motivation, pitch
https://medium.com/@juan.deaton/gzip-data-compression-has-a-critical-role-of-increasing-performance-and-smashing-the-monstrous-caae5b4a001c#:~:text=CPUs%20are%20Inefficient%20at%20Performing%20GZIP&text=With%20no%20GZIP%2C%20the%20web,and%20consumes%207x%20more%20energy.
Twitter / LinkedIn details
https://www.linkedin.com/in/davidmanouchehri/
Beta Was this translation helpful? Give feedback.
All reactions