1 Star 0 Fork 8

Yikumasai/xinference-run-llm

forked from fly-llm/xinference-run-llm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
run_chatgpt_web.sh 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
freegolang 提交于 2024-06-06 09:16 . add
#!/bin/sh
# 项目地址:
# https://github.com/Chanzhaoyu/chatgpt-web#node
# https://www.autodl.com/docs/network_turbo/
# source /etc/network_turbo
# 安装
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# 必须新窗口执行。
#nvm install 20
# apt update && apt install -y npm
#source /etc/network_turbo
# 从aliyun 的源下载:
# https://mirrors.aliyun.com/nodejs-release/
# 或者下载地址:
# https://registry.npmmirror.com/binary.html?path=node/latest-v20.x/
#
# 下载最新版本:
if [ ! -d "node-v20.14.0-linux-x64" ]; then
echo "start downloading node-v20.14.0-linux-x64.tar.xz "
wget https://mirrors.aliyun.com/nodejs-release/v20.14.0/node-v20.14.0-linux-x64.tar.gz
tar -zxvf node-v20.14.0-linux-x64.tar.gz
rm -f node-v20.14.0-linux-x64.tar.gz
fi
export NODE_PATH=`pwd`/node-v20.14.0-linux-x64
export PATH=$PATH:$NODE_PATH/bin
# 下载项目
if [ ! -d "chatgpt-web" ]; then
echo "start clone chatgpt-web "
#git clone https://github.com/Chanzhaoyu/chatgpt-web.git
git clone https://gitcode.com/Chanzhaoyu/chatgpt-web.git
fi
# 启动web项目:
cd chatgpt-web
# 全部删除 npm run dev 进程。
ps -ef | grep npm | awk '{print$2}' | xargs kill -9
ps -ef | grep node | awk '{print$2}' | xargs kill -9
npm install --registry=https://registry.npmmirror.com
# 启动 web 服务,设置端口 6006
nohup npm run dev -- --port 6006 > chatgpt-web.log 2>&1 &
cd service
npm install --registry=https://registry.npmmirror.com
# 进行配置:
#
export AUTH_SECRET_KEY=1234
# 配置xinf 接口服务:
export OPENAI_API_KEY=1234
export OPENAI_API_MODEL=qwen1.5-chat
export OPENAI_API_BASE_URL=http://0.0.0.0:9997/v1
# 启动后端服务nodejs
nohup npm run dev > ../chatgpt-web-service.log 2>&1 &
cd ..
sleep 1
tail -f chatgpt-web.log
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/conlinli/xinference-run-llm.git
git@gitee.com:conlinli/xinference-run-llm.git
conlinli
xinference-run-llm
xinference-run-llm
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385