Skip to content

docs: add hyperparameter sweep recipes - #681

Open
B1aZer wants to merge 1 commit into
gradio-app:mainfrom
B1aZer:sweep-recipes-docs
Open

docs: add hyperparameter sweep recipes#681
B1aZer wants to merge 1 commit into
gradio-app:mainfrom
B1aZer:sweep-recipes-docs

Conversation

@B1aZer

@B1aZer B1aZer commented Aug 30, 2026

Copy link
Copy Markdown

Follows up on #657 and the discussion in #669, where @abidlabs suggested documenting sweep recipes rather than adding a first-class sweep API.

This adds:

  • docs/source/sweeps.md — recipes for grid search, random search, and Bayesian optimization via Optuna, all built on the existing init(group=..., config=...) pattern; a section on viewing sweep results in the dashboard; a section on querying the best configuration over SQL (including that a run's group is stored under the _Group key in the config JSON); and a short section on delegating sweeps to coding agents, linking to the ML Agents guide.
  • examples/sweep-recipes.py — runnable, dependency-free example with the grid and random recipes.
  • A toctree entry under How-to guides.

Every snippet was run against a local install from main, including the Optuna recipe. While validating the SQL recipe I found that SELECT config ... comes back hex-encoded through trackio query — fix proposed separately in #680.

Happy to adjust scope or tone — e.g. trim the Optuna section if external-library recipes don't belong in the docs.

Grid, random, and Optuna recipes built on init(group=, config=),
plus dashboard viewing, SQL querying of results, and delegating
sweeps to coding agents. Includes a runnable example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants