Skip to content

Commit c747446

Browse files
Add video of web-ui (#326)
1 parent 4f6007e commit c747446

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,27 @@ Users can check the [documentation of SWIFT](docs/source/GetStarted/快速使用
111111

112112

113113
## ✨ LLM Training and Inference
114+
### WEB UI training and inference
115+
116+
After installation, you can use web-ui training/inference like:
117+
118+
```shell
119+
SWIFT_UI_LANG=en swift web-ui
120+
```
121+
122+
> Supported environment variables:
123+
>
124+
> WEBUI_SHARE=1 Share the gradio or not
125+
> SWIFT_UI_LANG=en/zh The language of radio
126+
> WEBUI_SERVER server_name, web-ui host ip,0.0.0.0 means all routes are allowed,127.0.0.1 means only localhost can visit the web
127+
> WEBUI_PORT The port of web-ui
128+
129+
Here is a simple introduction of web-ui:
130+
131+
<video controls> <source src="https://modelscope-open.oss-cn-hangzhou.aliyuncs.com/SWIFT%E8%A7%86%E9%A2%91_%E8%B0%83%E6%95%B4%E5%B0%81%E9%9D%A2.mp4" type="video/mp4"> </video>
132+
114133
### Simple Usage
134+
115135
- **Self-cognition fine-tuning** for large models in **10 minutes**, creating a personalized large model, please refer to [Best Practices for Self-cognition Fine-tuning](https://github.com/modelscope/swift/blob/main/docs/source/LLM/自我认知微调最佳实践.md).
116136
- Quickly perform **inference** on LLM and build a **Web-UI**, see the [LLM Inference Documentation](https://github.com/modelscope/swift/blob/main/docs/source/LLM/LLM推理文档.md).
117137
- Rapidly **fine-tune** and perform inference on LLM, and build a Web-UI, see the [LLM Fine-tuning Documentation](https://github.com/modelscope/swift/blob/main/docs/source/LLM/LLM微调文档.md).

README_CN.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,27 @@ SWIFT(Scalable lightWeight Infrastructure for Fine-Tuning)是一个可扩展
109109

110110

111111
## ✨ 大模型训练推理
112+
### WEB UI训练推理
113+
114+
安装SWIFT之后,用如下方式启动界面训练推理:
115+
116+
```shell
117+
swift web-ui
118+
```
119+
120+
> 支持的环境变量:
121+
>
122+
> WEBUI_SHARE=1 控制gradio是否是share状态
123+
> SWIFT_UI_LANG=en/zh 控制web-ui界面语言
124+
> WEBUI_SERVER server_name参数, web-ui host ip,0.0.0.0代表所有ip均可访问,127.0.0.1代表只允许本机访问
125+
> WEBUI_PORT web-ui的端口号
126+
127+
下面是一个web-ui的简单视频介绍:
128+
129+
<video controls> <source src="https://modelscope-open.oss-cn-hangzhou.aliyuncs.com/SWIFT%E8%A7%86%E9%A2%91_%E8%B0%83%E6%95%B4%E5%B0%81%E9%9D%A2.mp4" type="video/mp4"> </video>
130+
112131
### 简单使用
132+
113133
- **10分钟**对大模型进行**自我认知微调**, 创建专属于自己的大模型, 可以查看[自我认知微调最佳实践](https://github.com/modelscope/swift/blob/main/docs/source/LLM/自我认知微调最佳实践.md).
114134
- 快速对LLM进行**推理**, 搭建**Web-UI**, 可以查看[LLM推理文档](https://github.com/modelscope/swift/blob/main/docs/source/LLM/LLM推理文档.md).
115135
- 快速对LLM进行**微调**, 推理并搭建Web-UI, 可以查看[LLM微调文档](https://github.com/modelscope/swift/blob/main/docs/source/LLM/LLM微调文档.md).

docs/source/cources/sft.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pip install ms-swift -U
121121
swift web-ui
122122
```
123123

124-
124+
<video controls> <source src="https://modelscope-open.oss-cn-hangzhou.aliyuncs.com/SWIFT%E8%A7%86%E9%A2%91_%E8%B0%83%E6%95%B4%E5%B0%81%E9%9D%A2.mp4" type="video/mp4"> </video>
125125

126126
在框架中,一个最小的训练过程代码如下:
127127

0 commit comments

Comments
 (0)