vllm.models.muse_spark.amd.ops.router_bf16x3
¶
FP32-exact router GEMM on bf16 matrix cores.
Three bf16 planes sum exactly to the fp32 weight; split-K sums in fixed order.
Functions:
-
router_bf16x3_gemm–x @ (planes[0] + planes[1] + planes[2]).Tin fp32. -
split_fp32_to_bf16x3–[3, N, K]bf16 planes whose sum isweight(fp32) exactly.
router_bf16x3_gemm(x, planes)
¶
x @ (planes[0] + planes[1] + planes[2]).T in fp32.
Source code in vllm/models/muse_spark/amd/ops/router_bf16x3.py
split_fp32_to_bf16x3(weight)
¶
[3, N, K] bf16 planes whose sum is weight (fp32) exactly.