Skip to content

Fix cached latents configs#336

Merged
sgreenbury merged 3 commits intomainfrom
fix-cached-latents-configs
Apr 20, 2026
Merged

Fix cached latents configs#336
sgreenbury merged 3 commits intomainfrom
fix-cached-latents-configs

Conversation

@sgreenbury
Copy link
Copy Markdown
Contributor

This pull request introduces robust preflight validation to ensure cached latent-space data is always consistent with the corresponding autoencoder (AE) training configuration. It adds explicit normalization settings to all cache-latents experiment configs, and updates all relevant SLURM submission scripts to fail fast if there is any mismatch in critical datamodule fields between the cache and AE configs. The main changes are grouped below:

Validation and Consistency Enforcement:

  • Added a new shared script, validate_cached_latents_against_ae.sh, which checks that critical datamodule fields (such as data_path, n_steps_input, stride, use_normalization, etc.) in cached-latents configs match those in the AE training config, and that normalization usage is explicitly set and consistent. This script is now sourced and used by all cached-latents submission scripts.
  • All SLURM scripts for cached-latent runs (submit_cache_latents.sh, submit_crps_latent_large.sh, submit_crps_latent_timing.sh, submit_crps_latent_cns_large.sh, submit_crps_latent_cns_timing.sh, submit_fm_large.sh, submit_fm_timing.sh) now invoke this validation and will skip or abort if configs are inconsistent. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Experiment Configuration Updates:

  • Explicitly set datamodule.use_normalization: true in all cache-latents experiment YAMLs, ensuring that normalization intent is always clear and validated. [1] [2] [3] [4]

Documentation:

  • Updated slurm_scripts/comparison/README.md to document the new validation checks and clarify that the cache-latents experiment configs are the source of truth for normalization and other datamodule settings. [1] [2]

These changes collectively prevent silent mismatches between cached latents and AE configs, improving experiment reproducibility and reliability.

@sgreenbury sgreenbury merged commit f255862 into main Apr 20, 2026
3 checks passed
@sgreenbury sgreenbury deleted the fix-cached-latents-configs branch April 20, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant