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
60b771c8
Unverified
Commit
60b771c8
authored
Feb 25, 2025
by
Wang Ran (汪然)
Committed by
GitHub
Feb 24, 2025
Browse files
Improve: fix typos (#3801)
Co-authored-by:
Chayenne
<
zhaochen20@outlook.com
>
parent
d7934cde
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
python/sglang/srt/entrypoints/engine.py
python/sglang/srt/entrypoints/engine.py
+1
-1
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+1
-1
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+3
-3
No files found.
python/sglang/srt/entrypoints/engine.py
View file @
60b771c8
...
...
@@ -98,7 +98,7 @@ class Engine:
kwargs
[
"log_level"
]
=
"error"
server_args
=
ServerArgs
(
**
kwargs
)
# Shutdown the subprocesses automatically when the program exi
s
ts
# Shutdown the subprocesses automatically when the program exits
atexit
.
register
(
self
.
shutdown
)
# Launch subprocesses
...
...
python/sglang/srt/managers/scheduler.py
View file @
60b771c8
...
...
@@ -1832,7 +1832,7 @@ def run_scheduler_process(
if
dp_rank
is
None
and
"SGLANG_DP_RANK"
in
os
.
environ
:
dp_rank
=
int
(
os
.
environ
[
"SGLANG_DP_RANK"
])
# Configue the logger
# Configu
r
e the logger
if
dp_rank
is
None
:
configure_logger
(
server_args
,
prefix
=
f
" TP
{
tp_rank
}
"
)
else
:
...
...
python/sglang/srt/utils.py
View file @
60b771c8
...
...
@@ -1154,9 +1154,9 @@ def set_gpu_proc_affinity(
if
psutil
.
cpu_count
()
!=
psutil
.
cpu_count
(
logical
=
False
):
# HT on
upp
er_cpu_ids
=
[
id
for
id
in
range
(
start_cpu_id
,
end_cpu_id
)]
low
er_cpu_ids
=
[
id
+
total_pcores
for
id
in
range
(
start_cpu_id
,
end_cpu_id
)]
bind_cpu_ids
=
list
(
itertools
.
chain
(
upp
er_cpu_ids
,
low
er_cpu_ids
))
low
er_cpu_ids
=
[
id
for
id
in
range
(
start_cpu_id
,
end_cpu_id
)]
upp
er_cpu_ids
=
[
id
+
total_pcores
for
id
in
range
(
start_cpu_id
,
end_cpu_id
)]
bind_cpu_ids
=
list
(
itertools
.
chain
(
low
er_cpu_ids
,
upp
er_cpu_ids
))
else
:
# HT off
bind_cpu_ids
=
[
id
for
id
in
range
(
start_cpu_id
,
end_cpu_id
)]
...
...
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