Jev in 25 Lines of Python
Build a Jev-style decision model from any GGUF model in 25 lines: choices in, probabilities out.

About Jev in 25 Lines of Python
NobodyWho strips the mystique from decision models. Load any GGUF model with llama-cpp-python, give it lettered choices in the prompt, read the logits of the next token for each letter, and normalise them into probabilities. That is the whole trick.
Why it matters: If you pay an LLM to classify support tickets, route requests or score leads, this shows the mechanic underneath the hosted decision-model APIs: a single forward pass, no generation, no fine-tuning, and the data never leaves your machine.
The post is honest about the limits too: the probabilities are not calibrated the way a trained decision model’s are. Read it before you pick between a hosted API, a local model or 25 lines of your own.
The facts
- Type
- Guides
- Tags
- AIEducation
- Listed
- September 28, 2026
More Guides
See all →- The September Cut Took 17% of My Claude Code Week. Subagents Took 48%455 sessions of logs show where a Claude Code week actually goes, and which saving tips work.
- Evidence-Driven Development: Give Your Coding Agent Something to ProveWrite a claim that can lose, break the app on purpose, and keep evidence your agent can't fake.
- Slopsquatting: Your AI Invented a Package, and an Attacker Was WaitingNearly 1 in 5 AI-suggested packages in one study did not exist. How attackers use that.
- Free the Models: Harness Design at the FrontierReplit stopped routing work for the model and let the model decide. Here are the numbers.
- UpGuard: 16,326 Supabase Databases Exposing DataThe largest study of Supabase misconfigurations: thousands of app databases readable by anyone.