Repository navigation
Conversation
… per call Call.extent is a layer's relative-bias extent: the window on local layers, rel_extent on global ones. It defaults to 1,024, the extent the reference had fixed, so CUDA's attention contracts compile unchanged and keep their want and tol bits. The bias table rows are the call's extent long, and global keys past it gather by ring slot with no bias. A test checks a global row at extent 256 and a sliding row at window and extent 128 (tiny-inkling2-mini's two layers): each on its own table equals extent 1,024 on that table padded with zeros, to float64 rounding (gate 4's replay bit for bit), and the bias past 256 moves the row.
… and 128 beside Mini's 1,024 tf_ink2_rel_table is one macro body built at three extents: Mini's 1,024 (the same symbol and code) and tiny-inkling2-mini's 256 (global layers) and 128 (local) as tf_ink2_rel_table_e256 and tf_ink2_rel_table_e128. Each reads rel_logits_proj as [16][extent] and writes a row of 1,024 distances, zeros past its extent, so the attention kernels read one table layout at every extent and keep their code; tile.hpp's kExtent is kTabRow, the row length. relTable takes the layer's extent and launches its kernel, refusing any other before a launch (UnsupportedRelExtent). layerExtent reads a layer's extent from the parsed config (the window on local layers, rel_extent on global ones) and refuses one with no kernel by name, with config.Why naming the layer, its extent and the three built. The contract registers both new tables at tiny-mini's 4 heads, each with a control reading rel_logits_proj a column late, and their gate-5 records come from the code objects. Mini's registrations and records are unchanged.
…ds, window and extents The HIP attention contract's fills, prep and rows take a checkpoint's geometry (fill.Model: query and key heads, window, rel_extent, n_floor). Mini's registrations keep their names, shapes and inputs. Beside them, tiny-inkling2-mini's run at 4/2 heads: prep (sliding, global and three streams), sliding rows at window 128 with edges at 127 to 129 keys and across a 256-key chunk, global fold, split and prompt rows past extent 256 with edges at 255 to 257 keys and across 1,024-key sub-chunks and 16,384-key chunks, three streams in one launch against each alone, the split and prompt against the fold, and the exact-P rows. The reference reads each call's table at its extent; the device gets it padded to 1,024 distances. Gate 4's values cancel over a sliding layer's window, so a 128-key window is its own period; there the second 32 of every 64 keys are 32 times larger, so 32-lane fp16 sums lose bits too, and a host test pins fp32 exact with fp16 and bf16 missing. Two more controls go red: global rows given bias past extent 256, and a window one key past 128.
…loat64, CUDA's default bits pinned, HIP extent refusals
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: #5499 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.