Skip to content

train 1120044304: #1773 (CI only) - #4156

Closed
ashhart wants to merge 4 commits into
mainfrom
lead/train-1120044304
Closed

ashhart wants to merge 4 commits into
mainfrom
lead/train-1120044304

Conversation

@ashhart

@ashhart ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #1773 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 4 commits November 20, 2026 04:30
The octree decoder (4 blocks) and Gaussian decoder (16 blocks) run natively on
Metal from the released checkpoint. Host-side pieces: systematic resampling with
a pluggable RNG (native PRNG, or the SDK's recorded draws), compaction, leaves
and jitter, activations, the PLY writer and the camera JSON. tf-idol-decode
decodes a latent and gates it against an idol_case.py `decode` case.

New kernels live in idol_decoder.metal: the point embedding, K/V and head
packing, an fp32 attention for <= 8 query rows, and a copy of the idol
attention whose P.V uses an fp16 hi/lo split. This removes the -2^-12 per-pass
bias that fp32 P picks up on the tensor unit.

Gates are measured against fp32, allowing twice the worst of: the SDK's own
distance, the fp16 floor, and seeded nudged SDK reruns. Further gates:
per-block teacher-forced checks, counts identical given the SDK's
probabilities and draws, activated fields, the PLY's columns, the camera, and
byte-identical repeats. The comparators are covered by plant-a-mismatch unit
tests.

idol_case.py gains `decode`, which pins decoder.py, gaussian.py and camera.py by
sha256 and records levels, draws, counts, fields, the PLY and timings.
metal_idol_decoder*.zig registers dec_embed, dec_half, dec_kv, dec_heads,
dec_attention_few and dec_attention_{00,01,10,11} as "metal idol decoder
...", against float64 at idol-sdk's fp32 and fp16 points. Fifteen controls
each go red at their gate: an added or dropped rounding point, fp16 sums,
P's lo half dropped (caught on heads built so O is P's fp16 remainder
alone), keys past Lk unmasked, an input written, and the two NaN rules
below undone. Gate-5 records are in idol_records.zig; the common Lib is now
generic over a source and its launchers.

Gate 1 found two real rule breaks, fixed with finite outputs unchanged
(the 262k and 32k decode cases give byte-identical PLYs and gate lines):
dec_heads clamped its norm by max, dropping a NaN; and the tiled attention
gave NaN for an infinite value, because an fp16 lo of 0 or of the opposite
sign met the infinity. The lo half now meets the values clamped to fp16's
finite range (about 2% at 262k, 7% at 1M).

docs/recipes/idol.md gains a Decoders part with the precision, gates,
run-a-case commands, measurements and the contract SUMMARY.
@ashhart ashhart closed this Nov 20, 2026
@ashhart ashhart reopened this Nov 20, 2026
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

CI wait on this tip (no result in 240 min); the PRs land the usual way.

@ashhart ashhart closed this Nov 20, 2026
@ashhart
ashhart deleted the lead/train-1120044304 branch November 20, 2026 08:58
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