【求助帖】2024/10/16,Chinese LLaMA Alpaca系列模型 - 连接本地的nextchat到remote ssh服务器 #222
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#222
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
我已经成功把模型跑起来了,也可以通过命令得到答案,但是不太清楚怎么把nextchat和在ssh服务器上面跑的模型连起来,需要帮助。
在GitBash上
首先先确保自己在这个目录下:cd ~/Chinese-LLaMA-Alpaca-3-3.0/scripts/oai_api_demo/
然后再输入如下命令启动大模型:
python openai_api_server.py --gpus 0 --base_model /home/huxudong/.cache/modelscope/hub/ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3
确保已经下载好了NextChat,这里附上Windows的下载官网:
Windows:https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/releases/download/v2.14.2/NextChat_2.14.2_x64-setup.exe
下载好后打开nextchat,在设置里找到接口位置
设置接口地址,若为本地则为localhost(127.0.0.1)+端口号(19327),服务器则需要替换;
API Key可以任意填写,然后将chatgpt系统提示去掉。点击这里选择模型便可以跟机器人对话了
问题解决了,是port forwarding的问题