ModelScope中按照bert的代码范例调用,这个错误是什么呀?
The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization. The tokenizer class you load from this checkpoint is 'BertTokenizer'. The class this function is called from is 'SbertTokenizer'. 2022-12-02 15:01:31,811 - modelscope - INFO - The key of sentence1: first_sequence, The key of sentence2: None, The key of label: label INFO:modelscope:The key of sentence1: first_sequence, The key of sentence2: None, The key of label: label /opt/conda/lib/python3.7/site-packages/transformers/modeling_utils.py:764: FutureWarning: The device
argument is deprecated and will be removed in v5 of Transformers. "The device
argument is deprecated and will be removed in v5 of Transformers.", FutureWarning
标记器类与调用该函数的类的类型不同,看着报错的问题是由于类型不匹配导致的,建议检查一下类型是否匹配。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。