#3939th of 433 in ML frameworks and libraries

optuna

Python hyperparameter optimization library with define-by-run search spaces

Stars
15.1k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 35 weeks+1,462
25 Mar 2026: 13,641 stars1 Apr 2026: 13,703 stars8 Apr 2026: 13,775 stars15 Apr 2026: 13,859 stars22 Apr 2026: 13,922 stars29 Apr 2026: 13,976 stars6 May 2026: 14,004 stars13 May 2026: 14,062 stars20 May 2026: 14,106 stars27 May 2026: 14,165 stars3 Jun 2026: 14,219 stars10 Jun 2026: 14,259 stars17 Jun 2026: 14,285 stars24 Jun 2026: 14,320 stars1 Jul 2026: 14,359 stars8 Jul 2026: 14,393 stars15 Jul 2026: 14,444 stars22 Jul 2026: 14,487 stars29 Jul 2026: 14,524 stars5 Aug 2026: 14,559 stars12 Aug 2026: 14,602 stars19 Aug 2026: 14,629 stars26 Aug 2026: 14,668 stars2 Sept 2026: 14,699 stars9 Sept 2026: 14,736 stars16 Sept 2026: 14,769 stars23 Sept 2026: 14,808 stars30 Sept 2026: 14,836 stars7 Oct 2026: 14,874 stars14 Oct 2026: 14,903 stars21 Oct 2026: 14,941 stars28 Oct 2026: 14,981 stars4 Nov 2026: 15,008 stars11 Nov 2026: 15,049 stars18 Nov 2026: 15,074 stars25 Nov 2026: 15,103 stars

13,641 on 25 Mar 202615,103 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Optuna is a Python library for hyperparameter optimization. You write an objective function that calls trial.suggest_* methods, and a study runs it over many trials using samplers and pruners. Search spaces are built dynamically in plain Python, including conditionals and loops, and studies can be persisted to a database such as SQLite and run across multiple workers.

Who it is for: ML engineers and researchers tuning model hyperparameters in Python

Strengths

  • Define-by-run API allows conditional and looped search spaces in ordinary Python
  • Pruning of unpromising trials, plus multi-objective and constrained optimization examples
  • Scales to many workers via shared storage with little code change
  • Separate optuna-dashboard gives a web UI for history and parameter importance

Weaknesses

  • Not tied to a model framework, so training code and integrations are yours to write
  • Dashboard is a separate package, not part of the core install
  • Rust port Rustuna is experimental and lacks some Optuna features
  • Requires Python 3.10 or newer

What it needs

  • no GPU
  • Needs Python 3.10+, optional: SQLite or other database storage, optional: optuna-dashboard

What changed

  1. “Drop python 3.9 by @gen740 in https://github.com/optuna/optuna/pull/6890”

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#37transformerlensPython library for inspecting and editing activations in language models4.1k stars+95 (+2.4%) in 30 daysMIT83 out of 100
#38scikit-learnPython library of classical machine learning algorithms built on NumPy and SciPy68.4k starsBSD-3-Clause82 out of 100
#40tokenizersRust tokenization library with Python, Node.js and WASM bindings11.3k stars+128 (+1.1%) in 30 daysApache-2.082 out of 100
#41metaflowPython framework for building, scaling and deploying ML and AI workflows Live demo ↗ (opens in a new tab)10.4k starsApache-2.082 out of 100
#42vowpal_wabbitOnline machine learning library with contextual bandits and hashed features8.7k starscustom license82 out of 100