vllm.models.muse_spark.amd.ops.fused_norm_expand
¶
Pre-expert RMSNorm written once per route, in the [T * top_k, H] layout
the ROCm MXFP4 (AITER top-1 per route) experts take.
Functions:
-
fused_rmsnorm_expand–RMSNorm of
xwrittenrepeatstimes per row. -
take_expanded–The
[T * repeats, D]buffer behind a :func:fused_rmsnorm_expand
fused_rmsnorm_expand(x, weight, eps, gain_center, input_scale, repeats)
¶
RMSNorm of x written repeats times per row.
Source code in vllm/models/muse_spark/amd/ops/fused_norm_expand.py
take_expanded(hidden_states, repeats)
¶
The [T * repeats, D] buffer behind a :func:fused_rmsnorm_expand
result, or None if hidden_states is not one.