Skip to content

train 1124020606: #4632 #1780 (CI only) - #4822

Closed
ashhart wants to merge 9 commits into
mainfrom
lead/train-1124020606
Closed

ashhart wants to merge 9 commits into
mainfrom
lead/train-1124020606

Conversation

@ashhart

@ashhart ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #4632 #1780 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

jayleaton and others added 9 commits November 24, 2026 02:06
…row_best's bits

fn_row_best runs one 1024-thread block per row, so a one-row draft step
fills one SM. fn_row_best_max and fn_row_best_sum do the same two passes
over (row, warp) blocks of 32 threads: each thread reads the same strided
values and each warp does the same shuffles, so the best, its first id
and the log-sum-exp keep their bits. The row's last block (an atomic
ticket) folds the 32 warp sums as warp 0 did.

Head.best takes the split for rows up to round_rows. The kernel contract
registers it as a replacement of fn_row_best (byte equality on every
served shape), with a planted control (the split over V - 1 values) that
goes red at shapes. The gradient-serving pins take the two sources.
The split row best keeps a persistent device buffer of split_bytes
(24,832 bytes at round_rows = 64) for each warp's best and id, each
warp's exponent sum and a counter a row. headBytes adds it, so the
placement estimate covers it, and the exact-accounting test pins it.
…oders, the denoiser and the decoders to a PLY

Each stage is timed and each model freed after it. The starting noise is torch's CPU-seeded randn, reimplemented;
the VAE's posterior noise and the starting noise can be given for parity with the SDK's MPS draws. The recipe's
End to end section has the stage timings, memory and PLY comparison against the SDK's own IdolPipeline run.
…as AIFlowML found

picture() checked only the element count, so `pixels` as float32
[1024, 1024, 3] (HWC) passed and was then read as CHW: a scrambled image
reached both encoders. families/idol/picture.zig now requires `pixels`
to be exactly float32 [3, 1024, 1024] and `image` exactly
[1024, 1024, 3], and its host test plants the HWC `pixels`, a flat
tensor, a bf16 one and a CHW `image`, each refused.
… idol.md under 600 lines; the picture's layouts
tf-idol-generate's torch CPU generator moves to idol/torch_rng.zig, so its
test runs without Metal. It checks the [8192, 16] then [5] draw for seed 42
against torch 2.5.1+cpu's values, produced with ATEN_CPU_CAPABILITY=default
(the scalar normal_fill_16 the Mac runs): the camera's 5 values bit for bit,
the latent's ends within 3 ulps and its sum, since torch's float logf, cosf
and sinf are the platform's libm.
@ashhart

ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Landed: #4632 #1780 as main 1092163. This PR only carried their CI.

@ashhart ashhart closed this Nov 24, 2026
@ashhart
ashhart deleted the lead/train-1124020606 branch November 24, 2026 04:31
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.

2 participants