Skip to content

Commit ac49dac

Browse files
authored
[fix] fix dsv3_router_gemm filter (#7750)
1 parent 1e0e549 commit ac49dac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/sglang/srt/models/deepseek_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def forward(self, hidden_states):
233233
)
234234

235235
if (
236-
hidden_states.shape[0] < 4
236+
_is_cuda
237+
and hidden_states.shape[0] < 4
237238
and hidden_states.shape[1] == 7168
238239
and self.weight.shape[0] == 256
239240
and _device_sm >= 90

0 commit comments

Comments
 (0)