lm-sys / lm-sys/FastChat

BUG for ImportError: cannot import name 'AsyncLLMEngine' from 'vllm' (unknown location)

Open
#2,733 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

python -m fastchat.serve.vllm_worker --model-path "/home/incar/newdata2/tms/llm/chatglm3-6b-32k" --trust-remote-code

```

Traceback (most recent call last):
File "/home/incar/miniconda3/envs/chatlain/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/incar/miniconda3/envs/chatlain/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/incar/miniconda3/envs/chatlain/lib/python3.10/site-packages/fastchat/serve/vllm_worker.py", line 15, in
from vllm import AsyncLLMEngine
ImportError: cannot import name 'AsyncLLMEngine' from 'vllm' (unknown location)

```

I test in vllm and it's ok!so,I think something would be wrong in fastchat.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command in the issue and inspect fastchat/serve/vllm_worker.py, especially its import of AsyncLLMEngine. Compare that import with the installed vllm package and its version; done means the worker starts without this ImportError under the documented environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.