Skip to content

Commit 3b40e74

Browse files
committed
fix some bugs
1 parent f217ecd commit 3b40e74

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python/sglang/srt/managers/expert_distribution.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,9 @@ def _convert_global_physical_count_to_logical_count(
690690
)
691691
logical_count.scatter_add_(
692692
dim=2,
693-
index=physical_to_logical_map.unsqueeze(0).expand(dim_extra, -1, -1).to(torch.int64),
693+
index=physical_to_logical_map.unsqueeze(0)
694+
.expand(dim_extra, -1, -1)
695+
.to(torch.int64),
694696
src=global_physical_count,
695697
)
696698
return logical_count

0 commit comments

Comments
 (0)