update readme: 更新startup启动方式说明

This commit is contained in:
hzg0601 2023-08-17 17:17:06 +08:00
parent 44d4bacf1c
commit 0830f0d3b7
1 changed files with 7 additions and 3 deletions

View File

@ -364,13 +364,13 @@ $ streamlit run webui.py --server.port 666
### 6. 一键启动
更新一键启动脚本startup.py,一键启动所有fastchat服务、API服务、WebUI服务实例
更新一键启动脚本startup.py,一键启动所有fastchat服务、API服务、WebUI服务,示例代码
```shell
$ python startup.py --all-webui
```
可选 `all-webui,all-api,llm-api,controller,openai-api,model-worker,api,webui`.
可选 `all-webui,all-api,llm-api,controller,openai-api,model-worker,api,webui`其中all-webui为一键启动webui所有依赖服务all-api为一键启动api所有依赖服务llm-api为一键启动fastchat所有依赖的llm服务openai-api为仅启动fastchat的controller和openai-api-server服务其他为单独服务启动选项。
若想指定非默认模型,需要用--model-name选项示例
@ -378,7 +378,11 @@ $ python startup.py --all-webui
$ python startup.py --all-webui --model-name Qwen-7B-Chat
```
**注意startup脚本用多进程方式启动各模块的服务可能会导致打印顺序问题请等待全部服务发起后再调用并根据默认端口调用服务默认api服务端口127.0.0.1:7861,默认webui服务端口`本机IP8501`)**
**注意:**
**1. startup脚本用多进程方式启动各模块的服务可能会导致打印顺序问题请等待全部服务发起后再调用并根据默认或指定端口调用服务默认llm-api服务端口127.0.0.1:8888,默认api服务端口127.0.0.1:7861,默认webui服务端口`本机IP8501`)**
**2.服务启动时间示设备不同而不同约3-10分钟如长时间没有启动请前往 `./logs`目录下监控日志,定位问题。**
## 常见问题