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

软件催更及1对1人工答疑支持: https://nuowa.net/1806
赞(0) 打赏
软件无法使用?点击查看常见问题说明>>

最近更新

UV包管理器用法基础教程

UV是一个用 Rust 编写的高性能工具,旨在替代 Python 传统的包管理工具链,速度比 pip 和 Conda 快数十甚至上百倍。 安装 uv 你可以通过一条命令安装 uv: 安装后,...

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

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

支付宝扫一扫

微信扫一扫