TECHNOLOGY

Hydra multirun: submitted sweep choices do not freeze files that later jobs compose lazily

In this article
THE QUICK TAKE

A sweep request describes candidates, while lazy job composition can still observe subsequent code or configuration edits unless the execution source is kept stable.

Separate the sweep request from each realized job

A researcher starts a long Hydra multirun, then edits a shared model configuration while earlier jobs are still running. Later jobs show an unexpected architecture change. The multirun tutorial explicitly notes lazy configuration composition at job launch. The original list of requested choices therefore should not be treated as an immutable copy of every file that all future jobs will use. Preserve the realized configuration for each job, not only the controller’s command line.

Keep the execution source stable during the sweep

If the intended experiment changes only a learning-rate choice, unrelated code or configuration edits introduce another variable. Use an execution source whose revision remains identifiable for the entire comparison. A working directory on a mutable branch can keep changing while the sweep progresses. This is an operational design decision rather than a guarantee provided by a familiar sweep name. Record the code revision and any deliberately changed source files alongside the candidate configuration.

Inspect composition rather than reading one input file

The Defaults List reference explains how input configurations guide construction of the output configuration. A candidate’s final values can depend on selected groups and composition order, not only the most obvious primary file. When a later job differs unexpectedly, compare its realized configuration with the earlier job. Preserve enough information to distinguish an intended sweep override from an edit to a shared group that affected only jobs launched afterward.

Preserve job identity separately from readable labels

The job configuration guide distinguishes job numbers and launcher-provided identities. Use those execution identities with the realized candidate values rather than relying on an output-folder label alone. A readable label may omit parameters, and its numbering applies within an execution context. If a sweep is restarted, record the relationship between the old and new executions so equal-looking labels do not silently merge results from different source revisions.

Rehearse the boundary before broad comparisons

Use a small sweep and inspect the generated configuration for every realized job. In a controlled diagnostic copy, demonstrate whether an edit made before a later launch can affect its input, then establish the stable-source policy for the actual comparison. Related guides cover controlled experiment replay and artifact release manifests. The result is traceable candidate provenance. A complete sweep table is useful only when its rows identify the configurations and code that actually executed.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles