liucongg / ChatGLM-Finetuning

基于ChatGLM-6B、ChatGLM2-6B、ChatGLM3-6B模型,进行下游具体任务微调,涉及Freeze、Lora、P-tuning、全参微调等

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: /root/.cache/torch_extensions/py310_cu116/fused_adam/fused_adam.so: cannot open shared object file: No such file or directory

HDHD-forever opened this issue · comments

ImportError: /root/.cache/torch_extensions/py310_cu116/fused_adam/fused_adam.so: cannot open shared object file: No such file or directory
image
请问这个问题是什么原因呀,看了一天了没看出问题来😭

应该是环境的问题,一般时cuda和gcc、g++的问题

cuda应该是没有装错,g++这个因为centos默认是4.85,我确实升级到了5.1,这个会有影响吗?

感谢大佬,终于解决了,就是gcc、g++的问题,我这边升级到gcc8.x.x版本后就可以了,
yum install centos-release-scl
yum install devtoolset-8

激活gcc版本,使其生效
scl enable devtoolset-8 bash或source /opt/rh/devtoolset-8/enable

最后查看gcc是否成功升级
gcc --version

@HDHD-forever 你好我也遇到了相同的问题,能和我分享一下你的ds_report吗,我希望知道你的report中对应的fused_adam安装情况
image