chatglm吧 关注:286贴子:452
  • 8回复贴,共1

NoneType' object has no attribute 'int4WeightExtractionHalf

只看楼主收藏回复

chatglm2-6b 正常加载
torch.cuda.is_available() true
但是提问的时候报错:
AttributeError: 'NoneType' object has no attribute 'int4WeightExtractionHalf'
有大佬遇到过这样的问题吗?求教怎么解决啊!


IP属地:贵州1楼2023-07-02 19:32回复
    我也是一样,怎么回事


    IP属地:河南2楼2023-07-15 01:40
    回复
      问题大概是出在 照教程装了个CPU版的torch(用pip install -r requirements.txt 这个命令装进去的)
      建议是先装好GPU版的torch
      再用pip install -r requirements.txt


      IP属地:湖北3楼2023-07-21 07:03
      回复
        你好,请问这个问题解决了嘛,我也被这个问题困住了


        来自Android客户端4楼2023-09-01 00:33
        回复
          #int4WeightExtractionHalf报错
          #可安装cpm_kernels库,装完问题解决
          pip install cpm_kernels


          IP属地:上海5楼2023-10-18 15:10
          收起回复
            楼主解决了吗


            IP属地:浙江6楼2023-11-26 21:39
            回复
              chatglm2-6b-int4\quantization.py
              func = kernels.int4WeightExtractionHalf AttributeError: 'NoneType' object has no attribute 'int4WeightExtractionHalf'
              在部署langchain-chatchat的时候使用gpu启动的时候,大模型都加载到显卡内存上了,在发起聊天对话也遇到此问题,还没有找到办法解决。


              IP属地:湖南7楼2023-12-16 23:21
              回复