diff --git a/README.md b/README.md index fa18de2..331c5bc 100644 --- a/README.md +++ b/README.md @@ -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"按钮, 等待模型生成答案 +

+ +

+ +3. 如果您想使用自己的数据进行finetune,请查看脚本`scripts/finetune.sh`: ```bash - bash scripts/finetune.sh + # 设置好对应参数后运行脚本 + bash ./scripts/finetune.sh ``` @@ -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 - ``` - - 接入服务: - -

- -

- - ## 项目结构 ```bash diff --git a/requirements.txt b/requirements.txt index ea32840..234d81b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ accelerate appdirs -bitsandbytes==0.37.2 +bitsandbytes black black[jupyter] datasets