Commit Graph
1 Commits
Author SHA1 Message Date
Niko1221 bbf2a5476c Image generation: the VAE decoder's small-card path, the same bytes as the one-pass decode in less memory (owner decision 11-10, option A); off unless asked for
wan_vae_set_streaming(on): block 3's upsample, block 4 and the head run in bands of 128 picture rows, each computed
with 7 rows more above and below (block 4's six 3x3 convolutions and conv_out need one each) from the complete
block-3 tensors.  Every kept pixel goes through the same operations on the same operands, GEMM bands included, so
the picture is the one-pass picture byte for byte.  The kernels take row windows (zero padding only at the picture's
own edges).  Blocks 2 and 3 keep their input for the DupUp shortcut without a copy (their first resnet writes a new
tensor anyway); this does not change any value.  The rule that turns the path on is not in this commit.
strata-vae-decode --stream on, vae_decode_set.py --stream on; diff_where.py says where two picture sets differ
(largest difference with its pixel and channel, share of pixels above 8/255, PSNR of the pictures as the server
sends them, flattened on white by serve/images.py flatten_png).

Spark (GB10), the 16 fixed latents: row bands against one pass, the float32 outputs byte-identical 16 of 16
(4 x 512, 8 x 1024, 4 x 1536x1024); one pass with these sources against the previous commit's pictures
byte-identical 16 of 16.  Decoder peak device memory one pass / row bands: 1626 / 1388 MiB at 512, 4293 / 2565 MiB
at 1024, 6003 / 3411 MiB at 1536x1024; decode time 455-457 / 457-466 ms, 1015-1039 / 1036-1068 ms,
1404-1444 / 1460-1466 ms.
2026-11-10 17:52:57 +01:00