AI软件下载
有趣网站推荐及实用软件下载

ValueError: The output_attentions attribute is not supported when using the attn_implementation set to sdpa. Please set it to 'eager' instead.

python应用运行报错,部分信息如下:

ValueError: The output_attentions attribute is not supported when using the attn_implementation set to sdpa. Please set it to ‘eager’ instead.

引起这个问题的主要原因就是transformers版本问题,可以尝试重新安装指定版本

先卸载

pip uninstall transformers -y

再安装4.52.4版本

pip install transformers==4.52.4

AI软件用不了?2元爽玩4090: 立即体验>>

热门大语言模型API免费体验: 立即获取>>
赞(0) 打赏
软件无法使用?点击查看常见问题说明>>

最近更新

觉得文章对你有帮助就打赏一下作者

非常感谢你的打赏,我将有更多的动力继续提供优质内容,让我们一起创建更加美好的世界!

支付宝扫一扫

微信扫一扫