Repository navigation
Conversation
… pending) Port Idol's decoders from Metal to CUDA under the same precision contract, sharing the host steps (decode.zig now takes either decoder) and the case driver (tf-idol-decode: idol_decode_run.zig, thin Metal and CUDA mains; the Metal tool's gate lines, JSON and PLY are unchanged on both Mac cases). - idol_decoder.cu: dec_embed, dec_half, dec_kv, dec_heads (MultiHeadRMSNorm in place, NaN norm kept), the tiled cross attention (full<64, 8>'s row arithmetic from query rows to the latent's keys, P rounded to nearest fp16 as torch's CUDA kernels do) and the fp32 short form for <= 8 query rows; each a template whose BREAK 0 ships - self attention reuses idol.cu's tf_idol_attention; blocks reuse its cuBLASLt fp16 linears, norms and gated adds; stem and head in true fp32 - admission: sm_120/sm_121 only, others refused by name - contract: idol-decoder-contract (gates 1-4 over the six kernels and tf_idol_attention at anchor shapes, 13 controls as other BREAK values), joined to the family sets; image in contract_limits - host tests: launch geometry, scratch sizing, contract range references Not yet compiled with nvcc (the Linux box was unreachable): gate-5 records and the sm_120/121 fatbin build are pending. Never run on a GPU.
… call was left one argument short
Owner
Author
|
Stopped at #1858. |
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: #1858 #4303 #4305 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.