For instance, you'll see this error in the following example because there is no GPT2 for question answering: | |
from transformers import AutoProcessor, AutoModelForQuestionAnswering | |
processor = AutoProcessor.from_pretrained("openai-community/gpt2-medium") | |
model = AutoModelForQuestionAnswering.from_pretrained("openai-community/gpt2-medium") | |
ValueError: Unrecognized configuration class for this kind of AutoModel: AutoModelForQuestionAnswering. |