可能是transformers的版本太高,可以考虑降版本。 更推荐的解决方案: processor_class 替换 tokenizer_class 注意:需要CTRL Shift F tokenizer_class,全部替换掉。 参考链接:ALBEF(Align before Fuse: Vision and LanguageRepresentation Learning with Momentum Distillati) 算法阅读记录-CSDN博客