目录
AttributeError: 'ChatGLMTokenizer' object has no attribute 'sp_tokenizer'
AttributeError: 'ChatGLMConfig' object has no attribute 'max_sequence_length'
AttributeError: 'ChatGLMConfig' object has no attribute 'position_encoding_2d'
AttributeError: 'ChatGLMConfig' object has no attribute 'world_size'
ValueError: 150001 is not in list
AttributeError: 'ChatGLMTokenizer' object has no attribute 'sp_tokenizer'
和Transformers版本不兼容有关,最快解决办法是直接修改tokenization脚本,参见:
AttributeError: 'ChatGLMConfig' object has no attribute 'max_sequence_length'
和Transformers版本不兼容有关,最快解决办法是直接修改配置文件:
vim config.json
"max_sequence_length": 2048
AttributeError: 'ChatGLMConfig' object has no attribute 'position_encoding_2d'
和Transformers版本不兼容有关,最快解决办法是直接修改配置文件:
vim config.json
"position_encoding_2d": true
AttributeError: 'ChatGLMConfig' object has no attribute 'inner_hidden_size'
和Transformers版本不兼容有关,最快解决办法是直接修改配置文件:
vim config.json