Bücher versandkostenfrei*100 Tage RückgaberechtAbholung in über 100 Filialen
Jetzt unser Bookcycling entdecken: Gebrauchte Bücher ganz leicht verkaufen
Alle Infos
mehr erfahren

Hydra 1.2 Patched Here

Version 1.2 introduces for certain resolver functions. Early benchmarks show a 40% reduction in instantiation time for large config suites. 5. Deprecation of hydra.main This is the breaking change you need to watch for. The decorator @hydra.main() has been a staple since day one. It now throws a DeprecationWarning . In Hydra 2.0 (planned for Q3 2026), it will be removed.

If you are on a legacy pipeline of 10,000+ lines of configs, pin your version to hydra-core==1.1.2 for now, but plan the migration. The deprecation of hydra.main means you will need to refactor your entry point logic. hydra 1.2

defaults: - storage: aws - optional region: ${storage.region} Hydra was notorious for adding 200–400ms to script startup time because it parsed every @dataclass and OmegaConf structure recursively. For long-running training jobs, this didn't matter. For serverless functions or CLIs? It hurt. Version 1

# Old (Hydra 1.1) @hydra.main(config_path="conf", config_name="config") def main(cfg): ... def main(): cfg = hydra.initialize_and_run(config_path="conf", config_name="config", task_function=my_task) Deprecation of hydra