# GPT Neo on Question Ansewring

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgpt-neo-on-question-ansewring%2F8417%3E%5C
**Category:** Beginners\
**Created:** [July 16, 2021, 9:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgpt-neo-on-question-ansewring%2F8417 "2021-07-16T09:08:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcavalheiro](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rcavalheiro](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frcavalheiro)%5C
**Post date:** [July 16, 2021, 9:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgpt-neo-on-question-ansewring%2F8417%2F1 "2021-07-16T09:08:37Z")

</div>

Hi there, I’m trying to build a QA system with gpt-neo model.

I’m using the transformers library:

```auto
from transformers import pipeline, AutoTokenizer, AutoModelForQuestionAnswering

model = AutoModelForQuestionAnswering.from_pretrained("EleutherAI/gpt-neo-2.7B") 
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neo-2.7B")

nlp = pipeline(model=model, tokenizer=tokenizer, task="question-answering")

```

I’ve got the following error:

```auto
ValueError: Unrecognized configuration class <class 'transformers.models.gpt_neo.configuration_gpt_neo.GPTNeoConfig'> for this kind of AutoModel: AutoModelForQuestionAnswering.
Model type should be one of RoFormerConfig, BigBirdPegasusConfig, BigBirdConfig, ConvBertConfig, LEDConfig, DistilBertConfig, AlbertConfig, CamembertConfig, BartConfig, MBartConfig, LongformerConfig, XLMRobertaConfig, RobertaConfig, SqueezeBertConfig, BertConfig, XLNetConfig, FlaubertConfig, MegatronBertConfig, MobileBertConfig, XLMConfig, ElectraConfig, ReformerConfig, FunnelConfig, LxmertConfig, MPNetConfig, DebertaConfig, DebertaV2Config, IBertConfig.

```

So, it seems that this model type is not compatible with the question-answering pipeline. Is there a way to add this model type? What can I do to workaround this?
