草庐IT

手把手带你linux部署清华大学大模型最新版 chaglm2-6b

准备工作:#下载项目源代码gitclonehttps://github.com/THUDM/ChatGLM2-6B#切换到项目根目录cdChatGLM2-6B#安装依赖pipinstall-rrequirements.txt#安装web依赖pipinstallgradio如果安装出现问题,可尝试手动分别安装torch1#1第一步安装虚拟环境并激活环境condacreate-nChatGLM2python=3.10.6condaactivateChatGLM22nvidia-smi查看cuda版本,12.03安装torch第一种方式pytorch官网:https://pytorch.org/经过