[vLLM IR] rework gemma_rms_norm (#39014)
Signed-off-by: zjy0516 <riverclouds.zhu@qq.com> Signed-off-by: Jiangyun Zhu <riverclouds.zhu@qq.com> Co-authored-by: Luka Govedič <ProExpertProg@users.noreply.github.com>
This commit is contained in:
co-authored by
Luka Govedič
parent
da4c0e4db9
commit
8060bb0333
@@ -18,7 +18,9 @@ def is_xpu_kernels_found() -> bool:
|
||||
XPU_KERNELS_SUPPORTED = is_xpu_kernels_found()
|
||||
"""Kernels in this file are supported if vLLM XPU kernels are installed."""
|
||||
|
||||
rms_no_var = lambda x, weight, epsilon, variance_size=None: variance_size is None
|
||||
rms_no_var = lambda x, weight, epsilon, variance_size=None: variance_size is None and (
|
||||
weight is None or weight.dtype == x.dtype
|
||||
)
|
||||
|
||||
|
||||
@ir.ops.rms_norm.register_impl(
|
||||
|
||||
Reference in New Issue
Block a user