Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vllm_server.sh脚本问题 #1

Closed
QingChengLineOne opened this issue May 28, 2024 · 2 comments
Closed

vllm_server.sh脚本问题 #1

QingChengLineOne opened this issue May 28, 2024 · 2 comments

Comments

@QingChengLineOne
Copy link

vllm_server.sh脚本配置:
model_path="/public/zzy/model/Mistral-7B-Instruct-v0.2"
model_name="Mistral-7B-Instruct-v0.2"
tensor_parallel_size=2

cd $model_path
cd ..
python -m vllm.entrypoints.openai.api_server --model $model_name --dtype=half --tensor-parallel-size $tensor_parallel_size

报错:
Traceback (most recent call last):
File "/root/anaconda/envs/moss/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/root/anaconda/envs/moss/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/root/anaconda/envs/moss/lib/python3.8/site-packages/vllm/entrypoints/openai/api_server.py", line 37, in
_running_tasks: Set[asyncio.Task[Any]] = set()
TypeError: 'type' object is not subscriptable

@wlyh514
Copy link

wlyh514 commented May 28, 2024

Seems like a known vllm bug introduced in v0.4.2.
Issue
The PR that introduced this bug
Diff v0.4.1...v0.4.2
The fix is not published yet, you could try rolling back to v0.4.1.

@QingChengLineOne
Copy link
Author

thank you for your answer. I try to use python==3.10 to slove this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants