# GPT NEO X LLM cannot perform inference

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgpt-neo-x-llm-cannot-perform-inference%2F88258%3E%5C
**Category:** Beginners\
**Created:** [May 24, 2024, 12:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgpt-neo-x-llm-cannot-perform-inference%2F88258 "2024-05-24T12:59:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srivassid](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@srivassid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsrivassid)%5C
**Post date:** [May 24, 2024, 12:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgpt-neo-x-llm-cannot-perform-inference%2F88258%2F1 "2024-05-24T12:59:25Z")

</div>

I am trying to perform inference from [GPT NEO X](https://github.com/EleutherAI/gpt-neox), but i am getting an error

`logits[:, -1].view(batch_size, -1).contiguous() TypeError: tuple indices must be integers or slices, not tuple`

Can anyone tell me how can i resolve this?

More information can be found [here](https://github.com/EleutherAI/gpt-neox/issues/1228)

Thanks
