In this article
In-place configuration changes the shared step object; copied options express a local variation without silently redefining later invocations.
The second candidate inherits an earlier edit
A pipeline reuses a training step for several candidate configurations. While preparing one candidate, the author mutates the step object’s configuration. A later invocation unexpectedly inherits those settings. The candidate table can still look structurally valid, making it difficult to notice that the intended experimental variants were not the ones executed.
Identify whether the object is shared across invocations. The question is not merely which parameter value appears at a particular call site, but whether an earlier operation changed the object that later calls reference.
Configuration methods have different ownership semantics
The ZenML configuration guide distinguishes configure, which modifies the object in place, from with_options, which creates a configured copy. Choose according to whether the change should affect subsequent use of the original object.
For candidate-specific variation, a copied configuration makes the intended scope explicit. An intentional global change can still be legitimate, but it should not be hidden inside preparation logic that appears to affect only a single model candidate.
Inspect the compiled or executed invocations
The execution guide distinguishes static graph construction from dynamic execution. Review the actual mode and invocation configuration when diagnosing the leak. A source-level loop is not enough evidence that its iterations retained independent settings.
Give each candidate an explicit semantic identity alongside its resolved parameters. Random-state replay remains a separate concern: independent configuration objects do not automatically supply independent or reproducible generator state to model training.
Record configuration where results are interpreted
The metadata guide explains attaching contextual information to steps, runs and artifacts. Preserve the effective non-sensitive candidate settings with their results so a reviewer can compare intent with execution rather than reading only the current source file.
Include the parameter relationships that matter scientifically. If an optimizer changes, a previously inherited option may become inappropriate even when the configuration is syntactically valid. Explicit schema contracts help make required combinations reviewable.
Test independence with a recognizable variation
Use deliberately distinct candidate settings in a small pipeline and inspect the effective configuration for each invocation. Reorder the preparation calls and confirm that candidate identity remains associated with the intended settings.
This test targets configuration ownership, not model quality. Once independence is established, the evaluation can meaningfully ask which declared candidate performed better. Without it, a polished comparison may simply compare accidentally duplicated or contaminated configurations.
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.