[MNT] Update README.md and requirements.txt

This commit is contained in:
herobrine19
2023-05-22 03:03:06 +08:00
parent d48979e4f1
commit 434f2c55dd
2 changed files with 14 additions and 1 deletions

View File

@ -44,10 +44,23 @@ LaWGPT 是一系列基于中文法律知识的开源大语言模型。
1. 准备代码,创建环境
```bash
# clone 代码
git clone git@github.com:pengxiao-song/LaWGPT.git
cd LaWGPT
# 切换到 dev 分支
checkout dev
# 创建环境
conda create -n lawgpt python=3.10 -y
conda activate lawgpt
pip install -r requirements.txt
# 执行ui脚本(脚本会下载预训练模型,预计占用15GB)
bash scripts/webui.sh
# 打开浏览器,访问 http://127.0.0.1:7860/
# 在Instructions框输入法律问题,点击"Submit"按钮, 等待模型生成答案
```
2. 合并模型权重(可选)

View File

@ -1,6 +1,6 @@
accelerate
appdirs
bitsandbytes
bitsandbytes==0.37.2
black
black[jupyter]
datasets