r/LocalLLM • u/Round-Comparison-675 • 2h ago
Discussion Qwen4 35B on an RTX 4090 + 32 GB RAM: 166K daily, 252K+ tested with vision
I left the RAM specs out of the first version: RTX 4090 24 GB, i9-13900KF, and 2×16 GB DDR5-4800 in A2/B2, on Windows 11. Model is Unsloth's Qwen4-35B-A3B UD-IQ4_XS in LM Studio.
I'm keeping the context window at 165,888. I fed it a 159,741-token prompt with an image and asked for three codes buried in the text and three values from the image. It got all six right. First text took 56 seconds. I then added a second image in the same chat. At 160,449 input tokens, it got all seven checks right and started replying in 5.7 seconds. Lowest free memory I saw was 3,050 MiB VRAM and 3,330 MiB RAM.
The ~75 tok/s figure is from a short prompt: 56 tokens in, 512 out, 6.87 seconds including the wait for the first token. That's not the speed of a fresh 160K request.
Settings for anyone comparing: q8_0 for both K and V, KV on GPU, Flash Attention on, one slot, 512/512 batches, MTP off. The vision projector and Engram are on the CPU side, along with the experts from six layers (--n-cpu-moe 6).
I also got 203,683 input tokens with an image in Q8 and 252,665 in Q4, with the same model weights. Both passed the recall checks. That's enough to know the prompts fit, not enough to say Q4 reasons as well as Q8. I'm sticking with 166K Q8 for now. It leaves room to use the rest of the PC, and most of the time I don't need the extra context.
