mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
src/image/pipeline/qi21_glue.cpp (include/strata/image/qi21_image.hpp): the starting latent from the noise (DiscreteFlowDenoiser::noise_scaling on a zero latent), the condition from the text encoder's rows (apply_token_weights, then the system rows dropped) and the decoder output to 0..1 (scale_tensor_to_0_1), each in sd.cpp 2988060's float order with contraction off; and the PNG parameters text. Used only by the strata-image test program; nothing shipped calls it. Tests: tools/test_qi21_glue.py (numpy float32 expectations, -O2 and -O3 -ffp-contract=fast; p1006 2 passed); strata-glue-check on sd.cpp's own dumps on the GB10: the starting latent from sd.cpp's noise.bin is byte-identical to its first DiT input at 512 and 1024, seeds 42 and 1234 (dgxspark-20261111-0744-db66).