From 7a87f13aa81074426d8414222256286ebaf65b92 Mon Sep 17 00:00:00 2001 From: Kenith-Zhang <875479694@qq.com> Date: Thu, 22 Feb 2024 09:48:45 +0800 Subject: [PATCH] docs:Update chatglm2.md and reranker.md the 'requirements' the word error (#866) * Update chatglm2.md docs:chatglm2.md the 'requirements' the word error * docs reranker.md the 'requirements' the word error --- docSite/content/docs/development/custom-models/chatglm2.md | 2 +- docSite/content/docs/development/custom-models/reranker.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docSite/content/docs/development/custom-models/chatglm2.md b/docSite/content/docs/development/custom-models/chatglm2.md index 0d273e900..a35c7bdea 100644 --- a/docSite/content/docs/development/custom-models/chatglm2.md +++ b/docSite/content/docs/development/custom-models/chatglm2.md @@ -47,7 +47,7 @@ ChatGLM2-6B 是开源中英双语对话模型 ChatGLM-6B 的第二代版本, 1. 根据上面的环境配置配置好环境,具体教程自行 GPT; 2. 下载 [python 文件](https://github.com/labring/FastGPT/blob/main/files/models/ChatGLM2/openai_api.py) -3. 在命令行输入命令 `pip install -r requirments.txt`; +3. 在命令行输入命令 `pip install -r requirements.txt`; 4. 打开你需要启动的 py 文件,在代码的 `verify_token` 方法中配置 token,这里的 token 只是加一层验证,防止接口被人盗用; 5. 执行命令 `python openai_api.py --model_name 16`。这里的数字根据上面的配置进行选择。 diff --git a/docSite/content/docs/development/custom-models/reranker.md b/docSite/content/docs/development/custom-models/reranker.md index 910df0600..20bc9108a 100644 --- a/docSite/content/docs/development/custom-models/reranker.md +++ b/docSite/content/docs/development/custom-models/reranker.md @@ -29,7 +29,7 @@ weight: 910 1. 根据上面的环境配置配置好环境,具体教程自行 GPT; 2. 下载 [python 文件](https://github.com/labring/FastGPT/tree/main/python/reranker/bge-reranker-base) -3. 在命令行输入命令 `pip install -r requirments.txt`; +3. 在命令行输入命令 `pip install -r requirements.txt`; 4. 按照[https://huggingface.co/BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base)下载模型仓库到app.py同级目录 5. 添加环境变量 `export ACCESS_TOKEN=XXXXXX` 配置 token,这里的 token 只是加一层验证,防止接口被人盗用,默认值为 `ACCESS_TOKEN` ; 6. 执行命令 `python app.py`。 @@ -61,4 +61,4 @@ docker run -d --name reranker -p 6006:6006 -e ACCESS_TOKEN=mytoken luanshaotong/ ## 接入 FastGPT -参考 [ReRank模型接入](/docs/development/configuration/#rerank-接入),host 变量为部署的域名。 \ No newline at end of file +参考 [ReRank模型接入](/docs/development/configuration/#rerank-接入),host 变量为部署的域名。