My attachment eats all the context
Big documents burn context fast.
Short answer
Big documents burn context fast, especially on a small context window. Abliteration reads at most the first 8,000 characters of text from each attached file, so one full file can take about half of a 4K window, and several files can fill it. Options: (1) increase the model’s context via the slider, (2) trim the document so the part you need comes first, (3) split into pieces and attach one at a time, (4) switch to a model with a bigger trained context ceiling.
Detailed explanation
How to tell it’s a problem:
When you attach a file, a chip appears with a border color:
- Default (neutral) border - under 50% of context. Fine.
- Amber border, ⚠ icon top-right - 50-90% of context. Tight but workable.
- Red border, ⚠ icon top-right - over 90%. Some content will be truncated.
The per-chip percent + warning text appear on hover (tooltip): ”⚠ Model may forget earlier messages” for amber, ”⚠ Exceeds context — some content will be truncated” for red. Above the attachment strip, an aggregate badge shows the total across all attachments: Attachments: ≈N tokens (X% of context). It turns amber from 70% and red from 90%.
If the attachments plus your typed prompt won’t fit the context minus about 2,000 tokens kept for the reply, pressing send opens a “Model context warning” dialog with the numbers. SEND ANYWAY sends with the attachment text cut to fit; cancel keeps the files staged so you can trim them.
Two limits apply before any of this: a file over 50 MB is refused, and only the first 8,000 characters of text extracted from each file are kept. For .txt and .md files the chip’s estimate counts the whole file, so a long text file can show red even though only its first 8,000 characters will be sent.
Options to fix, in order of least effort:
Option 1 - Bump the context slider.
If your model was trained for a bigger context than what’s currently allocated, use the slider. Models → ⋯ → Edit → CONTEXT SIZE → Manual → drag up. Watch the live RAM cost (“uses ~N MB extra RAM”) - you need to have that RAM free. Auto picks the largest step that fits your free RAM, so on a busy machine it can sit well below the model’s ceiling.
The slider stops at the trained context the GGUF file reports (and never goes past 128K). That number depends on the upload: for Qwen 2.5 7B Instruct, Qwen’s own GGUF reports 131,072 tokens, while bartowski’s GGUF reports 32,768.
Option 2 - Trim the document.
Open the file, delete irrelevant sections, save as a smaller file, re-attach. Because only the first 8,000 characters of each file are read, put the part you care about at the start. Especially effective for PDFs where large portions are boilerplate, appendices, references - usually the interesting content is a few pages.
Option 3 - Split and attach in turns.
Break the document into pieces of up to 8,000 characters each (a few pages), attach one per message, ask about that section only, then move on. Each file gets its own 8,000-character allowance. On Windows, attachment text is sent only with the message it was attached to; later turns carry your typed messages and the model’s replies, not the file text, so ask for what you need from each piece while it is attached. On macOS the attachment text stays in the chat history and is sent again with every later turn, so pieces add up: start a new chat when the earlier pieces are no longer needed.
Option 4 - Switch to a bigger-context model.
If a specific document workflow always blows past context, use a model trained for big context:
- Qwen 2.5 7B and larger - 128K with YaRN (the 0.5B to 3B sizes are 32K; check what your GGUF reports)
- Llama 3.1 (any size) - 128K
- DeepSeek R1 - 163,840 tokens trained, though Abliteration caps context at 128K
- Gemma 3 4B, 12B and 27B - 128K (the 1B is 32K)
Older models such as Llama 2 top out at 4K - a bad choice for document work.
Option 5 - Accept truncation.
If the document is huge and the specific part you care about is at the beginning, sometimes just letting the tail get truncated is fine. Watch the traffic light - if the first half fits comfortably, that first half is what the model reads.
Why it matters
Attachments are the fastest way to blow through context. Understanding the traffic light and having a few strategies to shrink usage keeps you productive with big documents instead of stuck at “context exceeded” errors.
In Abliteration specifically
Token counts on chips are estimates from character counts, not exact. If a chip says 40% context, don’t worry - you have headroom. If it says 85%, be cautious about long replies (the model needs some of that context for its own response).
On Windows, once the chat history’s token estimate crosses 75% of the context window (and the chat has at least four messages), Abliteration compresses the older half of history into a short summary before sending - this reclaims context space for long chats. The Windows app also does not resend old attachment text on later turns, so there an attachment only weighs on the turn it was sent with. The macOS app has no compression step and keeps attachment text in the history it sends, so on a Mac a big attachment keeps taking its share of context for the rest of the chat.
Related
- Attachment traffic light - reading the color-coded chip
- Context length - the underlying concept
- Context slider - how to bump context per model