THUDM/chatglm-6b-int4运行缺少gcc和openmp的问题
·
在运行ChatGLM-6B的时候,本人是小白,遇到这几个问题,解决方法分享给大家
1.缺少gcc的问题
参考
GCC编译器的安装教程(Windows环境)_gcc安装教程_nhyltt的博客-CSDN博客
2. 缺少openmp的问题

在这里下5.1.0-2老版本的,新版本没有
TDM-GCC Compiler - Browse /TDM-GCC Installer at SourceForge.net

去掉勾选check for xxxxxxxxxxxxxxxxxxxxx server

点gcc子项中的openmp
install就完事了
3. cannot find -lpthread 的问题
c:/_programs/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe:
cannot find -lpthread
参考: [Mingw-users] GCC doesn't work "ld.exe: cannot find -lpthread"
You should install the libpthreadgc-dev package; (from the CLI):
cmd 输入: mingw-get install libpthreadgc-dev
4. Cannot load cpu kernel, don't use quantized model on cpu.
正在寻找解决方法中
更多推荐




所有评论(0)