GPT2-Chinese报错处理记录!
- 共 5,944 次检阅

UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 10: illegal multibyte sequence

make_vocab.py

  22行  f = open(args.raw_data_path, 'r',encoding='utf-8')
AttributeError: module transformers has no attribute modeling_gpt2

解决方法为把transformers版本降为2.1.1

pip install transformers=2.1.1

 

分享到:

这篇文章有2条评论

  1. NO:2 / 發布於 - 2022-2-13 #1 回复

    博客经营得不错啊,大赞

发表评论