#Setup envirnment !conda create -n langchain python=3.8.1 -y !conda activate langchain # 拉取仓库 #!git clone https://github.com/imClumsyPanda/langchain-ChatGLM.git !cp -r /kaggle/input/langchain-chatglm/ /kaggle/working/langchain-ChatGLM # 安装依赖 %cd /kaggle/working/langchain-ChatGLM !/opt/conda/envs/langchain/bin/python3 -m pip install -r requirements.txt !/opt/conda/envs/langchain/bin/python3 -m pip install gradio==3.28.3 !/opt/conda/envs/langchain/bin/python3 -m pip install tabulate #Download models !git lfs install %cd /kaggle/working/langchain-ChatGLM !git clone https://huggingface.co/THUDM/chatglm-6b-int4 !git clone https://huggingface.co/GanymedeNil/text2vec-large-chinese %cd /kaggle/working/langchain-ChatGLM !/opt/conda/envs/langchain/bin/python3 webui.py
标签:bin,git,chatglm,kaggle,langchain,conda,ChatGLM From: https://www.cnblogs.com/zhangbo2008/p/17460453.html