You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/xxx/projects/JSQ/main.py", line 53, in <module>
main(args)
File "/home/xxx/projects/JSQ/main.py", line 15, in main
light_model = joint_pq(args, model, tokenizer)
File "/home/xxx/projects/JSQ/jsq/prune.py", line 45, in joint_pq
inps, outs, attention_mask, position_ids = inps.to(dev), outs.to(dev), attention_mask.to(
AttributeError: 'NoneType' object has no attribute 'to'
在尝试对Llama-2-7b-hf进行压缩时,报错如下:
初步分析,是在执行inps, outs, attention_mask, position_ids = prepare_calibration_input(model, args, dataloader, device)时,将attention_mask赋值为None类型。四个变量的值打印出来如下所示:
请问是否知道可能的错误原因及解决方式呢?谢谢~
The text was updated successfully, but these errors were encountered: