Skip to content

Cache latents#304

Merged
sgreenbury merged 20 commits intomainfrom
cache-latents
Mar 30, 2026
Merged

Cache latents#304
sgreenbury merged 20 commits intomainfrom
cache-latents

Conversation

@sgreenbury
Copy link
Copy Markdown
Contributor

@sgreenbury sgreenbury commented Mar 27, 2026

This PR adds support for:

  • Caching latents
  • Running processor on cached latents
  • Running eval with resultant procesor + autoencoder

@sgreenbury sgreenbury force-pushed the cache-latents branch 2 times, most recently from 0054e05 to 316aec2 Compare March 28, 2026 18:22
- Add rollout_test_dataloader to EncodedDataModule so eval rollout path
  works with cached-latent datamodules
- Save autoencoder_config.yaml to the cache output dir so the decoder
  can be reconstructed at eval time without a separate flag
- Add processor.ckpt to infer_eval_checkpoint candidates so autocast eval
  finds the checkpoint automatically from a processor workdir
- Refactor run_evaluation to support three eval modes:
    Mode 1 (ambient space): reconstruct full EPD from autoencoder
      checkpoint + processor checkpoint when eval is run from the ae
      workdir with eval.checkpoint pointing at processor.ckpt
    Mode 2 (data space via decoder): load decoder from
      autoencoder_config.yaml in the cache dir; decode latent predictions
      and ground truth before computing metrics and rendering videos
    Fallback: latent-space evaluation when no decoder is available
- Widen type annotations in _render_rollouts, _parameter_count_rows,
  _evaluation_metadata_rows, and _collect_benchmark_rows to accept
  ProcessorModel / ProcessorModelEnsemble
@sgreenbury sgreenbury marked this pull request as ready for review March 30, 2026 18:47
@sgreenbury sgreenbury changed the title Cache latents (WIP) Cache latents Mar 30, 2026
@sgreenbury sgreenbury merged commit bf7fb10 into main Mar 30, 2026
4 checks passed
@sgreenbury sgreenbury deleted the cache-latents branch March 30, 2026 21:10
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