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
参考链接

Logo

欢迎加入 MCP 技术社区!与志同道合者携手前行,一同解锁 MCP 技术的无限可能!

更多推荐