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!

  • e0qdk@reddthat.com
    cake
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 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.)