Skip to content

train 1130231114: #5499 (CI only) - #5768

Closed
ashhart wants to merge 7 commits into
mainfrom
lead/train-1130231114
Closed

ashhart wants to merge 7 commits into
mainfrom
lead/train-1130231114

Conversation

@ashhart

@ashhart ashhart commented Dec 1, 2026

Copy link
Copy Markdown
Owner

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.

AbrahamCete and others added 7 commits November 30, 2026 23:11
… 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
@ashhart

ashhart commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

Landed: #5499 as main 0fb0db1. This PR only carried their CI.

@ashhart ashhart closed this Dec 1, 2026
@ashhart
ashhart deleted the lead/train-1130231114 branch December 1, 2026 02:27
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