站点图标 AI技术聚合

decapoda-research/llama-7b-hf 的踩坑记录

使用transformers加载decapoda-research/llama-7b-hf的踩坑记录。

  1. ValueError: Tokenizer class LLaMATokenizer does not exist or is not currently imported.
    解决办法:
    https://github.com/huggingface/transformers/issues/22222
    将tokenizer_config.json中LLaMATokenizer改为LlamaTokenizer。

  2. RecursionError: maximum recursion depth exceeded while getting the str of an object.
    解决办法:
    https://github.com/huggingface/transformers/issues/22762
    使用tokenizer_config.json替换原本的tokenizer_config.json

文章出处登录后可见!

已经登录?立即刷新
退出移动版