Skip to content

Commit

Permalink
[MNT] Update some file
Browse files Browse the repository at this point in the history
  • Loading branch information
herobrine19 committed May 22, 2023
1 parent 492d4ff commit e95f170
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
32 changes: 9 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,18 @@ LaWGPT 是一系列基于中文法律知识的开源大语言模型。
pip install -r requirements.txt

# 执行ui脚本(脚本会下载预训练模型,预计占用15GB)
bash scripts/webui.sh

# 打开浏览器,访问 http://127.0.0.1:7860/
# 在Instruction框输入法律问题,点击"Submit"按钮, 等待模型生成答案
bash ./scripts/webui.sh
```

如果您想使用自己的数据进行finetune,请查看脚本`scripts/finetune.sh`
2. 打开浏览器,访问 http://127.0.0.1:7860/ .在Instruction框输入法律问题,点击"Submit"按钮, 等待模型生成答案
<p align="center">
<img src="./assets/demo/demo.png" width="80%" >
</p>

3. 如果您想使用自己的数据进行finetune,请查看脚本`scripts/finetune.sh`
```bash
bash scripts/finetune.sh
# 设置好对应参数后运行脚本
bash ./scripts/finetune.sh
```


Expand All @@ -80,23 +83,6 @@ LaWGPT 是一系列基于中文法律知识的开源大语言模型。
本项目给出[合并方式](https://github.com/pengxiao-song/LaWGPT/wiki/%E6%A8%A1%E5%9E%8B%E5%90%88%E5%B9%B6),请各位获取原版权重后自行重构模型。


3. 启动示例

启动本地服务:

```bash
conda activate lawgpt
cd LaWGPT
sh src/scripts/generate.sh
```

接入服务:

<p align="center">
<img src="./assets/demo/demo.png" width="80%" >
</p>


## 项目结构

```bash
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
accelerate
appdirs
bitsandbytes==0.37.2
bitsandbytes
black
black[jupyter]
datasets
Expand Down

0 comments on commit e95f170

Please sign in to comment.