Skip to content

Commit d67fdef

Browse files
Alcanderianchenxijun1029
authored andcommitted
[fix] fix dsv3_router_gemm filter (sgl-project#7750)
1 parent 78697d2 commit d67fdef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)