Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
21f5d50f
Unverified
Commit
21f5d50f
authored
Feb 11, 2025
by
MoonRide303
Committed by
GitHub
Feb 11, 2025
Browse files
[Bugfix] Do not use resource module on Windows (#12858) (#13029)
parent
bf3e0521
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/utils.py
vllm/utils.py
+5
-1
No files found.
vllm/utils.py
View file @
21f5d50f
...
@@ -15,7 +15,6 @@ import ipaddress
...
@@ -15,7 +15,6 @@ import ipaddress
import
multiprocessing
import
multiprocessing
import
os
import
os
import
re
import
re
import
resource
import
signal
import
signal
import
socket
import
socket
import
subprocess
import
subprocess
...
@@ -2070,6 +2069,11 @@ def memory_profiling(
...
@@ -2070,6 +2069,11 @@ def memory_profiling(
# Adapted from: https://github.com/sgl-project/sglang/blob/v0.4.1/python/sglang/srt/utils.py#L630 # noqa: E501
# Adapted from: https://github.com/sgl-project/sglang/blob/v0.4.1/python/sglang/srt/utils.py#L630 # noqa: E501
def
set_ulimit
(
target_soft_limit
=
65535
):
def
set_ulimit
(
target_soft_limit
=
65535
):
if
sys
.
platform
.
startswith
(
'win'
):
logger
.
info
(
"Windows detected, skipping ulimit adjustment."
)
return
import
resource
resource_type
=
resource
.
RLIMIT_NOFILE
resource_type
=
resource
.
RLIMIT_NOFILE
current_soft
,
current_hard
=
resource
.
getrlimit
(
resource_type
)
current_soft
,
current_hard
=
resource
.
getrlimit
(
resource_type
)
...
...
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