We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6552d0 commit a11e0bdCopy full SHA for a11e0bd
docSite/content/docs/custom-models/chatglm2.md
@@ -48,8 +48,8 @@ ChatGLM2-6B 是开源中英双语对话模型 ChatGLM-6B 的第二代版本,
48
1. 根据上面的环境配置配置好环境,具体教程自行 GPT;
49
2. 下载 [python 文件](https://github.com/labring/FastGPT/blob/main/files/models/ChatGLM2/openai_api.py)
50
3. 在命令行输入命令 `pip install -r requirments.txt`;
51
-4. 打开你需要启动的 py 文件,在代码的第 76 行配置 token,这里的 token 只是加一层验证,防止接口被人盗用;
52
-5. 执行命令 `python openai_api.py 16`。这里的数字根据上面的配置进行选择。
+4. 打开你需要启动的 py 文件,在代码的 `verify_token` 方法中配置 token,这里的 token 只是加一层验证,防止接口被人盗用;
+5. 执行命令 `python openai_api.py --model_name 16`。这里的数字根据上面的配置进行选择。
53
54
然后等待模型下载,直到模型加载完毕为止。如果出现报错先问 GPT。
55
0 commit comments