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
630479c3
Unverified
Commit
630479c3
authored
Jul 20, 2024
by
zhyncs
Committed by
GitHub
Jul 19, 2024
Browse files
feat: update check env (#661)
parent
51fda143
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
python/sglang/check_env.py
python/sglang/check_env.py
+7
-0
No files found.
python/sglang/check_env.py
View file @
630479c3
import
importlib
import
os
import
resource
import
subprocess
import
sys
from
collections
import
OrderedDict
,
defaultdict
...
...
@@ -10,6 +11,9 @@ import torch
PACKAGE_LIST
=
[
"sglang"
,
"flashinfer"
,
"requests"
,
"tqdm"
,
"numpy"
,
"aiohttp"
,
"fastapi"
,
"hf_transfer"
,
...
...
@@ -154,6 +158,9 @@ def check_env():
if
gpu_topo
:
env_info
[
"NVIDIA Topology"
]
=
gpu_topo
ulimit_soft
,
_
=
resource
.
getrlimit
(
resource
.
RLIMIT_NOFILE
)
env_info
[
"ulimit soft"
]
=
ulimit_soft
for
k
,
v
in
env_info
.
items
():
print
(
f
"
{
k
}
:
{
v
}
"
)
...
...
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