mlp_ws_bytes

Function mlp_ws_bytes 

Source
pub fn mlp_ws_bytes(cfg: &Glm5NextMlpConfig, max_rows: usize) -> [usize; 14]
Expand description

2026-09-25: Byte size of each Glm5NextMlpWorkspace buffer, in the order new allocates them: a_gate, a_up, a_act, logits, ids, wts, expert_out, shared_out, u_eid, u_slot, sorted_token_ids, sorted_expert_ids, expert_offsets, token_to_perm. The loader logs their sum. new computes the same sizes on its own, so the two must change together.