Skip to content

Commit 2332582

Browse files
committed
Translate error message into English
1 parent c95152c commit 2332582

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

dataflow/serving/local_model_llm_serving.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,20 @@ def start_serving(self):
9292
try:
9393
from vllm import LLM, SamplingParams
9494
except ValueError as ve:
95-
# valueerror 一般是 transformers 版本不匹配导致的
95+
# A ValueError typically indicates a transformers version mismatch
9696
raise ImportError(
97-
"Import vllm failed due to a ValueError: "
98-
"this is often caused by a transformers 版本冲突,"
99-
"请检查并升级/降级 transformers 至 vllm 要求的版本。"
97+
"Failed to import vllm due to a ValueError: this is often caused by a transformers version conflict. "
98+
"Please check your transformers package and upgrade or downgrade it to the version required by vllm."
10099
) from ve
101100
except ImportError as ie:
102-
# vllm 根本没装
101+
# vllm is not installed
103102
raise ImportError(
104-
"请先安装 vllm\n"
103+
"vllm is not installed. Please install it by running:\n"
105104
" pip install open-dataflow[vllm]\n"
106-
"如果已经安装,请确认 install 环境和当前运行环境一致。"
105+
"If it is already installed, ensure that the installation environment matches your current runtime environment."
107106
) from ie
108107

108+
109109
# Set the environment variable for vllm to use spawn method for multiprocessing
110110
# See https://docs.vllm.ai/en/v0.7.1/design/multiprocessing.html
111111
os.environ['VLLM_WORKER_MULTIPROC_METHOD'] = "spawn"

0 commit comments

Comments
 (0)