标题: DB-GPT 安装 [打印本页] 作者: 曂沅仴駦 时间: 2024-11-17 23:06 标题: DB-GPT 安装 从源代码开始安装,因为docker镜像库不能用了。。。
参考官网:
https://docs.dbgpt.site/docs/latest/quickstart
安装文档 - 选择 安装部署 -> 源码部署
使用文档 · 语雀
=========================
下载minoconda和python
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>>
这里要选yes
source ~/.bashrc
注意:
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
run the following command when conda is activated:
conda config --set auto_activate_base false
You can undo this by running `conda init --reverse $SHELL`
# Add the Git LFS package repository
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
# Update your package lists
sudo apt-get update
# Install Git LFS
sudo apt install git-lfs
# embedding model
git clone https://huggingface.co/GanymedeNil/text2vec-large-chinese
# also you can use m3e-large model, you can choose one of them according to your needs
git clone https://huggingface.co/moka-ai/m3e-large
# LLM model, if you use openai or Azure or tongyi llm api service, you don't need to download llm model
#git clone https://huggingface.co/THUDM/glm-4-9b-chat
========================================
启动DB-GPT的脚本
startDB-GPT.sh
#!/bin/sh
#
conda activate dbgpt_env
cd /data/DB-GPT