Conversation
Signed-off-by: root <root@pool0-01605.cm.cluster>
… into hyperparameters model section Signed-off-by: root <root@pool0-01605.cm.cluster>
Greptile SummaryThis PR fixes several issues in the StormCast training example. The changes consolidate model hyperparameter wiring to use Key changes:
Important Files Changed
Last reviewed commit: 558a869 |
| self.logger.info( | ||
| "Invariant conditions specified in model configuration, but dataset provides no invariants. Ignoring invariant conditions." | ||
| ) |
There was a problem hiding this comment.
Use warning level for misconfiguration log
When invariant conditions are specified in the model config but the dataset provides no invariants, the mismatch is silently logged at info level. This is a configuration issue the user should be explicitly alerted to — the specified conditions are being silently ignored, which could produce surprising results (e.g., a diffusion model trained without invariants while the config claims it uses them). A warning would be more appropriate here.
| self.logger.info( | |
| "Invariant conditions specified in model configuration, but dataset provides no invariants. Ignoring invariant conditions." | |
| ) | |
| self.logger.warning( | |
| "Invariant conditions specified in model configuration, but dataset provides no invariants. Ignoring invariant conditions." | |
| ) |
Additionally, note that self.condition_list is not updated to remove "invariant" after this point. The subsequent "Model conditions" log in _setup_model will still include "invariant" as an active condition, which contradicts the "Ignoring invariant conditions" message and may mislead users inspecting the logs.
Fix Stormcast example
Description
Checklist