llmrun

Best local LLMs for long context

Run open models featuring a context window of at least 128K tokens to handle large documents and full codebases easily. We rank them using the llmrun Composite Score, highlighting our top recommendation for every memory capacity.

Best for long context on

Gemma 4 26B A4B IT

Google · IQ3_S · 12 GB · up to 128K context · on RTX 5080

207.5 t/s
B

All 161 long-context models for 16 GB ↓

Also worth a look

Qwen3.5 9B

Q4_K_M · 6.6 GB · 98.1 t/s · 256K ctx

Best long-context model by memory

Highest llmrun Composite Score that fits each size with at least 128K context and 10 t/s, at a Q3 or better quant. Speed is decode tokens per second on that size's reference GPU. The last row has no memory limit: the best model whatever it needs, on the GPU plan shown. Full ranking

Long-context models that run on 16 GB161

Ranked by Composite Score, models without one after. Best quant that fits with a 16K context; speed is decode tokens per second on the reference GPU.

161 models · 125 run great · 4 run well

Score: llmrun Score, 100 = average model. Fit: how well it runs on this hardware, S best to F won't fit. Ordered by Score, recency and Fit. How ranking works

Showing compatibility for NVIDIA GeForce RTX 5080

LLM models compatible with NVIDIA GeForce RTX 5080 — ranked by Score, recency and Fit
ModelVRAMScoreFit
< 128K context fits
BF16·113.5 t/s
7.1 GBS94, Runs great
< 128K context fits
Q4_0·187.0 t/s
13.9 GBS90, Runs great
Granite Vision 4.1 4B
Q4_K_M·217.4 t/s
4.0 GBS100, Runs great
MiniCPM V 4.6
Q4_K_M·552.2 t/s
1.5 GBS100, Runs great
MiniCPM V 4.6 Thinking
Q4_K_M·552.2 t/s
1.5 GBS100, Runs great
JiRackUltra 14B
< 128K context fits
Q4_K_M·65.3 t/s
12.4 GBS85, Runs great
DeepSeek R1 0528 Qwen3 8B
< 128K context fits
Q4_K_M·113.0 t/s
7.6 GBS94, Runs great
Ornith 1.0 9B
Q4_K_M·100.5 t/s
6.5 GBS91, Runs great
JiRackUltra 1B
Q4_K_M·439.4 t/s
1.8 GBS100, Runs great
< 128K context fits
Q4_K_M·203.9 t/s
5.7 GBS100, Runs great
Chandra
< 128K context fits
Q4_K_M·106.5 t/s
8.0 GBS92, Runs great
Qwopus3.5 9B v3
Q4_K_M·98.1 t/s
6.6 GBS91, Runs great
Q4_K_M·1248.0 t/s
0.6 GBS100, Runs great
Granite Switch 4.1 8B
< 128K context fits
Q4_K_M·105.4 t/s
8.4 GBS92, Runs great
Qwen3.5 2B
Q4_K_M·352.5 t/s
1.9 GBS100, Runs great

How much memory do you need for long context?

On 8 GB the best long-context model is Gemma 4 E4B IT. At 12 GB it is Qwen3.5 9B (score 99). At 16 GB it is Gemma 4 26B A4B IT (score 106). From 24 to 32 GB it is Qwen3.8 27B (score 122). With no memory limit, the best is DeepSeek V4.1 Flash 1017 (score 133). Weights cover just part of the cost. As tokens fill the cache in your window, a complete 128K prompt may require several gigabytes beyond the model itself. The listed sizes allow space for up to a 16K context.

Frequently Asked Questions

What is the best local LLM for long context?

On 24 GB, Qwen3.8 27B is the top pick with a score of 122, running at about 40 t/s on RTX 4090. It fits up to 128K tokens of context there. On 8 GB, the best fit is Gemma 4 E4B IT. With no memory limit, the best is DeepSeek V4.1 Flash 1017. Open a model to see which GPUs and Macs run it.

Does a long context window use more memory?

The key-value cache scales linearly as token count rises, reaching sizes that can match the model's weights around 128K tokens. Techniques like cache quantization or using grouped-query attention can shrink this footprint.

Is a bigger context window always better?

Quality for info buried deep in a long prompt often slips, plus handling a lengthy request eats up time. Stick to the length you actually need instead of maxing it out.