Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/sglang/srt/layers/moe/moe_runner/deep_gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,8 @@ def _varlen_deep_gemm_silu_mul_quant(
down_input = torch.empty(
(E, N, D), device=hidden_states_device, dtype=torch.float8_e4m3fn
)
down_input_scale = torch.empty(
alloc = torch.empty if use_packed else torch.zeros
down_input_scale = alloc(
(E, G // 4, N) if use_packed else (E, N, G),
device=hidden_states_device,
dtype=torch.int32 if use_packed else torch.float32,
Expand Down
Loading