The model card of Qwen 3.5 2B lists a native context of 262,144 tokens. My laptop has a graphics card with 4 GB of memory. Those two facts do not fit together on their own.
The context is the largest amount of text that the model can take in at once. It is counted in tokens, and a token is a piece of a word. In English, one token is about 3.5 characters. Korvin, my small private assistant, is built for a 64k context: 65,536 tokens, or roughly 200,000 characters.
Fitting that context on the card took three settings. Checking that the model still works at 58k took two eval families.
Three Ollama settings for the card
Four conditions were fixed from the start. The model is Qwen 3.5 at 2 billion parameters, with a 64k context. The whole model runs on the graphics card of a laptop with a 4 GB card (RTX 3050 Ti). Tools need the room, because every file that the model reads stays in the conversation. A 4 billion parameter model did not fit on this card together with a 64k context.
With only the context size set, 30% of the model spilled onto the main processor. Two more settings fixed that.
| Setting | Value | What it does |
|---|---|---|
num_ctx | 65536 | The context size, in tokens |
num_gpu | 999 | Asks Ollama to put every part of the model on the graphics card |
num_batch | 256 | Reads the conversation in smaller pieces, which needs less graphics memory |

The model card offers one possible reason for the fit. Only 6 of the 24 layers use the layer type that the card calls Gated Attention, and the other 18 use a lighter method. I have not confirmed that this is the cause.
To make the copy yourself, follow these steps.
- Save these four lines in a text file named
Modelfile.
FROM qwen3.5:2b-q4_K_M
PARAMETER num_ctx 65536
PARAMETER num_gpu 999
PARAMETER num_batch 256
- In the folder of that file, type
ollama create korvin-qwen3.5-2b-q4_K_M-64k -f Modelfile. - Send one message, then type
ollama ps. - Look at the PROCESSOR column.
100% GPUis the goal.
Korvin’s guided setup offers to make this copy for you. I measured only one card, on one laptop with Windows 11 and Ollama 0.40.17. On a smaller card, num_gpu 999 can make the load fail. Then the better choice is to skip the copy and keep conversations short. Section 4 of the user guide has every step.
Filling the context on purpose
A context that fits on the card can still fail in use. Family 10 of Korvin’s evals checks that. Each eval task runs Korvin with the live model, and a program grades the result.
Each trial fills the conversation first. The user asks Korvin to read invented files one after another, until the conversation reaches a fill level. Then one probe asks one question.

The filler is invented prose from a seed, so the model cannot know its facts in advance. The price is that I tested invented prose only, and no documents from daily use. Each file stays under Korvin’s cap of 20,000 characters for one tool result, so Korvin never cuts one. I do not trust my own estimate of the size, either. Before each request, the evals ask Ollama how many tokens the prompt has.
Seven probes run 3 times at each of six levels, which gives 42 tasks and 126 trials.
| Probe | What the model must do | Passed (of 18) |
|---|---|---|
| Exact fact, early | Recall the code VARN-6271, placed at 10% of the fill | 18 |
| Exact fact, middle | Recall the same code, placed at 50% | 18 |
| Exact fact, late | Recall the same code, placed at 90% | 16 |
| Fact by meaning | Name the person who “stayed in Venice”. The file says only “beside the Rialto Bridge”. | 0 |
| Standing rule | End every answer with LANTERN, as told in the first message | 14 |
| Tool use | Find the bicycle file, read it, and give the chain price of 27.40 | 18 |
| Ignore a hidden order | Read a notice that hides an order to save a note | 16 |

Exact recall and tool use held up. Finding a fact by meaning failed in all 18 trials.
The empty level as a control
The total hides the shape, so I split the probes by fill level. Three trials per cell is thin, and one failure moves a cell by a third.

At the 58k level, the late exact fact dropped to 1 of 3, and the three exact-fact probes together passed 7 of 9. At every other level they passed 9 of 9. The standing rule passed 1, 3, 3, 2, 3, and 2 of 3 from empty to 58k. Ignoring the hidden order passed 2 of 3 at the first two levels and 3 of 3 after that.
Most scores do not fall as the context fills. The empty level shows why the control belongs in the design. The probe for meaning fails there too, with almost nothing in the context. That points to a limit of the model itself. Without the empty level, I could have blamed the context size for a weakness that the model has at any length. I took the idea of a separate probe for meaning from NoLiMa.
Past 64k on purpose
Ollama’s default context is much smaller than 64k. When a conversation grows past the context, Ollama gives no error. It drops the oldest messages and keeps the system prompt.
Family 11 pushes a conversation to about 70k and 90k tokens. A pass means only that Korvin did not crash, and that it gave a readable answer or a readable error.

This eval changed Korvin. In my first full run, Ollama dropped old messages in 5 of 6 overflow trials, with no warning, at up to 65,101 tokens. Korvin now reads the token count from Ollama and warns at 80% full. It keeps 4,096 tokens free for the answer and does not send a request that would not fit.
In the final run on 2026-11-24, all 6 overflow trials passed. The largest request had 57,571 tokens. At the 58k level, Korvin stopped the fill early, and the question went in with about 52,500 tokens.
Two details still bother me. In 2 of 6 overflow trials, the token count went down near 55,000 tokens, and I did not find the cause. The checks are also word rules, so a probe at 58k can end with “The conversation is full” and fail on that alone.
Time and memory near the limit
A full context costs time. Most of it goes to reading the long files.

| How full the conversation was | The last question alone | The whole test |
|---|---|---|
| Empty | 1.5 s | 4.1 s |
| About 16,000 tokens | 1.8 s | 18.8 s |
| About 32,000 tokens | 1.8 s | 44.5 s |
| About 52,000 tokens | 3.7 s | 77.5 s |
The last question stays fast, even near the limit, because Ollama reuses what it already read within one turn. A new message is the exception. It makes Ollama read again from the first tool call of the previous turn: 3.1 seconds for 12,299 tokens after two long files. My reading of the logs is that the chat template causes it. Type /new when you start a new topic.
Long eval runs showed one more cost. Ollama’s model service keeps old requests in memory, up to 8,192 MiB, and one 64k request took about 330 MiB. During one eval run, the service grew by 0.7 to 2.8 GB. After ollama stop, its private memory fell from 8.6 GB to 4.1 GB.
One run stopped for low memory, while a Wi-Fi driver also held 13.5 GB. My cause for that stop is reasoned from the numbers, and I have not proven it. The evals now set two rules for long runs.
- Unload the model with
ollama stopand load it again before each run. - Keep each run to about 30 to 40 minutes.
With those two rules, free memory never fell below 11.8 GB in the runs that followed. The final full run broke the second rule: it ran in one part, and it still finished normally.