# Transformers - Codex - context length of 4096 Tokens

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftransformers-codex-context-length-of-4096-tokens%2F10239%3E%5C
**Category:** 🤗Transformers\
**Created:** [September 23, 2021, 7:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftransformers-codex-context-length-of-4096-tokens%2F10239 "2021-09-23T07:23:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BalajiAJ](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BalajiAJ](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBalajiAJ)%5C
**Post date:** [September 23, 2021, 7:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftransformers-codex-context-length-of-4096-tokens%2F10239%2F1 "2021-09-23T07:23:14Z")

</div>

How does Codex, a descendant of GPT-3 allow a context length 4096 tokens while GPT-3 allows only 2048, using Transformers architecture.

I have gone through the OpenAI Codex paper, but couldn’t find any information related to it. Could anyone tell how this token limit was increased and what was the technique used?
