vllm.model_executor.layers.fused_moe.eplb_triton
¶
EPLB replica mapping and expert-load recording shared by Triton kernels.
Functions:
-
eplb_map_and_record–Map logical expert ids to physical replicas and record expert load.
eplb_map_and_record(logical_ids, token_idx, mask, logical_to_physical, replica_count, num_logical, map_stride, expert_load, num_physical, record_enabled, num_unpadded_tokens)
¶
Map logical expert ids to physical replicas and record expert load.
token_idx broadcasts against logical_ids; masked-off or
out-of-range ids map to -1.