Skip to content

Commit d3ec06b

Browse files
docs: add latent cache guidance
1 parent 66ec92b commit d3ec06b

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ See [human-evaluation guidance](docs/HUMAN_EVALUATION.md) before running a
4444
blinded participant study.
4545
See the [security policy](docs/SECURITY.md) for CI gates and responsible
4646
disclosure guidance.
47+
See [latent-cache guidance](docs/LATENT_CACHE.md) before precomputing VAE data.
4748

4849
## Commands
4950

docs/LATENT_CACHE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Latent cache
2+
3+
Use `gamengen-cache-latents` only on validated NPZ recording shards. The command
4+
loads the revision pinned in the selected configuration and stores one latent per
5+
source frame, along with the original transition arrays and source-shard SHA-256.
6+
7+
```bash
8+
gamengen-cache-latents --config configs/tier2_doom_lite.yaml \
9+
--shard data/recordings/shard_000000.npz \
10+
--output data/latents/shard_000000.npz
11+
```
12+
13+
A cache is invalid when its source-shard checksum differs. Regenerate it after
14+
changing recordings, preprocessing, model revision, or VAE encoding behavior.
15+
The cache format is safe NPZ only; it never loads pickle artifacts.

0 commit comments

Comments
 (0)