Skip to content

tracking: semantic rebase of ashhart/TensorFold#3431 - #17

Closed
joshuaswarren wants to merge 5 commits into
tf-vulkan-ctx8192from
vulkan-sdpa-tile
Closed

joshuaswarren wants to merge 5 commits into
tf-vulkan-ctx8192from
vulkan-sdpa-tile

Conversation

@joshuaswarren

Copy link
Copy Markdown
Owner

Tracking PR for the semantic rebase of upstream PR ashhart#3431 (vulkan-sdpa-tile) onto current upstream main, stacked on the rebased ashhart#3417 head. The review vehicle is the upstream PR; this exists to keep fork-side coordination bookkeeping honest for pushes to the head branch.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
…tiled prefill

Three tiled cases (rows 2, 17, 64) plant NaN, +inf and -inf over keys
past row 0's bound but inside the loaded chunk, and past the served
keys into spare capacity. The rows 2 case is the review's repro: zero
Q/K, V0 = 1, V1 = NaN, so row 0 must come out exactly 1.0. Each case
runs the tiled path and the replaced per-row decode kernel and requires
byte-identical complete outputs, finite outputs for the rows whose
windows hold only finite values, and non-finite outputs where the
plants are genuinely visible, on the bf16 and f32 paths.

On the pre-fix shader all three cases fail at element 0 on a 16-inch
M1 Max; with the causal-bound guard all six case runs pass and the
whole gate reads passed=21 total=21.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
CI fmt job flagged contract_attention_main.zig. Whitespace only.
The attention contract main passed the lean 600-line cap once the f32q
gate and the tiled-prefill gate shared one file. The tile gate and the
upload/fetch/Elapsed helpers it uses move to a dedicated test module;
the bf16 and f32q gates stay in the runner.
@joshuaswarren

Copy link
Copy Markdown
Owner Author

Closing per standing rule — tracking PRs on the fork are not kept open; the review vehicle is ashhart#3431.

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.

1 participant