Skip to content

Commit

Permalink
llm
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzheng422 committed Dec 3, 2023
1 parent 1371a6c commit 2bd76c2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions redhat/notes/2023/2023.11.rhel.gpu.llm.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda
dnf clean all
dnf -y module install nvidia-driver:latest-dkms
dnf -y install cuda datacenter-gpu-manager
# dnf install -y cuda-11

# systemctl enable --now dcgm

Expand Down Expand Up @@ -172,7 +173,9 @@ cd /data/git_env

git clone https://github.com/chatchat-space/Langchain-Chatchat

git checkout pre-release
# git checkout pre-release
git restore ./
git checkout v0.2.6

export ENV_CWD="/data/git_env/Langchain-Chatchat"

Expand All @@ -183,11 +186,16 @@ pip install -U -r requirements.txt
cd ${ENV_CWD}/configs
/bin/cp -f model_config.py.example model_config.py
/bin/cp -f server_config.py.example server_config.py
# /bin/cp -f kb_config.py.example kb_config.py
/bin/cp -f kb_config.py.exmaple kb_config.py
/bin/cp -f kb_config.py.example kb_config.py
# /bin/cp -f kb_config.py.exmaple kb_config.py
/bin/cp -f basic_config.py.example basic_config.py
/bin/cp -f prompt_config.py.example prompt_config.py

# apply custom config
cd ${ENV_CWD}/configs
/bin/cp -f model_config.multi.py model_config.py
# /bin/cp -f server_config.multi.py server_config.py

# init vector db
cd ${ENV_CWD}
# /bin/rm -rf ${ENV_CWD}/info.db
Expand All @@ -198,6 +206,7 @@ python3 init_database.py --recreate-vs
# apply custom config
cd ${ENV_CWD}/configs
/bin/cp -f model_config.multi.py model_config.py
/bin/cp -f prompt_config.multi.py prompt_config.py
# /bin/cp -f server_config.multi.py server_config.py

# startup the UI
Expand Down

0 comments on commit 2bd76c2

Please sign in to comment.