Skip to content

Commit c4452e5

Browse files
authored
Fix the "AttributeError: 'AsyncLLM' object has no attribute 'engine'" from #3704
1 parent bb882c3 commit c4452e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fastchat/serve/vllm_worker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
)
2525
from fastchat.utils import get_context_length, is_partial_stop
2626

27+
# This makes vllm > 0.8.0 work again.
28+
import os
29+
os.environ['VLLM_USE_V1'] = os.environ.get('VLLM_USE_V1', '0')
2730

2831
app = FastAPI()
2932

0 commit comments

Comments
 (0)