Skip to content

train 1124180810: #4447 #4744 (CI only) - #4933

Closed
ashhart wants to merge 6 commits into
mainfrom
lead/train-1124180810
Closed

ashhart wants to merge 6 commits into
mainfrom
lead/train-1124180810

Conversation

@ashhart

@ashhart ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner

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

sethforprivacy and others added 6 commits November 24, 2026 18:08
…s in a bounded heap, not a full sort

- gpu_rule.sample and gpu_full.plan sorted every scaled logit of the row to read at most 1,024 of them; on a
  201,058-token vocabulary the sort is 15 ms of a draw that takes 0.11 ms without it.
- rule.topCands keeps the first n entries of better's total (key, id) order in a heap with an early reject and sorts
  those n, so the prefix, the row maximum and every draw are the full sort's bit for bit; the row-order normalizer
  is summed only when top_k is off, and a top_k above 1,024 still sorts the row for its kth candidate.
- gpu_top_test.zig compares the prefix, the maximum, the normalizer, the plan and the draws with a full-sort reference
  on 12 kinds of row (ties, signed zeros, NaN, infinities, extremes, ramps), 4 temperatures and 9 top_k, top_p and
  min_p rules.
@ashhart ashhart closed this Nov 24, 2026
@ashhart ashhart reopened this Nov 24, 2026
@ashhart

ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Landed: #4447 #4744 as main b1bb795. This PR only carried their CI.

@ashhart ashhart closed this Nov 24, 2026
@ashhart
ashhart deleted the lead/train-1124180810 branch November 24, 2026 19:23
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.

3 participants