Skip to content

Commit 5b4a8b6

Browse files
committed
fix merge
Signed-off-by: Bill Nell <bnell@redhat.com>
1 parent ae7a65f commit 5b4a8b6

File tree

1 file changed

+0
-9
lines changed
  • vllm/model_executor/layers/fused_moe

1 file changed

+0
-9
lines changed

vllm/model_executor/layers/fused_moe/utils.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3-
import socket
4-
from contextlib import closing
53
from math import prod
64
from typing import Optional
75

@@ -101,13 +99,6 @@ def _fp8_perm(m: torch.Tensor, idx: torch.Tensor) -> torch.Tensor:
10199
return m[idx, ...]
102100

103101

104-
def find_free_port():
105-
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s:
106-
s.bind(('', 0))
107-
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
108-
return s.getsockname()[1]
109-
110-
111102
# TODO(bnell): better name
112103
def maybe_fix_scales(scales: Optional[torch.Tensor],
113104
num_experts: int) -> Optional[torch.Tensor]:

0 commit comments

Comments
 (0)