Files
Strata/tools/image/gate/data/qi21_sampler_fixture.bin
T
Niko1221 8ee4250e5a image: Turbo sampler in our own code, byte-identical to stable-diffusion.cpp (step 5, part 1)
include/strata/image/qi21_sampler.hpp, src/image/sample/qi21_sampler.cpp: Turbo's fixed
schedule (the --sigmas string serve/images.py passes, parsed as sd-cli's std::stof), the
DiT timestep sigma x 1000, and one Euler step with CFG 1 for the flow model in sd.cpp
2988060's order (c_skip 1, c_out -sigma, c_in 1; den = v c_out + x c_skip;
d = (x - den) / sigma; x += d (sigma_next - sigma)), each line its own pass, contraction off
for the file. CPU, plain float, no ggml. Nothing joined or hooked anywhere.

Test program strata-sampler-check (src/image/sample/qi21_sampler_check_main.cpp): chains all
8 steps from sd.cpp's own dumps (dit_x_0, then sd.cpp's vel_k) and requires dit_x_{k+1},
dit_t_k and, after the last step, the final latent byte-identical.
GB10 aarch64 (dgxspark-20261111-0604-05ed), dumps from sd-cli with its own noise
(dgxspark-20261111-0559-e8d7): 512 and 1024 x seeds 42 and 1234 (prompt 0) and 512 prompt 5:
every step byte-identical, timesteps identical, the final latent identical; built with g++
-O2 and with -O3 -ffp-contract=fast.
CPU test tools/test_qi21_sampler.py with tools/image/gate/data/qi21_sampler_fixture.bin
(512 values per step of steps 0-6, 512 p0 seed 42): 2 passed on p1006 x86 g++ 13.3
(p1006-20261111-0605-f597).
2026-11-11 06:05:39 +01:00

42 KiB