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
99258181
Commit
99258181
authored
Jan 24, 2024
by
Lianmin Zheng
Browse files
set start method to spawn
parent
3de54a1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/sglang/srt/server.py
python/sglang/srt/server.py
+3
-0
No files found.
python/sglang/srt/server.py
View file @
99258181
...
...
@@ -425,6 +425,9 @@ class Runtime:
random_seed
=
random_seed
,
log_level
=
log_level
,
)
import
torch
torch
.
multiprocessing
.
set_start_method
(
"spawn"
,
force
=
True
)
self
.
url
=
self
.
server_args
.
url
()
self
.
generate_url
=
(
f
"http://
{
self
.
server_args
.
host
}
:
{
self
.
server_args
.
port
}
/generate"
...
...
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