Skip to content

train 1125075659: #4914 (CI only) - #5006

Closed
ashhart wants to merge 2 commits into
mainfrom
lead/train-1125075659
Closed

ashhart wants to merge 2 commits into
mainfrom
lead/train-1125075659

Conversation

@ashhart

@ashhart ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #4914 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.

Shoestring-dev and others added 2 commits November 25, 2026 07:57
… contract

A new HIP group, deepseek_v41/topk512.hip: tf_dsv41_topk512, the arithmetic of Metal's topk512.metal on a 1,024-thread
block a row: an 11/11/10-bit radix select of order-preserving keys over 2,048 LDS bins, then a stable pass that writes
the kept indices ascending (wave32 shuffles where Metal has simdgroup scans). NaN ranks as -inf, -0 as +0, ties go to
the lower index, and row r keeps min(512, visible[r]) indices, then -1. Nothing launches it outside its tests yet.

Kernel tests: each row against a stable sort at widths 1 to 131,072 over spread values, heavy ties, masked -inf rows and
NaN, +-0 and +-inf, with visible counts whole, none, half and one, 512, 513, negative and past the width; a row's output
the same alone as among other rows, and the scores left as they were.
Contract: Metal's served shapes, rows and rule, each row against the CPU's stable sort; its four controls (NaN above
+inf red at nonfinite, ties to the higher index and the last score dropped red at shapes, a write into its input red at
repeat); gate-5 records from ROCm 10.1's hipcc.
@ashhart

ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Landed: #4914 as main 4beda42. This PR only carried their CI.

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