From 5cbf949839b1fc73802d20670943ccbeb805d3f2 Mon Sep 17 00:00:00 2001 From: Mohammad Miadh Angkad <176301910+mmangkad@users.noreply.github.com> Date: Fri, 9 Oct 2026 23:51:30 +0800 Subject: [PATCH] Fix torch.compile crash in fused gate-sigmoid-mul launcher (#43384) Co-authored-by: Mohammad Angkad --- python/sglang/kernels/ops/elementwise/elementwise.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sglang/kernels/ops/elementwise/elementwise.py b/python/sglang/kernels/ops/elementwise/elementwise.py index b02751674e..8d096f53df 100644 --- a/python/sglang/kernels/ops/elementwise/elementwise.py +++ b/python/sglang/kernels/ops/elementwise/elementwise.py @@ -570,6 +570,7 @@ def _launch_fused_gate_sigmoid_mul( hidden_dim=hidden_dim, DO_ADD=do_add, USE_PDL=use_pdl, + GATE_ONLY=False, **config, **pdl_kwargs, )