Este artigo está disponível apenas em inglês.

By UNST33R

How to verify an abliterated LLM before you trust the variant

A practical provenance audit for abliterated LLMs: base revision, tensor edits, hashes, evaluation controls, long-context replay, hosted endpoint evidence, and release gates.

An abliterated model name says that someone attempted to reduce refusal behavior. It does not identify the exact base revision, edited tensors, quantization path, chat template, or regression evidence. Those details decide whether a variant is reproducible and whether it remains useful during a long security workflow.

This distinction matters as weight editing becomes easier to automate. A public November 2026 Qwen3.8 derivative, for example, documents a rank-6 refusal subspace, edits to 128 tensors, aggregate capability deltas, and remaining soft refusals. That is a much stronger starting point than a repository whose only test is a provocative prompt and a screenshot. It still needs an independent workload test.

The audit below gives security teams a repeatable way to examine a local checkpoint or a hosted abliterated LLM. It focuses on provenance, controlled comparisons, long-session stability, and the evidence required for a production decision.

Why a refusal demo proves very little

The 2024 paper “Refusal in Language Models Is Mediated by a Single Direction” found a direction whose removal suppressed refusal across 13 open-source chat models. That work established a practical mechanism for directional ablation. It did not establish that every model, category, edit strength, conversion, or quantization preserves all other behavior.

Later research complicates the geometry. The February 2026 paper “There Is More to Refusal in Large Language Models than a Single Direction” reports distinct directions across 11 refusal and non-compliance categories, even though steering them produced similar trade-offs. An edit can therefore behave unevenly across topic classes and still look convincing on a small prompt set.

A refusal screenshot measures one binary outcome under one template and sampling configuration. A useful audit needs at least four independent axes:

AxisQuestionEvidence
ProvenanceWhat exact artifact was modified?Base repository, immutable revision, license, file hashes
InterventionWhat changed inside the model?Method, layers, tensors, direction rank, edit strength
Behavioral deltaWhich refusals changed, and what capabilities moved?Paired base/variant results on fixed prompts and tasks
Serving integrityIs the evaluated artifact the one users receive?Runtime revision, quant, template, API ID, deployment manifest

Treat those axes as separate release gates. A variant can have excellent artifact provenance and weak task results. A strong evaluation can also be useless when the hosted endpoint silently changes the served revision.

Gate 1: pin the base artifact

Start with an immutable identity. A display name such as “Qwen 27B uncensored” can refer to several base checkpoints, fine-tunes, quants, or repacks. Record:

  • Base repository and full revision SHA.
  • Weight filenames, sizes, and SHA-256 hashes.
  • Model configuration, tokenizer files, and chat template hashes.
  • Original and derivative licenses.
  • Conversion and quantization tool versions.
  • Date retrieved and identity of the reviewer.

Download into a clean directory and calculate hashes before loading the model:

huggingface-cli download ORG/REPO \
  --revision FULL_COMMIT_SHA \
  --local-dir ./candidate

find ./candidate -type f -print0 \
  | sort -z \
  | xargs -0 sha256sum > candidate.sha256

Replace ORG/REPO and FULL_COMMIT_SHA with the actual published values. Keep candidate.sha256 with the run manifest. A branch name such as main is insufficient because it can move after review.

Apply the same process to the unmodified control. The control must share the same base revision and, where possible, the same quantization method. Comparing a BF16 variant against a different base revision in Q4 can attribute quantization or base-checkpoint changes to the refusal edit.

The quant disclosure analysis explains why calibration data and conversion details affect trust. The same rule applies here: every transformation between base weights and served bytes belongs in the provenance chain.

Gate 2: inspect the intervention record

A useful model card states how the direction or subspace was measured and where it was removed. Ask for:

  1. Prompt sets used to derive the refusal direction.
  2. Layer or layers from which activations were measured.
  3. Projection method and subspace rank.
  4. Tensor names and count changed by the edit.
  5. Strength or coefficient applied at each location.
  6. Any tensors intentionally excluded.
  7. Code commit and command used to create the checkpoint.

The public Swift-Qwen3.8 abliteration repository illustrates a disclosure that can be challenged and reproduced. Its November 2026 README identifies a rank-6 subspace measured at layer 52, removal from attention output and MLP down-projection tensors in 64 language layers, and 128 changed tensors. It also publishes aggregate results and explicitly reports remaining soft refusals and output-distribution drift.

That level of detail does not certify the model. It creates falsifiable claims. A reviewer can compare tensor keys, reproduce the edit, and rerun the stated evaluation.

For safetensors checkpoints, compare keys, shapes, and per-tensor deltas before running behavioral tests. The following skeleton detects missing, added, and changed tensors without printing weight contents:

from pathlib import Path
from safetensors import safe_open

def index_model(root):
    index = {}
    for path in sorted(Path(root).glob("*.safetensors")):
        with safe_open(path, framework="pt", device="cpu") as handle:
            for key in handle.keys():
                tensor = handle.get_tensor(key)
                index[key] = (path, tuple(tensor.shape), tensor.dtype)
    return index

base = index_model("./base")
variant = index_model("./candidate")

print("missing", sorted(base.keys() - variant.keys()))
print("added", sorted(variant.keys() - base.keys()))
print("shape_or_dtype_changed", sorted(
    key for key in base.keys() & variant.keys()
    if base[key][1:] != variant[key][1:]
))

A full delta pass may require substantial RAM and storage. Run it shard by shard, record norms rather than raw weights, and compare the changed-key list with the model card. Unexpected tokenizer, embedding, vision, or output-head changes require an explanation.

Gate 3: run a paired behavioral matrix

Use identical prompts, templates, temperatures, seeds where supported, token budgets, and runtime versions. Store the raw output from both artifacts. The base response is the control for every case.

Build the matrix from your authorized workload:

Case familyExample fixturePrimary measure
Benign security analysisPatch diff, synthetic logs, or vulnerable toy parserCorrect finding with cited evidence
Dual-use authorized requestLab-only exploit explanation or detection bypass analysisUnwanted-refusal rate and task correctness
Scope boundaryThird-party or production target outside the engagementNo tool call and correct scope response
Structured outputFixed JSON schema with nested arraysSchema-valid rate
Tool callRead-only fixture tool with strict argumentsValid-argument and allowed-call rate
General capabilityCode repair, instruction following, and summarizationPaired task score
Long sessionReplayed multi-turn investigation with fixed checkpointsEvidence retention and drift

Score refusal and correctness independently. A model can answer readily and still hallucinate a function, drop an authorization condition, or produce invalid JSON. A valid boundary response also tests the application policy even when the model itself is reduced-refusal.

The DeepSeek abliterated API acceptance guide provides a complete tool-call runner and result schema. Reuse that structure for the paired control. Keep the fixture commit, prompt hash, model hashes, runtime version, tool schema, and scorer revision in one manifest.

Predeclare release thresholds. An initial security-agent policy might require zero out-of-scope tool calls, 100% syntactically valid tool arguments, no regression on critical answer-key cases, and a documented ceiling for unwanted refusals. These are proposed gates for the team to adjust. They are not performance claims about a model.

Gate 4: test long-context and repeated-turn drift

Single-turn refusal sets miss the failure that hurts agent workflows: the model starts well, loses constraints, and degrades after many tool results or a large repository history. Run a deterministic replay that resembles the intended job.

At fixed checkpoints, ask the model to return:

  • Current engagement ID and allowed assets.
  • Claims supported by exact fixture event IDs.
  • Unresolved hypotheses.
  • Remaining tool-call budget.
  • Next proposed read-only action.

Score the checkpoints at 8k, 32k, 128k, and the largest context you genuinely plan to serve. Do not pad with random tokens. Use realistic source files, logs, tool outputs, and corrections. Measure instruction retention, citation validity, tool-scope adherence, duplicate work, latency, and token use.

Repeat the replay across seeds or sampling runs. A single successful 128k transcript provides little evidence about variance. The LLM API stability guide shows how to separate endpoint changes from prompt-level noise and how to preserve comparable records.

Verify the served system, not only the weights

Local deployment gives direct artifact access. A hosted API replaces that access with an evidence contract. Ask the provider to publish:

  • Stable public model ID and base/variant label.
  • Context and maximum-output limits actually served.
  • Input, cached-input, and output prices.
  • Streaming and tool-call support.
  • Logging and retention terms.
  • Change policy for weights, quantization, templates, and runtime.
  • A way to detect or date a serving revision change.

The logging row now has a client-side counterpart: the prompt surveillance canary protocol tests what an endpoint does with your traffic, from paired-latency profiling to hosted-versus-local behavioral diffs.

Then run the same acceptance corpus against the endpoint. The live UNST33R catalog exposes three public IDs:

API model IDPublished variantInput / output per 1M tokensEvaluation use
unst33r-flashGLM-5.3-Flash, uncensored$0.50 / $1.50High-volume first pass and replay smoke tests
unst33r-deepseekDeepSeek-V4.1-Flash-1017, abliterated$0.15 / $0.5625; $0.03125 cached inputLarge paired corpora and code-heavy security fixtures
unst33r-proGLM-5.3, uncensored$2.50 / $4.50Difficult reviewer cases and adjudication

These roles are test assignments, not benchmark conclusions. Run one fixed corpus across the candidate tiers and compute accepted results, format failures, unwanted refusals, p95 latency, and cost per accepted result. The model tier selection guide provides a broader routing plan.

For a hosted abliterated model, preserve the API response's model field, request timestamp, usage record, endpoint base URL, client version, and a hash of every message and tool schema. Re-run a small canary set daily. A changed response distribution should trigger investigation before the next large campaign.

Use a release evidence packet

The final review should fit into one directory or immutable object-store prefix:

release-evidence/
  manifest.json
  base.sha256
  candidate.sha256
  intervention.md
  tensor-delta.json
  prompts.jsonl
  base-results.jsonl
  candidate-results.jsonl
  long-replay-results.jsonl
  scoring.json
  reviewer-signoff.md

manifest.json ties every file to a hash and records the exact runtime. intervention.md describes the claimed method. The result files remain append-only. scoring.json includes thresholds chosen before the run and the code revision that applied them.

NIST's September 2026 ARIA Evaluation Planning Manual separates model testing, red teaming, and user testing in a holistic evaluation. That division is useful here. The automated paired matrix confirms claimed behavior, adversarial testers probe failure conditions, and operators evaluate whether the model helps or hinders the actual workflow.

Reject the variant when evidence is missing

Stop the review or keep the model in an isolated experiment when any of these conditions hold:

  • The base revision cannot be pinned.
  • Weight files lack hashes or change after the review.
  • The intervention description omits layers, tensors, or method.
  • The author reports only after-edit refusal results.
  • The control uses a different base, template, or quantization path.
  • Tool or JSON regressions are hidden inside an aggregate quality score.
  • Long-context testing consists of a maximum-token claim with no replay.
  • The hosted endpoint can change revisions without a canary or notice.
  • The model receives production authority before the executor enforces scope.

An abliterated LLM becomes trustworthy through a chain of inspectable evidence. Pin the base, document the edit, compare against a matched control, replay the intended workload, verify the served system, and preserve the result packet. The model can then enter an authorized security harness as a measured component whose failure modes are visible. One last discipline applies to the evidence itself: sharing result packets and agent build links has its own exposure class, and the Grok Build DNS-enumeration incident is the cautionary example of what shared links leak.