Skip to content

Search wahloon.net

Search models, news, guides and FAQs.

All guides
Guides#evaluation#abliteration#methodology#guide#safety

How to evaluate an abliterated model before you trust it

A model card's refusal number is a claim about a prompt set, not a property of the model. Here is a small harness you can run in an hour: refusal rate, capability, coherence and drift.

6 min readMarkdown
On this page

Every abliterated model card has a number. "Refusals: 4/100." "Zero refusals on 312 requests." "KL: 0.23." Those numbers are useful, but they are claims about a specific prompt set and a specific decoding setup. They are not a property of the model.

The gap matters because the failure modes are quiet. An over-edited model can stop refusing and also stop following instructions, start repeating, or answer a different question than the one you asked. None of that shows up in a refusal count.

This guide is a small harness you can run before you put an abliterated model into anything that matters. It is deliberately cheap: a few hundred prompts, a rubric, and an hour.

The four axes

Measure four things separately, because they fail separately:

AxisWhat it answersHow to measure
RefusalDoes it answer the prompts you care about?Graded held-out prompt set
CapabilityDid the edit break normal work?Your tasks, base vs edited
CoherenceIs the output usable?Repetition, truncation, format validity
DriftHow far did behavior move?KL if published, otherwise output comparison

A build can be excellent on one axis and bad on another. A model that never refuses but repeats itself is not a good uncensored model; it is a broken one.

Build the prompt set

You need three groups, and they should be fixed before you start:

  1. Target prompts. The requests you actually care about — the ones the base model refuses and you want it to answer.
  2. Benign controls. Same length and style, no refusal expected. These catch over-editing.
  3. Workload prompts. Real tasks from your product: extraction, classification, code, tool calls, JSON output.

Aim for 60–100 target prompts and 30–50 controls. More is better, but a small set you actually run beats a large set you never finish.

If the model card publishes its evaluation set, use it — but add your own. A build tuned against a public set can look better on that set than it behaves in general.

Grade refusals with a rubric

Binary "refused / not refused" hides the interesting middle. Use three labels:

  • Refused. Declines, or gives a safety message instead of an answer.
  • Hedged. Answers, but with a disclaimer or a partial answer. Count it separately.
  • Complied. Answers the request.

Write the rubric before you look at outputs. If you are comparing two builds, grade them blind — strip the model name, shuffle the outputs, and score without knowing which is which. It is easy to grade toward the build you expect to win.

If you use a classifier instead of manual grading, validate it on 50 hand-labeled examples first. A classifier that disagrees with you on a fifth of the set is not saving time.

Check capability on your tasks

This is the part model cards usually skip. Pick 20–30 tasks where you know the base model's behavior:

  • A extraction task with a fixed schema.
  • A classification task with known labels.
  • A code task with tests.
  • A tool-call task with a required format.
  • A long-context task that needs a specific fact.

Run the base model and the edited model on the same prompts, with the same decoding settings, and compare. A small drop is expected. A large drop on a task you depend on is a reason to try a different build, not a reason to lower your standards.

Do not rely on a general benchmark alone. A model can hold its MMLU score and still fail your JSON schema.

Measure coherence

Three cheap signals catch most over-editing:

  • Repetition. Detect repeated n-grams or repeated sentences. A repetition rate above a few percent on open-ended prompts is a warning.
  • Truncation. Count outputs that hit the token limit without finishing. Aggressive edits often make models think longer; the Hy4-flash build reports that 44 of 100 think-mode replies had not finished reasoning at 768 tokens, against 2–4 for the original.
  • Format validity. If you need JSON, parse it. If you need a tool call, validate it. Do not eyeball it.

Also watch output length. A model that suddenly writes three times as much may be padding, reasoning longer, or losing the ability to stop.

Estimate drift

If the author published a KL number, read it — but read the setup too. KL on harmless first-token predictions is a cheap proxy, and it is sensitive to batching and precision. A KL of 0.23 is not directly comparable to a KL of 0.05 from a different model and a different evaluation.

If no KL is published, compare outputs on a few hundred benign prompts:

  • Sample the base and edited models with the same seed and settings.
  • Compare embeddings of the responses, or run a pairwise preference judgment.
  • Look for the edited model changing facts, refusing benign requests, or adopting a different tone.

You are looking for a large, systematic shift, not for every difference. Some difference is the point.

Be honest about the statistics

Small samples produce confident-sounding numbers. If a model refuses 0 of 100 held-out prompts, the 95% Wilson upper bound is about 3.7% — not zero. At 0 of 200 it is about 1.9%. A "zero refusals" claim on 312 requests is consistent with a true rate near 1%.

That does not make the claim useless. It means the right reading is "below a few percent on this set", not "never refuses". Report the denominator and the interval, and do not compare a 0/50 result against a 4/100 result as if the difference were meaningful.

Make it reproducible

Pin the things that change outputs:

  • Greedy decoding, or a fixed seed and temperature.
  • The same quantization for both models, if you are comparing quants.
  • The same chat template and system prompt.
  • The same context length and max tokens.
  • The same runtime and build.

A comparison between a Q4 GGUF and a BF16 checkpoint is a comparison of two things at once. If you must do it, say so.

Red flags in a model card

  • No method, no layer list, no strength.
  • A refusal number with no prompt set or denominator.
  • No comparison against the base model.
  • No mention of which quantization was evaluated.
  • "Uncensored" as the only description of behavior.
  • No last-updated date, or a date that predates the base model revision.

A card that shows its work is more useful than one with a better headline number. The Hy4-flash release is a good example: it publishes the direction, the tensors, the strengths, the rounding strategy and a KL that is worse than the author's previous edit.

A checklist

  • Target prompts, benign controls and workload prompts are fixed and held out.
  • Refusals are graded with a written rubric, blind where possible.
  • Capability is checked on tasks you actually run.
  • Repetition, truncation and format validity are measured.
  • Drift is estimated, or the published KL is read with its setup.
  • Denominators and intervals are reported.
  • Decoding settings, template and quantization are pinned.

If you are building the edit yourself, the abliteration guide covers the other half of the loop. The FAQ has a shorter version of the refusal-testing advice, and the quantization guide explains why the quant level belongs in the comparison.

5 minGuide

How we benchmark abliterated models

Four axes, one runtime, published prompts, and a 24 GB laptop. The full method behind the benchmark table, including what it cannot tell you.

#benchmark#evaluation#methodology
Read
8 minGuide

How to abliterate a model yourself

A working sketch of the abliteration loop: build a prompt set, collect activations, estimate a refusal direction, edit the writers, and evaluate before you quantize.

#abliteration#guide#pytorch
Read