1
运行时
bitsandbytes 运行报错
2025-07-14 11:53:02
165

操作系统:ubuntu20.04

DTK版本:DTK24.04.3
驱动版本:rock-5.7.1+6.2.26
DCU类型:Z100
异常描述:模型加载时候报错日志如下
详细问题描述:

Loading checkpoint shards: 100%|██████████| 4/4 [00:02<00:00,  1.75it/s]                                                                                                                                                                                
It is not recommended to quantize a loaded model. The model should be instantiated under the `init_empty_weights` context manager.                                                                                                                      
Error invalid device function at line 81 in file /data/jenkins_workspace/workspace/bitsandbytes@4/csrc/ops.cu                                                                                                                                           
2025-07-14 10:14:59,381 WARN exited: uar (exit status 1; not expected)                                                                                                                                                                                  
2025-07-14 10:15:00,385 INFO spawned: 'uar' with pid 185                                                                                                                                                                                                
2025-07-14 10:15:05,392 INFO success: uar entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
全部评论(5)
只看楼主
C
changhl
2楼

取包路径:http://112.11.119.99:18000/customized/bitsandbytes/dtk24.04.3/bitsandbytes-0.42.0%2Bdas.opt1.dtk24043-py3-none-any.whl

历史回复中的链接有误,使用该链接
2025/8/11
C
changhl
1楼
老师,您好。辛苦您这边再提供下镜像、复现步骤。
2025/7/14
网
网友GMoXGL
回复 @changhl
不好意思,这是还在开发集成阶段的公司内部镜像,我无法发送给您,我用的都是社区提供的whl包,我可以提供我环境包的版本,可以帮助你们复现吗
2025/7/14
网
网友GMoXGL
回复 @changhl

```

root@1265645a06c9:/data# pip list|grep dtk

bitsandbytes 0.42.0+das.opt1.dtk24043

flash-attn 2.6.1+das.opt2.dtk24043

paddlepaddle 2.6.1+das.opt1.dtk24043

torch 2.3.0+das.opt2.dtk24043

torch-scatter 2.1.2+das.opt2.dtk24043

torchvision 0.18.1+das.opt1.dtk24043

triton 2.1.0+das.opt1.dtk24043

xformers 0.0.25+das.opt1.dtk24043

root@1265645a06c9:/data# python3 -c "from src.attn_weights_inferencer import AttnInferencerBase;AttnInferencerBase(model_name_or_path='/opt/models',device='cuda',quantize=True,)"

Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:02<00:00, 1.67it/s]

It is not recommended to quantize a loaded model. The model should be instantiated under the `init_empty_weights` context manager.

Error invalid device function at line 81 in file /data/jenkins_workspace/workspace/bitsandbytes@4/csrc/ops.cu

```

这个代码就可以触发这个错误
2025/7/14
C
changhl
回复 @changhl
内部已经复现该bug,正在解决中,后续可以留意下该帖回复哈
2025/7/16
没有更多内容了
--
楼主
Level.2
0 帖子
楼主热帖
暂无数据