# Error running GPT-NEO on local machine

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-running-gpt-neo-on-local-machine%2F5460%3E%5C
**Category:** Models\
**Created:** [April 13, 2021, 5:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-running-gpt-neo-on-local-machine%2F5460 "2021-04-13T05:49:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpacman](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dpacman](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdpacman)%5C
**Post date:** [April 13, 2021, 5:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-running-gpt-neo-on-local-machine%2F5460%2F1 "2021-04-13T05:49:07Z")

</div>

Hi, I’m trying to run GPT-NEO through the hugging-face interface.

```
from transformers import pipeline
generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')

```

Error: -

````
```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dpacman/anaconda3/envs/tf-gpu/lib/python3.8/site-packages/transformers/pipelines/ __init__.py", line 371, in pipeline
    framework, model = infer_framework_from_model(model, targeted_task, revision=revision, task=task)
  File "/home/dpacman/anaconda3/envs/tf-gpu/lib/python3.8/site-packages/transformers/pipelines/base.py", line 90, in infer_framework_from_model
    model = model_class.from_pretrained(model, **model_kwargs)
  File "/home/dpacman/anaconda3/envs/tf-gpu/lib/python3.8/site-packages/transformers/models/auto/auto_factory.py", line 382, in from_pretrained
    raise ValueError(
ValueError: Unrecognized configuration class <class 'transformers.models.gpt_neo.configuration_gpt_neo.GPTNeoConfig'> for this kind of AutoModel: TFAutoModelForCausalLM.
Model type should be one of BertConfig, OpenAIGPTConfig, GPT2Config, TransfoXLConfig, XLNetConfig, XLMConfig, CTRLConfig.
```
````

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsgugger)%5C
**Post date:** [April 13, 2021, 2:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-running-gpt-neo-on-local-machine%2F5460%2F2 "2021-04-13T14:08:20Z")

</div>

GPT-Neo is only available for PyTorch, not TensorFlow.
