mirror of
https://github.com/OpenBMB/MiniCPM-V.git
synced 2026-02-05 18:29:18 +08:00
Update README_zh.md
This commit is contained in:
22
README_zh.md
22
README_zh.md
@@ -1799,14 +1799,20 @@ MiniCPM-o 2.6 可以通过多种方式轻松使用:(1) [llama.cpp](https://git
|
|||||||
|
|
||||||
您可以使用以下命令轻松构建自己的本地 WebUI Demo。
|
您可以使用以下命令轻松构建自己的本地 WebUI Demo。
|
||||||
|
|
||||||
|
1. 启动model server:
|
||||||
```shell
|
```shell
|
||||||
pip install -r requirements.txt
|
pip install -r requirements_o2.6.txt
|
||||||
|
|
||||||
|
python web_demos/minicpm-o_2.6/model_server.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2. 启动web server:
|
||||||
```shell
|
```shell
|
||||||
# 对于 NVIDIA GPU,请运行:
|
# Make sure Node and PNPM is installed.
|
||||||
python web_demo_2.6.py --device cuda
|
cd web_demos/minicpm-o_2.6/web_server
|
||||||
|
pnpm install # install requirements
|
||||||
|
|
||||||
|
pnpm run dev # start server
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -1816,21 +1822,21 @@ python web_demo_2.6.py --device cuda
|
|||||||
1. 克隆我们的仓库并跳转到相应目录
|
1. 克隆我们的仓库并跳转到相应目录
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/OpenBMB/MiniCPM-V.git
|
git clone https://github.com/OpenBMB/MiniCPM-o.git
|
||||||
cd MiniCPM-V
|
cd MiniCPM-o
|
||||||
```
|
```
|
||||||
|
|
||||||
1. 创建 conda 环境
|
1. 创建 conda 环境
|
||||||
|
|
||||||
```Shell
|
```Shell
|
||||||
conda create -n MiniCPMV python=3.10 -y
|
conda create -n MiniCPMo python=3.10 -y
|
||||||
conda activate MiniCPMV
|
conda activate MiniCPMo
|
||||||
```
|
```
|
||||||
|
|
||||||
3. 安装依赖
|
3. 安装依赖
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pip install -r requirements.txt
|
pip install -r requirements_o2.6.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
## 推理
|
## 推理
|
||||||
|
|||||||
Reference in New Issue
Block a user