Commit 7a87f13 1 parent d4aa19d commit 7a87f13 Copy full SHA for 7a87f13
File tree 2 files changed +3
-3
lines changed
docSite/content/docs/development/custom-models
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ ChatGLM2-6B 是开源中英双语对话模型 ChatGLM-6B 的第二代版本,
47
47
48
48
1 . 根据上面的环境配置配置好环境,具体教程自行 GPT;
49
49
2 . 下载 [ python 文件] ( https://github.com/labring/FastGPT/blob/main/files/models/ChatGLM2/openai_api.py )
50
- 3 . 在命令行输入命令 ` pip install -r requirments .txt ` ;
50
+ 3 . 在命令行输入命令 ` pip install -r requirements .txt ` ;
51
51
4 . 打开你需要启动的 py 文件,在代码的 ` verify_token ` 方法中配置 token,这里的 token 只是加一层验证,防止接口被人盗用;
52
52
5 . 执行命令 ` python openai_api.py --model_name 16 ` 。这里的数字根据上面的配置进行选择。
53
53
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ weight: 910
29
29
30
30
1 . 根据上面的环境配置配置好环境,具体教程自行 GPT;
31
31
2 . 下载 [ python 文件] ( https://github.com/labring/FastGPT/tree/main/python/reranker/bge-reranker-base )
32
- 3 . 在命令行输入命令 ` pip install -r requirments .txt ` ;
32
+ 3 . 在命令行输入命令 ` pip install -r requirements .txt ` ;
33
33
4 . 按照[ https://huggingface.co/BAAI/bge-reranker-base ] ( https://huggingface.co/BAAI/bge-reranker-base ) 下载模型仓库到app.py同级目录
34
34
5 . 添加环境变量 ` export ACCESS_TOKEN=XXXXXX ` 配置 token,这里的 token 只是加一层验证,防止接口被人盗用,默认值为 ` ACCESS_TOKEN ` ;
35
35
6 . 执行命令 ` python app.py ` 。
@@ -61,4 +61,4 @@ docker run -d --name reranker -p 6006:6006 -e ACCESS_TOKEN=mytoken luanshaotong/
61
61
62
62
## 接入 FastGPT
63
63
64
- 参考 [ ReRank模型接入] ( /docs/development/configuration/#rerank-接入 ) ,host 变量为部署的域名。
64
+ 参考 [ ReRank模型接入] ( /docs/development/configuration/#rerank-接入 ) ,host 变量为部署的域名。
You can’t perform that action at this time.
0 commit comments