hydra-zen
Installation
SKILL.md
hydra-zen Fluency
Overview
hydra-zen is not plain Hydra. It's a thin layer on top of Hydra/OmegaConf whose job is to eliminate hand-written YAML and _target_ strings by generating structured configs from real Python callables. The two things you trade for that:
- Type safety: configs are dataclasses derived from the callable's signature; missing or misspelled fields fail at config-build time, not at runtime (
builds(Foo, momtum=0.9)raisesTypeErrorimmediately ifFoohas nomomtumkwarg). - Less boilerplate (DRY): no
conf/YAML tree, no_target_: pkg.mod.Classstrings — you pass the class/function itself tobuilds(...)and hydra-zen mirrors the signature for you. Refactor the target, the config follows automatically.
If you find yourself writing a Hydra-style string where hydra-zen would accept a callable or a builder, you're working around hydra-zen instead of using it.
When to use
Use this skill when you see any of: