本页还没有译文
本页 7 段还没译成简体中文,下面显示的是英文原文。Streamlit
还没翻译译自英文(docs.vllm.ai)本页 7 段都还没译
Streamlit
Streamlit lets you transform Python scripts into interactive web apps in minutes, instead of weeks. Build dashboards, generate reports, or create chat apps.
It can be quickly integrated with vLLM as a backend API server, enabling powerful LLM inference via API calls.
Prerequisites
Set up the vLLM environment by installing all required packages:
pip install vllm streamlit openaiDeploy
-
Start the vLLM server with a supported chat completion model, e.g.
vllm serve Qwen/Qwen1.5-0.5B-Chat -
Use the script: examples/applications/chatbot/streamlit_openai_chatbot_webserver.py
-
Start the streamlit web UI and start to chat:
streamlit run streamlit_openai_chatbot_webserver.py # or specify the VLLM_API_BASE or VLLM_API_KEY VLLM_API_BASE="http://vllm-server-host:vllm-server-port/v1" \ streamlit run streamlit_openai_chatbot_webserver.py # start with debug mode to view more details streamlit run streamlit_openai_chatbot_webserver.py --logger.level=debug
AI 翻译查看英文原文