- 博客(3)
- 收藏
- 关注
原创 解决:compute_loss() got an unexpected keyword argument ‘num_items_in_batch‘
我的transformers版本为4.57.0,之前网上说回退版本,但是我用的Qwen3回退版本还会冲突。因此打开.../anaconda3/envs/.../lib/python3.11/site-packages/transformers/trainer.py,找到。把num_items_in_batch=num_items_in_batch删掉,保存,解决了。头痛砍头,脚痛砍脚(不保一定好使)
2025-12-02 23:08:49
224
原创 Qwen3部署报错ValueError: The checkpoint you are trying to load has model type `qwen3`
完整信息:ValueError: The checkpoint you are trying to load has model type `qwen3` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
2025-10-13 18:47:48
1269
哈工大操作系统开卷内容整理
2025-01-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
3