Skip to content

Commit

Permalink
[MNT] Update README.md and requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
herobrine19 committed May 21, 2023
1 parent d48979e commit 434f2c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,23 @@ LaWGPT 是一系列基于中文法律知识的开源大语言模型。
1. 准备代码,创建环境

```bash
# clone 代码
git clone [email protected]: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. 合并模型权重(可选)
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
bitsandbytes==0.37.2
black
black[jupyter]
datasets
Expand Down

0 comments on commit 434f2c5

Please sign in to comment.