Hydra
Compose YAML configs, override from the shell, sweep in one flag
Latest: v1.3.6 (August 2024)
Framework for elegantly configuring complex applications: hierarchical YAML config composition, command-line overrides, and multirun sweeps with pluggable optimizers (Optuna, Nevergrad, Ax). Released by FAIR in 2019, Hydra became the de facto standard for ML experiment configuration and anchors popular templates like Lightning-Hydra.
Why it matters
Made hierarchical YAML config composition, command-line overrides and multirun sweeps the standard way to organize ML experiments. Hydra anchors popular templates such as Lightning-Hydra and appears in a large share of research codebases, so reading a Meta or academic training repo usually means reading a Hydra config first.
Facts
- About 9k GitHub stars; the hydra/sweeper=nevergrad one-liner turns any script into a hyperparameter search, and 'Lightning + Hydra' is arguably the most cloned research-project template on GitHub.
Try it yourself
Tutorial and docs ↗ pip install hydra-core ↗ Code on GitHub ↗