Expand description
2026-09-25: Bind one GLM-5.3 MLP site for a rank: TP-slice the dense FFN or shared expert, and build the routed experts’ pointer tables over GLOBAL expert ids.
Owner: model-arch (GLM-5.3). Invariants:
- TP:
gate_proj/up_proj([inter, hidden]) are split by row anddown_proj([hidden, inter]) by column, so the dense output is a partial sum. - EP: an expert is owned whole by one rank. In each pointer table, an id another rank owns
keeps a null
packedpointer. - The router weight and bias are loaded unsliced on every rank.
Functions§
- build_
dense_ mlp - 2026-09-25: TP-slice and upload one BF16 SwiGLU MLP, a dense layer or a routed layer’s
shared expert.
full_interis the unsliced width; the rank keepsfull_inter / tp. Errors whenfull_interdoes not divide over TP or a tensor has the wrong element count. - build_
moe - 2026-09-25: Bind one routed MoE site for this rank: the router and bias unsliced, the shared
expert TP-sliced, and the
local_expertsrouted experts this EP rank owns.