# Optuna

> An open source hyperparameter optimization framework to automate hyperparameter search

Source: https://talira.ai/catalog/optuna-bv1g350m
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [ai / ml / hyperparameter optimization](https://talira.ai/categories/ai/ml/hyperparameter-optimization), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: no
- Backed by: [Preferred Networks](https://talira.ai/orgs/preferred-networks.md)

Optuna is a Python framework that searches for the best hyperparameters of a machine learning model automatically. You write an objective function and define the search space as you go with ordinary Python conditionals and loops, and Optuna runs trials with state-of-the-art samplers (TPE, CMA-ES, NSGA-II for several objectives among them), prunes unpromising trials early, and parallelizes over threads or processes without code changes. It works with any ML framework (PyTorch, TensorFlow, Keras, scikit-learn, LightGBM), stores studies in a database, and Optuna Dashboard shows them live in a browser, Jupyter Lab or VS Code. OptunaHub shares community samplers, and Rustuna is a faster Rust implementation of its samplers. Preferred Networks develops it with community contributors.

## Links

- Website: https://optuna.org/
- GitHub: https://github.com/optuna/optuna
- Docs: https://optuna.readthedocs.io/

## Problems it solves

- tune my model's hyperparameters automatically instead of grid searching by hand
- stop bad training runs early during a hyperparameter search
- run a hyperparameter search in parallel across several machines
- optimize a model for accuracy and speed at the same time

## Features

- define-by-run search spaces with Python conditionals and loops
- TPE, CMA-ES and NSGA-II samplers
- pruning of unpromising trials
- parallel and distributed optimization
- multi-objective optimization
- studies stored in a database such as SQLite
- Optuna Dashboard web UI, Jupyter Lab and VS Code extensions
- works with PyTorch, TensorFlow, Keras, scikit-learn and LightGBM
- OptunaHub community samplers

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.84, momentum 0.65, community 1.00, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 208 commits in the last 90 days
- latest release v5.1.0 8 days ago
- 15.1k GitHub stars
- 425 contributors
- accepts sponsorship (Github)
- backed by Preferred Networks

## Alternatives

- [Weights & Biases](https://talira.ai/catalog/weights-biases-z42j1638.md): The AI developer platform

## Sources

[^1]: https://github.com/optuna/optuna/blob/master/LICENSE (checked 24 Nov 2026)
