-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
CPU就能跑! | ||
|
||
## Docker一键运行 | ||
```dockerfile | ||
FROM python:slim | ||
|
||
WORKDIR /secgpt-mini | ||
|
||
COPY . /secgpt-mini | ||
|
||
RUN pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -r requirements.txt | ||
|
||
EXPOSE 7860 | ||
|
||
CMD ["python", "webdemo.py", "--base_model", "/secgpt-mini/models"] | ||
``` | ||
## 手动运行 | ||
|
||
模型使用方法: | ||
|
||
1. 下载模型和源码 | ||
|
||
2. 安装python3.7 和依赖 pip install -r requirements.txt | ||
|
||
3. 运行 python3 webdemo.py —base_model models | ||
|
||
4. 输入指令就可以了 |