[BUGFIX ] fix undefined silu_and_mul_nvfp4_quant (#23929)

Signed-off-by: hongchao <hongchao@msh.team>
Signed-off-by: Richard Zou <zou3519@gmail.com>
Co-authored-by: hongchao <hongchao@msh.team>
Co-authored-by: Richard Zou <zou3519@gmail.com>
Co-authored-by: Richard Zou <zou3519@users.noreply.github.com>
This commit is contained in:
yzds
2025-08-29 09:36:39 -07:00
committed by GitHub
co-authored by hongchao Richard Zou Richard Zou
parent 72a69132dc
commit 0dc9532065
3 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -97,7 +97,9 @@ class FixFunctionalizationPass(VllmInductorPass):
node,
mutated_args,
args=('result', 'input', 'scale'))
elif at_target == torch.ops._C.silu_and_mul_nvfp4_quant.default:
elif hasattr(
torch.ops._C, "silu_and_mul_nvfp4_quant"
) and at_target == torch.ops._C.silu_and_mul_nvfp4_quant.default:
mutated_args = {1: 'result', 2: 'result_block_scale'}
self.defunctionalize(graph,
node,