Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
032f8faa
"examples/vscode:/vscode.git/clone" did not exist on "cba5af22eb5ca96975b03556e41f4dac95a3db73"
Unverified
Commit
032f8faa
authored
Mar 31, 2025
by
SEPLOS
Committed by
GitHub
Mar 30, 2025
Browse files
Fix sglang frontend's incorrect dependency on torch (#4931)
parent
37c66ec8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/utils.py
python/sglang/utils.py
+2
-2
No files found.
python/sglang/utils.py
View file @
032f8faa
...
@@ -25,8 +25,6 @@ from IPython.display import HTML, display
...
@@ -25,8 +25,6 @@ from IPython.display import HTML, display
from
pydantic
import
BaseModel
from
pydantic
import
BaseModel
from
tqdm
import
tqdm
from
tqdm
import
tqdm
from
sglang.srt.utils
import
kill_process_tree
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
@@ -422,6 +420,8 @@ def terminate_process(process):
...
@@ -422,6 +420,8 @@ def terminate_process(process):
"""
"""
Terminate the process and automatically release the reserved port.
Terminate the process and automatically release the reserved port.
"""
"""
from
sglang.srt.utils
import
kill_process_tree
kill_process_tree
(
process
.
pid
)
kill_process_tree
(
process
.
pid
)
lock_socket
=
process_socket_map
.
pop
(
process
,
None
)
lock_socket
=
process_socket_map
.
pop
(
process
,
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment