chatglm+langchain本地cpu实战.

发布时间 2023-06-06 15:18:50作者: 张博的博客
#Setup envirnment #大概使用59个G内存.
conda create -n langchain python=3.8.1 -y
conda activate langchain
# 拉取仓库
git clone https://github.com/imClumsyPanda/langchain-ChatGLM.git

# 安装依赖
cd langchain-ChatGLM
python3 -m pip install -r requirements.txt
python3 -m pip install gradio==3.28.3
python3 -m pip install tabulate
#Download models
git lfs install

git clone https://huggingface.co/THUDM/chatglm-6b
git clone https://huggingface.co/GanymedeNil/text2vec-large-chinese

python3 webui.py