forked from pengxiao-song/LaWGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNT] Update README.md and requirements.txt
- Loading branch information
1 parent
d48979e
commit 434f2c5
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. 合并模型权重(可选) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|