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
565d7274
Commit
565d7274
authored
May 27, 2024
by
Lianmin Zheng
Browse files
improve logging & fix vllm version
parent
09de730d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
python/pyproject.toml
python/pyproject.toml
+1
-1
python/sglang/srt/managers/router/model_runner.py
python/sglang/srt/managers/router/model_runner.py
+1
-0
No files found.
python/pyproject.toml
View file @
565d7274
...
@@ -20,7 +20,7 @@ dependencies = [
...
@@ -20,7 +20,7 @@ dependencies = [
[project.optional-dependencies]
[project.optional-dependencies]
srt
=
[
"aiohttp"
,
"fastapi"
,
"psutil"
,
"rpyc"
,
"torch"
,
"uvloop"
,
"uvicorn"
,
srt
=
[
"aiohttp"
,
"fastapi"
,
"psutil"
,
"rpyc"
,
"torch"
,
"uvloop"
,
"uvicorn"
,
"zmq"
,
"vllm
>
=0.4.2"
,
"interegular"
,
"pydantic"
,
"pillow"
,
"packaging"
,
"huggingface_hub"
,
"hf_transfer"
,
"outlines>=0.0.34"
]
"zmq"
,
"vllm
=
=0.4.2"
,
"interegular"
,
"pydantic"
,
"pillow"
,
"packaging"
,
"huggingface_hub"
,
"hf_transfer"
,
"outlines>=0.0.34"
]
openai
=
[
"openai>=1.0"
,
"numpy"
,
"tiktoken"
]
openai
=
[
"openai>=1.0"
,
"numpy"
,
"tiktoken"
]
anthropic
=
[
"anthropic>=0.20.0"
,
"numpy"
]
anthropic
=
[
"anthropic>=0.20.0"
,
"numpy"
]
all
=
["sglang[srt]
", "
sglang
[openai]
", "
sglang
[anthropic]"]
all
=
["sglang[srt]
", "
sglang
[openai]
", "
sglang
[anthropic]"]
...
...
python/sglang/srt/managers/router/model_runner.py
View file @
565d7274
...
@@ -235,6 +235,7 @@ class ModelRunner:
...
@@ -235,6 +235,7 @@ class ModelRunner:
}
}
# Init torch distributed
# Init torch distributed
logger
.
info
(
f
"[rank=
{
self
.
tp_rank
}
] Set cuda device."
)
torch
.
cuda
.
set_device
(
self
.
tp_rank
)
torch
.
cuda
.
set_device
(
self
.
tp_rank
)
logger
.
info
(
f
"[rank=
{
self
.
tp_rank
}
] Init torch begin. Avail mem=
{
get_available_gpu_memory
(
self
.
tp_rank
):.
2
f
}
GB"
)
logger
.
info
(
f
"[rank=
{
self
.
tp_rank
}
] Init torch begin. Avail mem=
{
get_available_gpu_memory
(
self
.
tp_rank
):.
2
f
}
GB"
)
torch
.
distributed
.
init_process_group
(
torch
.
distributed
.
init_process_group
(
...
...
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