mstar.engine.resources.rms_norm.rms_norm#
Backend-neutral RMSNorm custom operator.
The operator keeps fused accelerator implementations behind one stable
mstar::rms_norm graph boundary. CUDA currently dispatches to FlashInfer,
XPU dispatches to vllm-xpu-kernels, and other devices use the portable
PyTorch implementation. mstar::fused_add_rms_norm does the same for the
in-place residual add + RMSNorm: FlashInfer’s fused kernel on CUDA in half
precision, the unfused add and norm elsewhere.
Functions
|
Gemma's RMSNorm, |
|
Apply the backend-neutral |