From 1911e177b407c314a3139f918281c8d2f9e78f70 Mon Sep 17 00:00:00 2001 From: FangYin Cheng Date: Fri, 15 Sep 2023 18:07:41 +0800 Subject: [PATCH] chore: add autodl setup script --- scripts/setup_autodl_env.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/setup_autodl_env.sh diff --git a/scripts/setup_autodl_env.sh b/scripts/setup_autodl_env.sh new file mode 100644 index 000000000..9ec27e0c8 --- /dev/null +++ b/scripts/setup_autodl_env.sh @@ -0,0 +1,19 @@ +#!/bin/bash +eval "$(conda shell.bash hook)" + +source ~/.bashrc + +# source /etc/network_turbo +# unset http_proxy && unset https_proxy +conda create -n dbgpt python=3.10 -y + +conda activate dbgpt + +apt-get update -y && apt-get install git-lfs -y + +cd /root && git clone https://github.com/eosphoros-ai/DB-GPT.git + +mkdir -p /root/DB-GPT/models && cd /root/DB-GPT/models + +git clone https://huggingface.co/GanymedeNil/text2vec-large-chinese +git clone https://huggingface.co/THUDM/chatglm2-6b-int4 \ No newline at end of file