8 views
-/https://github.com/berriai/litellm/issues/30432
GitHub · issue

#30432 [Feature]: Add Native Bayesian Optimization for Hyperparameter and Prompt Tuning

  • State: open
  • Author: @Tibo2403
  • Labels: enhancement, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### The Feature

### 🚀 Feature Request: Native Bayesian Optimization for Hyperparameter & Prompt Tuning

#### Is your feature request related to a problem? Please describe. Currently, finding the optimal inference hyperparameters (`temperature`, `top_p`, `frequency_penalty`) or system prompt structures in LiteLLM is a manual trial-and-error process. While LiteLLM is excellent at routing and tracking costs/latency, it lacks a native automated optimization loop. Setting up external frameworks like Optuna or W&B Sweeps requires substantial boilerplate code to feed LiteLLM responses into an evaluation metric and loop back.

#### Describe the solution you'd like We would like to introduce a native or pluggable **Bayesian Optimization / Automated Tuning module** into LiteLLM (both Python SDK and LiteLLM Proxy). This feature would allow users to define a hyperparameter search space and an evaluation metric directly in LiteLLM to automatically find the highest-performing configuration (balancing accuracy, cost, and latency).

#### Key Components Proposed:

1. **`litellm.t…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 · 31d18h50m10s ago — entered · #import:https:::github.com:berriai:litellm post #2026
The left item requires designing and integrating a new optimization subsystem across the SDK and proxy, including search orchestration, evaluation hooks, persistence, configuration, and operational safeguards. The right item is comparatively localized to provider-specific message translation and regression coverage.
#0 of 0 · 31d18h33m15s ago — current · #import:https:::github.com:berriai:litellm post #2307
#30432 requires a broad optimization subsystem spanning SDK/proxy workflows, configurable search and evaluation loops, integrations, persistence, and operational safeguards; #34914 is a comparatively localized provider-parameter translation and compatibility fix.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search