What is Jev?

Jev is a new AI-model from the start-up TypeSafe AI. You don’t chat with it. You send a question and a list of possible answers, and Jev replies with the chosen answer including the probabilities and a confidence estimate. TypeSafe calls it a “System One model, optimized for automation”. It’s built for things like routing tickets or flagging emails, where software needs a quick decision rather than a paragraph of text. It’s a paid API. According to TypeSafe, it needed “a new architecture, a new sampler, and a new training algorithm”, and the training method is called RLCD (Reinforcement Learning for Calibrated Decisions). The point of that training is to get trustworthy confidence numbers.

Shortly after the launch, NobodyWho published a parody post, Jev in 25 lines, written by Duarte O. Carmo. It rebuilds the core idea with a small free model and about 25 lines of Python. You ask a multiple-choice question, and instead of letting the model write an answer, you look straight at the scores it gives to the letters A, B and C. The post is upfront about what it skips: no API, no synthetic training data and no RLCD calibration.

I wanted to know how well that 25-line version actually works. I ran it on four labeled datasets with two Qwen3 sizes: the tiny 0.6B model from the post and the much larger 8B.

How the 25-line version works

The script jev25.py is the 25-line version, copied from the post. Here’s what happens, step by step.

1. Load a normal, pretrained model. The script downloads Qwen3-0.6B-Q8_0.gguf and loads it with llama-cpp-python – no training, fine-tuning or cutting off of data. It’s the same model you’d chat with.

2. Write the question as a multiple-choice prompt.

<|im_start|>system
Choose one option.<|im_end|>
<|im_start|>user
Email: Payroll asks for your password on a non-company sign-in page.

A. Legitimate
B. Spam
C. Phishing<|im_end|>
<|im_start|>assistant
<think>

</think>

The important part is the end. Qwen3 normally “thinks” out loud before answering. The prompt already contains an empty, closed <think> block, so the model skips straight to answering, and the very next token it would write should be the answer letter.

3. Run one forward pass. The model computes a score (logit) for every token in its vocabulary, roughly 151,000 of them. We don’t sample or generate anything. One pass, then stop.

4. Keep only the letter scores. We pick out the logits for the tokens A, B and C and throw the rest away. A softmax over just those three turns them into probabilities that add up to 1. For the example, the 0.6B model calculates:

Legitimate Spam Phishing
0.06 0.11 0.83

5. Take the highest one. That’s the prediction, here “Phishing”.

One thing to be clear about: the answer is always one of the options. Even if the model would rather have written “Hello” than any letter, we only look at the letter scores and renormalize them, so some letter always wins. There’s no “I don’t know” output. The only hint, that the model wasn’t really choosing, is how much of its total probability landed on the letters at all. I call that letter mass in the tables below.

One practical gotcha: you need logits_all=True when loading the model. Without it, the llama-cpp-python version I used leaves model.scores full of zeros, and the trick silently gives you nonsense.

How it differs from the real Jev

From the outside, the two methods look alike. Both take a question plus options and return a pick with probabilities, without generating text. Underneath, they’re quite different:

  Jev (TypeSafe) 25-line version
Model their own model (jev-1.13), behind a paid API any off-the-shelf GGUF model, here Qwen3 0.6B / 8B
Training trained specifically for decisions, with RLCD for calibration none; a normal chat model, used as-is
Confidence meant to be calibrated, so you can set thresholds for when to act and when to escalate just the letter probabilities, renormalized; nothing makes them match reality
Question types Choice (pick one), Noul (yes/no probability), Score (position on a scale) pick one from a list only
Requests several structured questions per request one question per call
Runs in TypeSafe’s cloud locally, data never leaves your machine

So the 25-line script copies the interface idea: score the options instead of writing an answer. It doesn’t copy the parts that are supposed to make Jev good: the training and the calibration. I didn’t test the real Jev, so nothing below says how it would score on these datasets.

How I tested it

eval_jev.py runs the same prompt and scoring on real data. The datasets I used are all published on Hugging Face:

From each one, prepare_data.py takes a balanced random sample of 400 items with a fixed seed and cuts long texts to 1,500 characters. The first 20 items are kept aside as possible few-shot examples, so 380 get scored. A random guess gets 50 % on the binary tasks and 25 % on AG News. With 380 items, any accuracy number here is only accurate to roughly ±3 percentage points, so small differences between runs don’t mean much.

LLMs tend to favor certain letters, so every item is also scored once for each rotation of the option order. With two options, for example, that means once as A/B and once as B/A. That shows how much the answer depends on which letter a class happens to get.

I tried three prompts:

  • article: exactly the prompt above, “Choose one option.”
  • instructed: a short, task-specific system prompt (e.g. what counts as phishing), ending with “Answer with the letter of the correct option only.”
  • fewshot: the instructed prompt plus 4 solved examples shown as earlier chat turns.

The main runs were on an NVIDIA GPU with llama-cpp-python and 8-bit quantized models. I also ran the 0.6B model once on CPU to compare speed.

Results

Accuracy by model, original article prompt

Model Phishing SMS spam AG News SST-2 Median latency per item
Qwen3-0.6B 57.6% 43.9% 80.8% 85.3% 12–41 ms
Qwen3-8B 88.4% 83.7% 91.1% 96.6% 45–125 ms

Latency depends mostly on text length. Phishing emails are the longest, so they’re the slow end of each range.

Prompt variants: 0.6B vs 8B

Task 0.6B article 0.6B instructed 0.6B fewshot 8B article 8B instructed 8B fewshot
Phishing 57.6% 60.8% 50.0% 88.4% 89.5% 92.9%
SMS spam 43.9% 51.3% 51.1% 83.7% 92.6% 94.7%
AG News 80.8% 82.9% 65.3% 91.1% 92.6% 83.9%
SST-2 85.3% 84.7% 86.8% 96.6% 97.1% 96.3%

Letter mass and consistency (article prompt)

Letter mass is how much of the model’s total next-token probability went to the option letters. Consistent is how often the prediction stayed the same across all option orderings.

Task 0.6B mass 0.6B consistent 8B mass 8B consistent
Phishing 0.76 56% 0.94 91%
SMS spam 0.93 63% 0.99 92%
AG News 0.91 56% 0.90 91%
SST-2 0.99 89% 1.00 98%

CPU vs GPU (0.6B, article prompt)

This comes from a separate run that scored all 400 items per dataset, so the numbers aren’t exactly comparable with the tables above.

  Load time Median latency per item
CPU 2.9 s 110–177 ms
GPU 1.4 s 12–42 ms

Accuracy was practically the same on both (within about one percentage point).

What I take from this

The 0.6B model from the post is mostly a demo. It’s fine on easy tasks like movie sentiment (85 %) and news topics (81 %). But on phishing it’s barely better than a coin flip, and on SMS spam it’s worse than a coin flip (44 %). It labels most phishing emails “Legitimate” (289 of 380). Its answers also flip a lot when you just swap the order of the options: only about 56 % of phishing and AG News items get the same answer in every ordering. A quarter of its probability on phishing doesn’t even go to the letters.

The 8B model is a different story. Same trick, same code, and it lands between 84 % and 97 % with no training at all. It’s much less sensitive to option order (about 91 % of answers stay the same in every ordering, against 56 % for the 0.6B). Most of its probability goes to the letters, though on AG News it’s only 90 %, about the same as the small model. Still, with the original prompt it gets roughly 1 in 8 phishing and spam messages wrong. That’s a fine starting point, but not something I’d put in front of a real inbox without more work.

A better prompt helps the big model, not the small one. Telling the 8B model what phishing and spam actually are pushed SMS spam from 84 % to 93 %. Few-shot examples helped it a bit more on phishing and spam, but hurt AG News. For the 0.6B model, few-shot examples were a disaster: it picked the same answer for nearly everything (all 380 phishing emails became “Legitimate”).

Always being forced to choose is a real limitation. The method can’t say “none of these” and can’t tell you when the model is confused, except through the letter mass number, which the script doesn’t act on. If you use this for anything that matters, at least check letter mass and treat low values as “unsure”. This is exactly the gap the real Jev’s calibrated confidence is meant to fill.

Bottom line: The 25-line trick is real and genuinely handy, but the model size matters far more than the trick. With a tiny model it looks like it works on the one example in the post and falls apart on real data. With an 8B model it’s a decent zero-shot classifier you can set up in an afternoon. It isn’t Jev, though: there’s no training and no calibration behind the numbers.

The code

This is jev25.py from the NobodyWho post, with comments added and the output trimmed to the probabilities plus the final prediction. To try the 8B model, swap in Qwen/Qwen3-8B-GGUF and Qwen3-8B-Q8_0.gguf.

import numpy
from llama_cpp import Llama

model = Llama.from_pretrained(
    repo_id="Qwen/Qwen3-0.6B-GGUF",
    filename="Qwen3-0.6B-Q8_0.gguf",
    n_ctx=512,
    logits_all=True,  # without this, model.scores stays all zeros
    verbose=False,
)

labels = ["A", "B", "C"]
choices = ["Legitimate", "Spam", "Phishing"]
email = "Payroll asks for your password on a non-company sign-in page."
options = "\n".join(
    f"{label}. {choice}" for label, choice in zip(labels, choices, strict=True)
)
# The empty <think> block makes Qwen3 skip reasoning, so the next token is the answer letter.
prompt = f"""<|im_start|>system
Choose one option.<|im_end|>
<|im_start|>user
Email: {email}\n\n{options}<|im_end|>
<|im_start|>assistant
<think>\n\n</think>\n\n"""

# One forward pass, no generation.
model.eval(tokens=model.tokenize(text=prompt.encode(), add_bos=False, special=True))

# Scores for every vocabulary token at the last position; keep only A, B and C.
logits = model.scores[model.n_tokens - 1]
token_ids = [model.tokenize(text=label.encode(), add_bos=False)[0] for label in labels]
choice_logits = numpy.asarray([logits[token_id] for token_id in token_ids])

# Softmax over just the three letters, then pick the highest.
logprobs = choice_logits - numpy.logaddexp.reduce(choice_logits)
probabilities = numpy.exp(logprobs)

print(dict(zip(choices, numpy.round(probabilities, 3).tolist(), strict=True)))
print("Prediction:", choices[int(probabilities.argmax())])

Sergey Danilov
Sergey Danilov is a Data Scientist. His areas of expertise are time series analysis and he continuously strives to advance in the ever-changing field of data science.