# GPT-4 128K only has 4096 completion tokens

**URL:** <https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790>\
**Category:** API\
**Tags:** gpt-4\
**Created:** [November 20, 2023, 7:51pm UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790 "2023-11-20T19:51:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![juan\_olano](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/juan_olano/32/449154_2.png) [@juan\_olano](https://community.openai.com/u/juan_olano)\
**Post date:** [November 20, 2023, 7:51pm UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/1 "2023-11-20T19:51:07Z")

</div>

𝐀𝐧 𝐮𝐧𝐞𝐱𝐩𝐞𝐜𝐭𝐞𝐝 𝐥𝐢𝐦𝐢𝐭𝐚𝐭𝐢𝐨𝐧: 𝐆𝐏𝐓-4 𝐡𝐚𝐬 128𝐊 𝐜𝐨𝐧𝐭𝐞𝐱𝐭 … 𝐛𝐮𝐭 𝐧𝐨𝐭 𝐪𝐮𝐢𝐭𝐞 𝐬𝐨!

I am running a new experiment with GPT-4 to test the usability of its large context for the task of translation.

While doing it, I kept getting a very short answer from the model when passing it a context of 60K tokens. Initially, I thought the issue was in some function in my code. Eventually, I narrowed down the issue to the output of the model.

The model was returning only 4096 tokens.

I went ahead and set the max\_tokens to 60K and that is when I received this error:

“𝐓𝐡𝐢𝐬 𝐦𝐨𝐝𝐞𝐥 𝐬𝐮𝐩𝐩𝐨𝐫𝐭𝐬 𝐚𝐭 𝐦𝐨𝐬𝐭 4096 𝐜𝐨𝐦𝐩𝐥𝐞𝐭𝐢𝐨𝐧 𝐭𝐨𝐤𝐞𝐧𝐬”

I am using the model “gpt-4-1106-preview” and I have confirmed I have a 128K context.

So: the model can receive up to 128K input, but can only output up to 4096 tokens!

𝐓𝐡𝐢𝐬 𝐢𝐬 𝐚𝐧 𝐢𝐦𝐩𝐨𝐫𝐭𝐚𝐧𝐭 𝐥𝐢𝐦𝐢𝐭𝐚𝐭𝐢𝐨𝐧 𝐚𝐧𝐝 𝐚 𝐬𝐮𝐫𝐩𝐫𝐢𝐬𝐢𝐧𝐠 𝐫𝐞𝐯𝐞𝐥𝐚𝐭𝐢𝐨𝐧!

Has anyone else found this limitation?

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Foxalabs](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/foxalabs/32/738355_2.png) [@Foxalabs](https://community.openai.com/u/Foxalabs)\
**Post date:** [November 20, 2023, 7:54pm UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/2 "2023-11-20T19:54:37Z")

</div>

The GPT-4-Turbo model has a 4K token output limit, you are doing nothing wrong in that regard.

The more suitable model would be GPT-4-32K, but I am unsure if that is now in general release or not.

If you go to the playground [https://platform.openai.com/playground?mode=chat](https://platform.openai.com/playground?mode=chat)  
and ensure you art in Chat Mode, select Models and Show more models, that should give you a list of everything you have access to.

---

<div class="post-metadata">

**Author:** ![juan\_olano](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/juan_olano/32/449154_2.png) [@juan\_olano](https://community.openai.com/u/juan_olano)\
**Post date:** [November 20, 2023, 8:02pm UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/3 "2023-11-20T20:02:06Z")

</div>

Thanks for the confirmation @Foxalabs - I was trying to find this limitation in the documentation of the API but have not been able to.

Thanks again!

Juan

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/719663_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [November 21, 2023, 12:04am UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/4 "2023-11-21T00:04:11Z")

</div>

> [@juan\_olano](#):
>
> I kept getting a very short answer

The models are trained and retrained more recently to give a short unsatisfactory answer. That saves tokens and computations for ChatGPT users, but for those willing to pay for quality (of olde) we are kind of hosed.

The AI model is unaware of your max\_token setting or its available context length. The output would be cut off mid-sentence if the token limit was actually reached, but instead the AI is just being done with its thought and not performing your task in a satisfactory manner.

You’ll also get plenty of denials that OpenAI has programmed in to fine-tuning when you try to prompt for more output. Absolutely intentional nerfing.

---

<div class="post-metadata">

**Author:** ![dignity\_for\_all](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dignity_for_all/32/300058_2.png) [@dignity\_for\_all](https://community.openai.com/u/dignity_for_all)\
**Post date:** [November 21, 2023, 12:24am UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/5 "2023-11-21T00:24:13Z")

</div>

I’ve noticed that the recently released “gpt-4-1106-preview” model exhibits strange behavior, which seems to be due to some odd fine-tuning.

Despite passing all conversation history as a payload when accessing through the API, the assistant claims it cannot refer to past conversation history for nonsensical reasons.

After I persistently urged, the assistant finally admitted to the context length and occasionally referenced past statements.

It feels as if it’s intentionally generating token counts when accessed via the API.

Also, as noted above, ChatGPT often generates very short sentences, but it is odd that it generates unnecessarily long sentences when accessed via the API.

Furthermore, it is also strange that this does not happen with Playground.

I also feel this is an intentional nerf.

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/719663_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [November 21, 2023, 1:19am UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/6 "2023-11-21T01:19:34Z")

</div>

the -1106 preview is more verbose up to its 500 tokens or so, but you’ll also find it is less focused on the task and giving less concrete or substantial answers. It looks more appealing on the surface, but it’s not going to perform your “rewrite 3000 tokens into a different 3000 tokens” (which is actually a lot of text, more than a chat user might expect to read, but certainly a case for use of the model to perform a specific task).

---

<div class="post-metadata">

**Author:** ![dignity\_for\_all](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dignity_for_all/32/300058_2.png) [@dignity\_for\_all](https://community.openai.com/u/dignity_for_all)\
**Post date:** [November 21, 2023, 3:36am UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/7 "2023-11-21T03:36:05Z")

</div>

Yes, indeed, language models like this one have use cases beyond just chatting, such as RAG and other language tasks.

What I experienced was specifically related to its use as a chat model.

I acknowledge that I should have paid more attention to the theme here, which was focused on completions.  
I will be more careful in the future. Thank you for pointing this out.

---

<div class="post-metadata">

**Author:** ![BorgCube](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/borgcube/32/260360_2.png) [@BorgCube](https://community.openai.com/u/BorgCube)\
**Post date:** [November 26, 2023, 3:48pm UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/8 "2023-11-26T15:48:54Z")

</div>

Ouch! This is extremely disappointing as I’ve been awaiting a GPT 4-model with larger capacity to make my new app work…

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [December 19, 2023, 5:21pm UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/9 "2023-12-19T17:21:12Z")

</div>

As this topic has a selected [solution](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/2), closing topic.

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [February 27, 2024, 4:48pm UTC](https://community.openai.com/t/gpt-4-128k-only-has-4096-completion-tokens/515790/10 "2024-02-27T16:48:22Z")

</div>


