You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
711 B
33 lines
711 B
cd /usr/local
|
|
conda init
|
|
source /root/.bashrc
|
|
git clone https://gitee.com/kgdxpr/DB-GPT.git
|
|
cd DB-GPT/
|
|
conda create -n dbgpt_env python=3.10
|
|
conda activate dbgpt_env
|
|
pip install torch
|
|
pip install -e ".[default]"
|
|
cp .env.template .env
|
|
pip install dashscope
|
|
vi .env
|
|
|
|
LLM_MODEL=tongyi_proxyllm
|
|
TONGYI_PROXY_API_KEY=sk-01d13a39e09844038322108ecdbd1bbc
|
|
PROXY_SERVER_URL=https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
|
|
|
|
apt-get update
|
|
apt-get install sqlite3
|
|
apt-get install git-lfs
|
|
|
|
--下载向量模型
|
|
mkdir models
|
|
cd models
|
|
git clone https://www.modelscope.cn/Jerry0/text2vec-large-chinese.git
|
|
|
|
--启动
|
|
cd /usr/local/DB-GPT
|
|
python dbgpt/app/dbgpt_server.py
|
|
|
|
|
|
|