ImportError: cannot import name 'CausalLMOutputWithPastAndCrossAttentions' from 'transformers.modeling_outputs'

Viewed 299

I want to import pipline from transformers and I get this error. My Tensorflow version is 2.0.0 and my torch version is 1.8.1

from transformers import pipeline

That's the error message: "ImportError: cannot import name 'CausalLMOutputWithPastAndCrossAttentions' from 'transformers.modeling_outputs'"

0 Answers
Related