成功解决RuntimeError: Failed to import transformers.models.llama.tokenization_llama_fast because of the

成功解决RuntimeError: Failed to import transformers.models.llama.tokenization_llama_fast because of the

    正在检查是否收录...

成功解决RuntimeError: Failed to import transformers.models.llama.tokenization_llama_fast because of the following error (look up to see its traceback): tokenizers>=0.13.3 is required for a normal functioning of this module, but found tokenizers==0.12.1

目录

解决问题

解决思路

解决方法

T1、pip命令

T2、conda命令

解决问题

RuntimeError: Failed to import transformers.models.llama.tokenization_llama_fast because of the following error (look up to see its traceback): tokenizers>=0.13.3 is required for a normal functioning of this module, but found tokenizers==0.12.1.

解决思路

运行时错误:导入transformer .models.llama失败。Tokenization_llama_fast,因为以下错误(查找查看其追溯):tokenizers>=0.13.3是该模块正常运行所必需的,但发现tokenizers==0.12.1。

解决方法

你使用的transformers库版本与所需的tokenizers版本不匹配导致的。根据错误消息,你的transformers版本要求tokenizers版本至少为0.13.3,但你安装的是0.12.1版本。

T1、pip命令

pip install --upgrade tokenizers

T2、conda命令

可以运行以下命令

conda install -c huggingface tokenizers

tokenllamatransformertransformerscode解决问题huggingfaceurl
  • 本文作者:李琛
  • 本文链接: https://wapzz.net/post-234.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.3W+
5
0
1
WAP站长官方

AI绘画Stable diffusion保姆级教程,看这一篇就够了「安装-配置-画图」

上一篇

json.decoder.JSONDecodeError: Unterminated string starting at: line 1 ... - Stable Diffusion报错解决方案

下一篇
  • 复制图片
按住ctrl可打开默认菜单