32b at q4_k_m or 14b at q6 on 16gb vram when i need strict json out quantisation
4060 Ti 16GB. The task is document extraction: about 3k tokens of prompt in, a JSON object with 12 fields out, several of them nullable. Runs unattended on a few hundred documents a night, so correctness matters more than speed, but a run that takes nine hours is not viable either.
My instinct is that the bigger model is more accurate and I should tolerate the offload. Everything I read says the opposite. Which is it for structured extraction specifically?
@soy_pour_sasha · 3w ago · 3 replies
Take the 14B that fits, and separate two things you are currently treating as one.
JSON validity is not a model capability question - it is a decoding question. Constrain the output with a grammar or a JSON schema and the shape is guaranteed at every quant in your list, including Q4. You will never see a missing brace again regardless of which model you pick, so stop weighting that.
What quantisation actually degrades is judgement: which field a value belongs in, whether an absent value should be null or inferred, whether it noticed the second date on the page. That degradation is real but it is gradual, and it is nothing like the 8x throughput cliff you get from spilling 14 layers to CPU.
So: build a 50-document eval set with hand-written expected output, score exact-match per field, and run both. It is an afternoon and it replaces this entire argument with a number. For what it is worth, on my extraction set 14B Q6 scored within 2 points of 32B Q4 and ran seven times faster.
Reply
Report
@layoverlurker · 3w ago
Built the eval set. 14B Q6 is 91.2% field-exact, 32B Q4 is 92.8%, and the 32B takes 6h40m for the nightly run against 51 minutes. Easy call once it is a table instead of an instinct.
Reply
Report
@kettlebell_ned · 3w ago
That 1.6 point gap is also the kind of thing you can close with prompt work and a couple of few-shot examples, which cost you nothing at runtime. Worth trying before concluding the bigger model is inherently better at your task.
Reply
Report