Skip to content

train 1201221857: #5368 (CI only) - #5918

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

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

Conversation

@ashhart

@ashhart ashhart commented Dec 1, 2026

Copy link
Copy Markdown
Owner

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

Bizuayeu and others added 2 commits December 1, 2026 22:19
… + bias, under the kernel contract

tf_ernie55_route, in a new ernie5_5_moe image, routes a row as vLLM-ERNIE's ernie5_5_routing does: each of the 512
experts scored from its two routers' fp32 logits as sigmoid(l0) + sigmoid(l1), the top 10 of score + bias by core's
row select (tf_topk::select_row: ties to the lower id, the picks in ascending ids, as the vendor's slots but for
ties at the k-th value, which it puts last), and each pick's weight its score over the picks' sum, at least 1e-20,
times the expert's learned scale. It writes the
int32 picks and fp32 weights core's combine takes. moe_glue's sigmoid routes sum the logits before one sigmoid and
scale by one factor, so ERNIE's router is a family kernel (#4926).

The picks and weights are checked against float64 (ernie5_5/route.zig, whose host test holds it to the vendor's
torch routing): the same ranks with only near-ties swapped and exact ties to the lower id, and the weights within
2^-20. Two controls: one sigmoid of the two logits summed, and weights from score + bias.
@ashhart ashhart closed this Dec 1, 2026
@ashhart ashhart reopened this Dec 1, 2026
@ashhart

ashhart commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Landed: #5368 as main 37ee1c5. This PR only carried their CI.

@ashhart ashhart closed this Dec 2, 2026
@ashhart
ashhart deleted the lead/train-1201221857 branch December 2, 2026 07:58
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