We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13e0d27 commit b1320b2Copy full SHA for b1320b2
vllm/utils.py
@@ -15,7 +15,6 @@
15
import multiprocessing
16
import os
17
import re
18
-import resource
19
import signal
20
import socket
21
import subprocess
@@ -2070,6 +2069,11 @@ def memory_profiling(
2070
2069
2071
# Adapted from: https://github.com/sgl-project/sglang/blob/v0.4.1/python/sglang/srt/utils.py#L630 # noqa: E501
2072
def set_ulimit(target_soft_limit=65535):
+ if sys.platform.startswith('win'):
2073
+ logger.info("Windows detected, skipping ulimit adjustment.")
2074
+ return
2075
+
2076
+ import resource
2077
resource_type = resource.RLIMIT_NOFILE
2078
current_soft, current_hard = resource.getrlimit(resource_type)
2079
0 commit comments