mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-20 06:14:28 +08:00
parent
bf3e05215c
commit
21f5d50fa5
@ -15,7 +15,6 @@ import ipaddress
|
||||
import multiprocessing
|
||||
import os
|
||||
import re
|
||||
import resource
|
||||
import signal
|
||||
import socket
|
||||
import subprocess
|
||||
@ -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
|
||||
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
|
||||
current_soft, current_hard = resource.getrlimit(resource_type)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user