Turn any local LLM into a confidence-scored classifier via logprobs, full llama.cpp recipe included

DivideHorror3217 · reddit · 2026-09-21

A Reddit user shares a practical trick to use any GGUF model as a confidence-scored classifier (JEV-style) with llama.cpp, no classifier training needed.

Key steps:

In their test, "1" scored logprob -0.0046 (99.5% confidence) on a spam sample while "0" got 0.5%. On a 4GB VRAM GPU with 170GB/s bandwidth the full run took 634ms; they estimate 30-75ms on an H200.

Original post →

More from coding & agent

coding & agent channel →