当前位置:   article > 正文

最新qwen2_moe模型加载,出现KeyError: ‘qwen2_moe‘报错解决_keyerror: 'qwen2

keyerror: 'qwen2
ValueError: The checkpoint you are trying to load has model type `qwen2_moe` 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.
  • 1

在这里插入图片描述
原因:pip中的最新版的transformers还没有更新,因此用github上的版本更新
解决方案:pip install git+https://github.com/huggingface/transformers
参考链接

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/喵喵爱编程/article/detail/870636
推荐阅读
相关标签
  

闽ICP备14008679号