AttributeError: ‘CLIPTextTransformer’ object has no attribute ‘_build_causal_attention_mask’
更换transformers的版本
pip install --upgrade transformers==4.25.1
即可解决
AttributeError: ‘CLIPTextTransformer’ object has no attribute ‘_build_causal_attention_mask’
更换transformers的版本
pip install --upgrade transformers==4.25.1
即可解决