最新qwen2_moe模型加载,出现KeyError: ‘qwen2_moe‘报错解决
原因:pip中的最新版的transformers还没有更新,因此用github上的版本更新。
·
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.
原因:pip中的最新版的transformers还没有更新,因此用github上的版本更新
解决方案:pip install git+https://github.com/huggingface/transformers
参考链接
更多推荐
所有评论(0)