Repository navigation
Conversation
…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
… under 600 lines with both encoders
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.
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.