Skip to content

Commit 55ba170

Browse files
seplosjimoosciuc
authored andcommitted
Fix sglang frontend's incorrect dependency on torch (sgl-project#4931)
1 parent 8ef5d7f commit 55ba170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/sglang/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
from pydantic import BaseModel
2626
from tqdm import tqdm
2727

28-
from sglang.srt.utils import kill_process_tree
29-
3028
logger = logging.getLogger(__name__)
3129

3230

@@ -422,6 +420,8 @@ def terminate_process(process):
422420
"""
423421
Terminate the process and automatically release the reserved port.
424422
"""
423+
from sglang.srt.utils import kill_process_tree
424+
425425
kill_process_tree(process.pid)
426426

427427
lock_socket = process_socket_map.pop(process, None)

0 commit comments

Comments
 (0)