forked from Elvin-Ma/pytorch_guide
-
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.
- Loading branch information
Showing
16 changed files
with
97 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
FROM nginx | ||
RUN echo '这是一个本地构建的nginx镜像' > /usr/share/nginx/html/index.html |
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
Binary file not shown.
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
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,10 @@ | ||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route('/') | ||
def hello_world(): | ||
return 'Hello, World!' | ||
|
||
if __name__ =="__main__": | ||
app.run(host='0.0.0.0', port=5000) |
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 |
---|---|---|
|
@@ -60,4 +60,5 @@ def upload(): | |
# app.run(host='0.0.0.0', port=8987, debug=True) | ||
app.run(host='0.0.0.0', port=8987) | ||
# app.run() | ||
|
||
|
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,31 @@ | ||
# 1. 部署我们自己的聊天机器人 | ||
|
||
## 1.1 代码准备 | ||
git clone [email protected]:wenda-LLM/wenda.git | ||
*自己download 也可以* | ||
|
||
## 1.2 模型准备 | ||
- [链接](https://pan.baidu.com/s/1VPRGReHfnnqe_ULKjquoaQ?pwd=oaae) | ||
- 提取码:oaae | ||
- 将pretrained model 放到 wenda/model 下(建议); | ||
|
||
## 1.3 环境准备 | ||
```shell | ||
- conda create -n python3.10 python=3.10(建议) | ||
- pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116 | ||
- cd */wenda/requirements/ | ||
- pip install -r requirements.txt # update transformers==4.27.1 | ||
- pip install requirements-glm6b-lora.txt | ||
- pip install protobuf transformers==4.27.1 cpm_kernels | ||
``` | ||
## 1.4 运行程序 | ||
cp example.config.yml config.yml | ||
source run_GLM6B.sh | ||
|
||
## 1.5 连接网络进行访问 | ||
http://172.29.240.181:17860 | ||
**注意:IP要换成自己的IP,端口号 和 config.yml 保存一致** | ||
|
||
# 2 [参考资料] | ||
[参考资料2](https://huggingface.co/THUDM/chatglm-6b-int4) | ||
[参考资料](https://github.com/wenda-LLM/wenda/tree/main) |
File renamed without changes.
File renamed without changes.
9 changes: 8 additions & 1 deletion
9
14-model_learning/chatGLM/README.md → 15-model_learning/chatGLM/README.md
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
File renamed without changes.
File renamed without changes.
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