x
This commit is contained in:
@@ -125,4 +125,10 @@ def resolve_model_profile(
|
||||
env_vars = {str(k): str(v) for k, v in dict(profile.get("env", {})).items()}
|
||||
env_vars["HF_HUB_OFFLINE"] = "1"
|
||||
env_vars["TRANSFORMERS_OFFLINE"] = "1"
|
||||
# 添加 vLLM RPC 超时环境变量,防止共享内存通信超时
|
||||
if "VLLM_RPC_TIMEOUT" not in env_vars:
|
||||
env_vars["VLLM_RPC_TIMEOUT"] = "300"
|
||||
# 添加 vLLM 工作进程超时环境变量
|
||||
if "VLLM_WORKER_MULTIPROC_METHOD" not in env_vars:
|
||||
env_vars["VLLM_WORKER_MULTIPROC_METHOD"] = "spawn"
|
||||
return model_key, updates, env_vars
|
||||
|
||||
Reference in New Issue
Block a user