
The English version README files of the following documents are created and translated. 1. demo/README.md 2. evaluate/README.md 3. xtuner_config/README.md 4. xtuner_config/images/README.md 5. xtuner_config/ChatGLM3-6b-ft.md There are some format problem and language expression in the Chinese version, I also adapted them. By the way, I modified the file name of `evaluate/General evaluation.md` and `evaluate/Professional evaluation.md` since they are shown in the `xtuner_config/README.md`
59 lines
1.0 KiB
Markdown
59 lines
1.0 KiB
Markdown
# EmoLLM 部署指南
|
||
|
||
## 本地部署
|
||
|
||
- Clone repo
|
||
|
||
```bash
|
||
git clone https://github.com/aJupyter/EmoLLM.git
|
||
```
|
||
|
||
- 安装依赖
|
||
|
||
```bash
|
||
pip install -r requirements.txt
|
||
```
|
||
|
||
- 下载模型
|
||
- 模型权重:https://openxlab.org.cn/models/detail/jujimeizuo/EmoLLM_Model
|
||
- 通过 openxlab.model.download 下载,详情请看 [cli_internlm2](./cli_internlm2.py)
|
||
|
||
```bash
|
||
from openxlab.model import download
|
||
|
||
download(model_repo='jujimeizuo/EmoLLM_Model', output='model')
|
||
```
|
||
|
||
- 可以手动下载,放在 `./model` 目录下,然后把上面的代码删掉
|
||
|
||
- cli_demo
|
||
|
||
```bash
|
||
python ./demo/cli_internlm2.py
|
||
```
|
||
|
||
- web_demo
|
||
|
||
```bash
|
||
python ./app.py
|
||
```
|
||
|
||
如果在服务器上部署,需要配置本地端口映射
|
||
|
||
## OpenXLab 上部署
|
||
|
||
- 登陆 OpenXLab,创建 Gradio 应用
|
||
|
||

|
||
|
||
- 选择配置,立即创建
|
||
|
||

|
||
|
||
- 等待构建、启动
|
||
|
||

|
||
|
||
- 项目体验
|
||
|
||
 |