I do account work at an insurance agency and set up AI workflows there, so I look at this as token cost versus paid time. For the boring repetitive stuff, local or cheap tokens make a lot of sense because the volume is where the bill sneaks up on you. I still wouldn't take the person out of it for anything client-facing though, someone has to read the output before it goes out. At home I run a 14B on a single 3080 and it's plenty for a lot of the drafting and summarizing, the speed isn't the problem for that kind of work.
One thing that helped me was speculative decoding with a tiny draft model in llama.cpp. On a 3080 with a 14B at q6, a 0.5B draft took it from about 14 to 19 tok/s and GSM8K didnt move outside noise. On my build I had to pass --spec-type draft-simple to get it working. Wont get you to 50 on a 27B with 8gb vram tho, a lot of that model is gonna sit in system ram. If you need that speed for agent loops Id honestly try a smaller model that fits fully on the card.
I do IT and AI stuff at work and set up a few things like this, couple thoughts. Id convert the gaming PC instead of trying to make 16gb of system ram work, the GPU is what makes it usable. On my 3080 10gb a 14B at q4 runs around 18 tok/s which is plenty for sorting email and drafting short docs. Bigger thing tho, have it draft and sort but keep a person reading before anything actually gets sent. Thats where it saves the most time without making a mess with donors or board members.
I build software for contractor type workflows and the biggest thing is the techs actually trusting it, so I'd have it always show which manual page or repair record the answer came from so they can check it quick before acting on it.
For 5 users on one box, if the model ends up partly offloaded to CPU look at GGML_OP_OFFLOAD_MIN_BATCH in llama.cpp. Setting it to 128 took us from about 57 to 135 tok/s at 32 concurrent users on a 14B with some layers on CPU, single user didn't change. At 5 users the gain will be smaller, haven't measured that part.
Nice test. With 10 checks though, 8/10 vs 7/10 is basically one task, so I wouldn't read too much into 9B vs 4B yet unless it holds over more runs. When we compared quants on the full HumanEval (164) Q5/Q6/Q4 landed at 132/131/129, which is just noise.
Also worth logging finish_reason on every run. We had a GSM8K run that looked like 76.6% and it was really 95.3% once the token cap went from 320 to 1024, a lot of the "misses" were just getting cut off. Did the Mimo 0/10 look like real wrong answers or was it just not following the tool format?
Fair point. Our q4 vs q8 KV check was only on the 4B at 256K with 10 items (q8 7/10, q4 6/10), way too small to rule out a real drop. Haven't tested the 27B or coding with q4 KV at all, so I'd treat q8 KV as the safer default until there's a proper paired test.
Fun_Jaguar8231 is right about Q6. On my 14B with llama.cpp, Q6_K vs F16 came out MMLU 0.772 vs 0.770 with about 0.7% more perplexity, and it ran 6.5x faster. I also did HumanEval on Q5_K_M, Q6_K and an imatrix Q4_K_M and they landed at 132, 131 and 129 passes, which is basically noise. I never tested below 4-bit though, so your Q3 result is useful. Did you check whether the Q3 data extraction misses were consistent across runs or random?
Nice, thats a quick turnaround. Agree on ppl being a smoke detector, I only trust it paired with an actual task score. The test that checks clean runs dont warn is a good call too. If we end up building something for the execution path that holds up I'll share it.
Seeing the same thing on my 14B with llama.cpp. HumanEval-164 was 132 for Q5_K_M, 131 for Q6_K and 129 for Q4_K_M imat, which is basically noise at that sample size. I never tested below 4-bit though, so I can't say where it actually starts to break. Agree with the point about repeated runs, a single pass can't separate gaps that small.
Good to see perplexity paired with task accuracy. For what it's worth, on my 14B (llama.cpp) Q6_K vs F16 was only about +0.7% perplexity and MMLU came out 0.772 vs 0.770, so the small ppl shift really didn't show up in the task score. The other thing that bit me was generation caps: my GSM8K went from 76.6% to 95.3% just by raising the cap from 320 to 1024, it was mostly truncation. If you ever add generative evals I'd log finish_reason so length stops don't get counted as wrong answers.
I haven't tried that 27B or the IQ2, so I can't say which wins. On my 14B, Q6 vs F16 was basically a wash (MMLU 0.772 vs 0.770), so Q6 is usually a safe bet. For a test suite I'd run a small set of your own real tasks, plus something like GSM8K or HumanEval if you want numbers. Log finish_reason too, because truncation and formatting misses in the grader made my scores look way worse than they were.
One thing I learned the hard way: GGML_OP_OFFLOAD_MIN_BATCH=128 was a multi-user win, not a single-user one. On my 14B Q6_K with 40/48 layers on GPU, 32-user throughput went 57 to 135 tok/s, but single-user speed didn’t move. So for the docx agent I’d benchmark end-to-end before shuffling hardware around.
Did you log finish_reason/length-stops for these runs? In my 14B GSM8K test, the same questions scored 76.6% with a 320-token cap vs 95.3% at 1024, mostly from truncation. Separating stopped-short from wrong answers made the token-efficiency comparison a lot more useful for me.
I haven't tested the multi-agent accuracy side, but I've seen parallel throughput move quite a bit on llama.cpp. On the 14B Q6_K with 40/48 layers on GPU, setting GGML_OP_OFFLOAD_MIN_BATCH=128 took 32-user throughput from 57 to 135 tok/s; single-user speed was unchanged. The default op offload copies CPU-layer weights to GPU at larger batches, which cost more than it saved when the model didn't fit.
Nice to see the MTP result with the latency tradeoff called out. In my testing, a 0.5B Q8 draft took the 14B Q6_K from about 14.1 to 19.1 tok/s, roughly 35%, with GSM8K unchanged within noise. Different setup and speculation method, but the end-to-end tradeoff is the part I like seeing measured.
Useful number. On HumanEval-164 with Qwen2.5-14B I got Q5_K_M 132, Q6_K 131, Q4_K_M-imat 129 — basically within noise. I'd want the same harness and temperature before comparing an 81% claim across models.
This matches what I've seen on a 14B. On Qwen2.5-14B, Q6_K vs F16 was 0.772 vs 0.770 on MMLU with about +0.72% perplexity, and HumanEval across Q4/Q5/Q6 landed within noise of each other. The bit width of the weights wasn't what moved the needle for me — token caps and the answer grader did. On GSM8K I got 76.6% with a 320-token cap and 95.3% with 1024 on the same questions.
Fair point, and checking finish_reason is a cleaner way to do it than I did. To be clear on the numbers, 76.6% was at a 320-token cap and 95.3% (122/128) was the same questions at a 1024 cap, so the gap itself was the truncation. I didn't log finish_reason on those runs, though, so I can't say for sure none of the 1024 runs were cut off. I'll add that to the harness.
On the low quant worry, my own numbers are only for a 14B dense model, so take them as a rough data point. Qwen2.5-14B on HumanEval-164 solved 132 at Q5_K_M, 131 at Q6_K and 129 at Q4_K_M with an imatrix, which is within noise. Below 4-bit I haven't tested anything, so I can't say how much the IQ2 and IQ3 quants cost on a bigger MoE.
Update: I reran the question-placement test properly, since the five configs above were ones that had already failed. 10 fresh, unselected trials at about 515K tokens, same 4B and 3080, each prompt run both ways.
Question before the document: 9/10
Question only after: 2/10
All 7 disagreeing pairs favored question-first (exact McNemar p = 0.016)
Peak VRAM about 8.0 GB, 146 MiB in shared memory
Still a known prompting technique, not anything new. But for this model, a lot of the gap between the context it can hold and the context it can actually use with decoys around is just where the question goes.
The prefix cache one is a great catch. Another trap I hit was the output token cap. On GSM8K I got 76.6% with a 320 token cap and 95.3% at 1024 with the same model, so a lot of my early numbers were measuring truncation, not the model.
Does llm-assay flag runs where outputs hit the max token limit?
One rough data point from my own testing, Qwen2.5-14B in llama.cpp: Q6_K vs F16 on MMLU was 0.772 vs 0.770, with perplexity up about 0.7%. On HumanEval (164 problems), Q5_K_M solved 132, Q6_K 131 and Q4_K_M with an imatrix 129, which is within noise.
So for a 14B on those tests it wasn't a degree level drop, more like a couple of questions either way. Smaller models may be more sensitive, so if it matters for your use case, test on your own task.
Yeah, that's the part that worries me too. One prompt change taking it from 0/5 to 5/5 makes me think a lot of long context scores are partly measuring prompt format.
The 2 GB saving is exactly why I tested it. On this card an f16 cache doesn't even fit at 256K, so q4_0 holding up is what makes the long runs possible at all.
I do account work at an insurance agency and set up AI workflows there, so I look at this as token cost versus paid time. For the boring repetitive stuff, local or cheap tokens make a lot of sense because the volume is where the bill sneaks up on you. I still wouldn't take the person out of it for anything client-facing though, someone has to read the output before it goes out. At home I run a 14B on a single 3080 and it's plenty for a lot of the drafting and summarizing, the speed isn't the problem for that kind of work.
One thing that helped me was speculative decoding with a tiny draft model in llama.cpp. On a 3080 with a 14B at q6, a 0.5B draft took it from about 14 to 19 tok/s and GSM8K didnt move outside noise. On my build I had to pass --spec-type draft-simple to get it working. Wont get you to 50 on a 27B with 8gb vram tho, a lot of that model is gonna sit in system ram. If you need that speed for agent loops Id honestly try a smaller model that fits fully on the card.
I do IT and AI stuff at work and set up a few things like this, couple thoughts. Id convert the gaming PC instead of trying to make 16gb of system ram work, the GPU is what makes it usable. On my 3080 10gb a 14B at q4 runs around 18 tok/s which is plenty for sorting email and drafting short docs. Bigger thing tho, have it draft and sort but keep a person reading before anything actually gets sent. Thats where it saves the most time without making a mess with donors or board members.
I build software for contractor type workflows and the biggest thing is the techs actually trusting it, so I'd have it always show which manual page or repair record the answer came from so they can check it quick before acting on it.
For 5 users on one box, if the model ends up partly offloaded to CPU look at GGML_OP_OFFLOAD_MIN_BATCH in llama.cpp. Setting it to 128 took us from about 57 to 135 tok/s at 32 concurrent users on a 14B with some layers on CPU, single user didn't change. At 5 users the gain will be smaller, haven't measured that part.
Nice test. With 10 checks though, 8/10 vs 7/10 is basically one task, so I wouldn't read too much into 9B vs 4B yet unless it holds over more runs. When we compared quants on the full HumanEval (164) Q5/Q6/Q4 landed at 132/131/129, which is just noise.
Also worth logging finish_reason on every run. We had a GSM8K run that looked like 76.6% and it was really 95.3% once the token cap went from 320 to 1024, a lot of the "misses" were just getting cut off. Did the Mimo 0/10 look like real wrong answers or was it just not following the tool format?
Fair point. Our q4 vs q8 KV check was only on the 4B at 256K with 10 items (q8 7/10, q4 6/10), way too small to rule out a real drop. Haven't tested the 27B or coding with q4 KV at all, so I'd treat q8 KV as the safer default until there's a proper paired test.
Fun_Jaguar8231 is right about Q6. On my 14B with llama.cpp, Q6_K vs F16 came out MMLU 0.772 vs 0.770 with about 0.7% more perplexity, and it ran 6.5x faster. I also did HumanEval on Q5_K_M, Q6_K and an imatrix Q4_K_M and they landed at 132, 131 and 129 passes, which is basically noise. I never tested below 4-bit though, so your Q3 result is useful. Did you check whether the Q3 data extraction misses were consistent across runs or random?
Nice, thats a quick turnaround. Agree on ppl being a smoke detector, I only trust it paired with an actual task score. The test that checks clean runs dont warn is a good call too. If we end up building something for the execution path that holds up I'll share it.
Seeing the same thing on my 14B with llama.cpp. HumanEval-164 was 132 for Q5_K_M, 131 for Q6_K and 129 for Q4_K_M imat, which is basically noise at that sample size. I never tested below 4-bit though, so I can't say where it actually starts to break. Agree with the point about repeated runs, a single pass can't separate gaps that small.
Good to see perplexity paired with task accuracy. For what it's worth, on my 14B (llama.cpp) Q6_K vs F16 was only about +0.7% perplexity and MMLU came out 0.772 vs 0.770, so the small ppl shift really didn't show up in the task score. The other thing that bit me was generation caps: my GSM8K went from 76.6% to 95.3% just by raising the cap from 320 to 1024, it was mostly truncation. If you ever add generative evals I'd log finish_reason so length stops don't get counted as wrong answers.
I haven't tried that 27B or the IQ2, so I can't say which wins. On my 14B, Q6 vs F16 was basically a wash (MMLU 0.772 vs 0.770), so Q6 is usually a safe bet. For a test suite I'd run a small set of your own real tasks, plus something like GSM8K or HumanEval if you want numbers. Log finish_reason too, because truncation and formatting misses in the grader made my scores look way worse than they were.
One thing I learned the hard way: GGML_OP_OFFLOAD_MIN_BATCH=128 was a multi-user win, not a single-user one. On my 14B Q6_K with 40/48 layers on GPU, 32-user throughput went 57 to 135 tok/s, but single-user speed didn’t move. So for the docx agent I’d benchmark end-to-end before shuffling hardware around.
Did you log finish_reason/length-stops for these runs? In my 14B GSM8K test, the same questions scored 76.6% with a 320-token cap vs 95.3% at 1024, mostly from truncation. Separating stopped-short from wrong answers made the token-efficiency comparison a lot more useful for me.
I haven't tested the multi-agent accuracy side, but I've seen parallel throughput move quite a bit on llama.cpp. On the 14B Q6_K with 40/48 layers on GPU, setting GGML_OP_OFFLOAD_MIN_BATCH=128 took 32-user throughput from 57 to 135 tok/s; single-user speed was unchanged. The default op offload copies CPU-layer weights to GPU at larger batches, which cost more than it saved when the model didn't fit.
Nice to see the MTP result with the latency tradeoff called out. In my testing, a 0.5B Q8 draft took the 14B Q6_K from about 14.1 to 19.1 tok/s, roughly 35%, with GSM8K unchanged within noise. Different setup and speculation method, but the end-to-end tradeoff is the part I like seeing measured.
Useful number. On HumanEval-164 with Qwen2.5-14B I got Q5_K_M 132, Q6_K 131, Q4_K_M-imat 129 — basically within noise. I'd want the same harness and temperature before comparing an 81% claim across models.
This matches what I've seen on a 14B. On Qwen2.5-14B, Q6_K vs F16 was 0.772 vs 0.770 on MMLU with about +0.72% perplexity, and HumanEval across Q4/Q5/Q6 landed within noise of each other. The bit width of the weights wasn't what moved the needle for me — token caps and the answer grader did. On GSM8K I got 76.6% with a 320-token cap and 95.3% with 1024 on the same questions.
Fair point, and checking finish_reason is a cleaner way to do it than I did. To be clear on the numbers, 76.6% was at a 320-token cap and 95.3% (122/128) was the same questions at a 1024 cap, so the gap itself was the truncation. I didn't log finish_reason on those runs, though, so I can't say for sure none of the 1024 runs were cut off. I'll add that to the harness.
On the low quant worry, my own numbers are only for a 14B dense model, so take them as a rough data point. Qwen2.5-14B on HumanEval-164 solved 132 at Q5_K_M, 131 at Q6_K and 129 at Q4_K_M with an imatrix, which is within noise. Below 4-bit I haven't tested anything, so I can't say how much the IQ2 and IQ3 quants cost on a bigger MoE.
One more update, at the top of what this 4B fits on the card: 10 fresh trials at about 710K tokens, question before and after the document.
A paired question-last run on the same ten documents is going now.
Write-up: https://andrewroseit.com/posts/e21o-question-first-multikey-4b-704k/
Update: I reran the question-placement test properly, since the five configs above were ones that had already failed. 10 fresh, unselected trials at about 515K tokens, same 4B and 3080, each prompt run both ways.
Still a known prompting technique, not anything new. But for this model, a lot of the gap between the context it can hold and the context it can actually use with decoys around is just where the question goes.
Write-up: https://andrewroseit.com/posts/e21n-paired-question-first-multikey-4b-512k/
The prefix cache one is a great catch. Another trap I hit was the output token cap. On GSM8K I got 76.6% with a 320 token cap and 95.3% at 1024 with the same model, so a lot of my early numbers were measuring truncation, not the model.
Does llm-assay flag runs where outputs hit the max token limit?
One rough data point from my own testing, Qwen2.5-14B in llama.cpp: Q6_K vs F16 on MMLU was 0.772 vs 0.770, with perplexity up about 0.7%. On HumanEval (164 problems), Q5_K_M solved 132, Q6_K 131 and Q4_K_M with an imatrix 129, which is within noise.
So for a 14B on those tests it wasn't a degree level drop, more like a couple of questions either way. Smaller models may be more sensitive, so if it matters for your use case, test on your own task.
Yeah, that's the part that worries me too. One prompt change taking it from 0/5 to 5/5 makes me think a lot of long context scores are partly measuring prompt format.
The 2 GB saving is exactly why I tested it. On this card an f16 cache doesn't even fit at 256K, so q4_0 holding up is what makes the long runs possible at all.
End of this list.
Back to top