19

I'm pretty new to this local LLM business and hoping to have some input from the experts. I have an AMD card with 12GB VRAM and 32GB system RAM, running Linux. Currently I have llama.cpp up and running, and I tried out models Qwen2.5-Coder-14B-Instruct-GGUF and Qwen-3-14B-GGUF. So far so good.

What I'd like help with is maximizing my context window. From what I understand, I probably have to move to MoE models, but I'm not sure about the llama.cpp config, and which model to pick; I plan to use it for coding and some light reverse engineering.

Let me emphasize something: I do not care about speed! I don't care if I have to wait 2 minutes for a reply. All I care about is the largest context window I can achieve with my hardware.

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[-] e0qdk@reddthat.com 10 points 6 days ago* (last edited 6 days ago)

I do not care about speed! I don't care if I have to wait 2 minutes for a reply.

Pretty sure you will but... if you really think you don't, you can try running your models on the CPU only. I've run Gemma4 at Q8 on a 10+ year old Xeon with no GPU and 32GB of DDR3 RAM just to prove that I could. It was slow (~5 tok/s or less with just "hello" in context), but it worked...

Prefill will drive you insane working with large contexts and an insufficiently powerful GPU though; this is the hidden killer for high RAM unified memory systems (e.g. Framework Desktop) and why I ended up buying a big honking GPU in the summer after getting into this stuff...

All I care about is the largest context window I can achieve with my hardware.

Try experimenting with the quantization size of the model and the quantization of the K/V cache. I can get ~250K with Qwen3.8-27B at Q4_K_M using cache-type-k=q8_0 and cache-type-v=q8_0 with everything fully restricted to be GPU-only on a 32GB card. (I do not recommend running a dense model that big without sufficient GPU -- it will be painfully slow -- but you're welcome to try anyway, of course; it will fit in your system RAM.)

Qwen2.5-Coder-14B-Instruct-GGUF and Qwen-3-14B-GGUF

These models are very old. Maybe consider trying TielCoder instead? (Or, CyberTiel if you get refusals.)

this post was submitted on 23 Nov 2026
19 points (88.0% liked)

LocalLLaMA

5740 readers
51 users here now

Welcome to LocalLLaMA! Here we discuss running and developing machine learning models at home. Lets explore cutting edge open source neural network technology together.

Get support from the community! Ask questions, share prompts, discuss benchmarks, get hyped at the latest and greatest model releases! Enjoy talking about our awesome hobby.

As ambassadors of the self-hosting machine learning community, we strive to support each other and share our enthusiasm in a positive constructive way.

Rules:

Rule 1 - No harassment or personal character attacks of community members. I.E no namecalling, no generalizing entire groups of people that make up our community, no baseless personal insults.

Rule 2 - No comparing artificial intelligence/machine learning models to cryptocurrency. I.E no comparing the usefulness of models to that of NFTs, no comparing the resource usage required to train a model is anything close to maintaining a blockchain/ mining for crypto, no implying its just a fad/bubble that will leave people with nothing of value when it burst.

Rule 3 - No comparing artificial intelligence/machine learning to simple text prediction algorithms. I.E statements such as "llms are basically just simple text predictions like what your phone keyboard autocorrect uses, and they're still using the same algorithms since <over 10 years ago>.

Rule 4 - No implying that models are devoid of purpose or potential for enriching peoples lives.

founded 3 years ago
MODERATORS