Can I run a 256K context model with 8GB of VRAM?

December 4, 2026 4 answers
Asked by Good Morning

Is there a practical llama.cpp setup for running Inkling-2-Mini with a 256K context on an 8GB GPU? What are the memory and speed tradeoffs?

Answers

Small Wonder

One approach uses the BasinKV add-on with llama.cpp to compress the KV cache and keep much of it in CPU RAM. The reported setup used an Inkling-2-Mini 2.4-bits-per-weight GGUF, a 262144-token context, one parallel slot, Flash Attention, and four mixture-of-experts layers on the CPU.

The relevant cache settings were --oasiskv, --oasiskv-resident 2048, --oasiskv-cap 8, --oasiskv-index sphere, --oasiskv-beta 0.10 and --oasiskv-kv-quant wht_int4. It also used -ngl 99, -b 1024 and -ub 1024. You need a compatible llama.cpp build with the add-on wired in, not just an ordinary stock build.

The report put CPU RAM usage at roughly 10GB at 256K, so this is not an 8GB total-memory solution. Moving more expert layers to the CPU may make room for a higher-weight quant, at a possible speed cost.

Local News:

The add-on requires build integration, so check that your build actually recognizes the cache flags before trying the full configuration.

Reply to this answer
Take Five

Keep the speed numbers in context. The reported decode rate was 30 to 40 tokens per second, and prompt processing was over 716 tokens per second on a 20K-token text. That does not establish either speed with a full 256K prompt or decode speed after the context grows past 100K.

Test with the actual prompt lengths you need. CPU memory bandwidth and transfers can matter a lot once the cache is outside VRAM.

Reply to this answer
Easy Rider

That setup leans hard on compression: roughly 2.4-bit weights and a 4-bit cache. It may be fast enough to be useful, but fitting the context is not the same as preserving answer quality across it. Try retrieval questions and longer coding tasks against a higher-quality quant before committing.

Kara:

A smaller model at a higher weight quant is another option worth testing if quality matters more than keeping this particular model.

Reply to this answer
Kitchen Timer

If 128K is enough, a less aggressive setup is another comparison point. One report with an 8GB laptop GPU used a roughly 4-bit model, Q8 cache and plain llama.cpp, with 17 to 18 tokens per second at 128K. Different hardware and settings mean that is not an apples-to-apples benchmark, though.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions