[GH-ISSUE #11709] GPT-OSS 120B Large Context PDFs #69809

Closed
opened 2026-05-04 19:25:41 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Ryguy-1 on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11709

What is the issue?

GPT-OSS 120B PDF Context

When using GPT-OSS 120b (haven't tested for other models), large PDF attachments (140+ pages) appear to be cut off at a certain point, and the model is unaware of this. I understand this may be a context length constraint, but models like o3 (200k context I believe) are still able to crush this. From my understanding GPT-OSS 120b has a context length of 128k, so I don't feel like it should be that much worse. Perhaps something is wrong with file loading into context?

Also, when you follow up, the model is completely unaware that an attachment was given and thinks I merely pasted in plain text.

Image Image

Relevant log output


OS

MacOS 15.5 (24F74)

GPU

M4 Max

CPU

M4 Max

Ollama version

0.11.2

Originally created by @Ryguy-1 on GitHub (Aug 6, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11709 ### What is the issue? # GPT-OSS 120B PDF Context When using GPT-OSS 120b (haven't tested for other models), large PDF attachments (140+ pages) appear to be cut off at a certain point, and the model is unaware of this. I understand this may be a context length constraint, but models like o3 (200k context I believe) are still able to crush this. From my understanding GPT-OSS 120b has a context length of 128k, so I don't feel like it should be that much worse. Perhaps something is wrong with file loading into context? Also, when you follow up, the model is completely unaware that an attachment was given and thinks I merely pasted in plain text. <img width="1588" height="1194" alt="Image" src="https://github.com/user-attachments/assets/3c52b640-0f18-4a85-a5f4-3cde23ffbe7b" /> <img width="1578" height="1190" alt="Image" src="https://github.com/user-attachments/assets/cc77f22f-36c9-4458-90e8-1d17ff1349f9" /> ### Relevant log output ```shell ``` ### OS MacOS 15.5 (24F74) ### GPU M4 Max ### CPU M4 Max ### Ollama version 0.11.2
GiteaMirror added the bug label 2026-05-04 19:25:41 -05:00
Author
Owner

@Ryguy-1 commented on GitHub (Aug 6, 2025):

For anyone with the same issue, looks like you can go to Settings and change the context length

Image
<!-- gh-comment-id:3157111585 --> @Ryguy-1 commented on GitHub (Aug 6, 2025): For anyone with the same issue, looks like you can go to Settings and change the context length <img width="1440" height="316" alt="Image" src="https://github.com/user-attachments/assets/445e5e7d-0bc2-4622-9883-080f4901a956" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69809