1 Star 0 Fork 8

Yikumasai/xinference-run-llm

forked from fly-llm/xinference-run-llm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
run_xinference.sh 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
freegolang 提交于 2024-06-24 08:53 . 删除无用脚本。
#!/bin/sh
# 1,安装 torch 模块,防止依赖多次下载
# pip3 install torch==2.0.0
# 安装 flash_attn 需要网络下载 github
# https://www.autodl.com/docs/network_turbo/
# 最后安装 软件 transformers==4.30.2
# pip3 install vllm==0.4.1
# pip3 install "xinference[transformers]"
# llama-cpp-python
sudo apt install -y python3-pip
pip3 install xinference SentencePiece tiktoken
# 安装ffpeg库。
# sudo apt update && sudo apt install -y ffmpeg
# 清除全部 fastchat 服务
ps -ef | grep xinference-local | awk '{print$2}' | xargs kill -9
sleep 1
rm -f *.log
# 兼容 compshare
if [ -d "/home/ubuntu/.local/bin" ]; then
echo "set PATH /home/ubuntu/.local/bin "
export PATH=${PATH}:/home/ubuntu/.local/bin
fi
# https://hf-mirror.com/
export HF_ENDPOINT=https://hf-mirror.com
export XINFERENCE_MODEL_SRC=modelscope
export XINFERENCE_HOME=`pwd`/xinf-data
# 首先启动 xinference-local :
# CUDA_VISIBLE_DEVICES=0,1,2
nohup xinference-local --host 0.0.0.0 --port 9997 > xinference-local.log 2>&1 &
sleep 1
tail -f xinference-local.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