abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.
← back to catalog · indexed 2026-12-05 22:08added 2026-12-05 22:08

MachineElves/Qwen4-35B-A3B-abliteration-LoRA

MachineElves Qwen 35B GGUF MoE

M1 Direction removal · 136 downloads · 0 likes

Your rigComputer guess connected
? Why do I need an app?
Reading your rig…Checking…

Below is the per-quantization compatibility for this model.Below: which compressed versions fit your computer.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/MachineElves%2FQwen4-35B-A3B-abliteration-LoRA"
Response includesThe data includes
  • method_v2.family M1
  • files 9
  • author_summary 4 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload10 credits · updated hourly · reply about 4 KB Get an API key →
Abliteration classifier · v2.2.0 · M-codes 2.0How this model was made
M1
Method familyMethod

Direction removal

Uncensoring event in this repository: M1 · classic · L16-16.Refusals were removed here.

EvidenceHow we know
ˢ Stated
Specialist codeShort code M1 · classic · L16-16 · original · GGUF ˢ
  • VariantForm classic S
  • Scope L16-16 S
  • LineageFamily tree original S
  • DistributionFiles GGUF T
Why this label 7 answers
FamilyMethod
M1 Stated The card names a direction-removal tool or states the abliterationThe card says so
VariantForm
classic Stated Direction removal stated without a refinement: the classic formThe standard form
Scope
L16-16 Stated Read from the model card by the card-reading pass (stated by the author)Read from the model card
Tool
not stated
Post-processingAfterwards
not stated
LineageFamily tree
original Stated Published as the author's own release, with no uncensored ancestorThe author's own release
DistributionFiles
GGUF Tool record From the repository's file formatsFrom the files
Target
refusal Guessed No other target stated, so refusals
Where the change lives
weights Stated Follows from the familyFollows from the method
Hardened base
not stated
Refusal direction extractionFinding the refusal signal

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.We could not tell how the refusal signal, a pattern inside the model linked to refusing, was found here. The author did not say or used private tools.

What is a refusal direction? →What is the refusal signal? →

Licence and originprovenance

Original release
  • Provider: Qwen (Alibaba) Provider: Qwen (Alibaba) original.provider
  • Release: Qwen/Qwen4-35B-A3B Original release repo: Qwen/Qwen4-35B-A3B original.release_id
  • Licence of the original release: Apache-2.0 Licence of the original release: Apache-2.0 original.licence
  • EU training-content summary published: not found as of 2026-11-29 EU training-content summary (AI Act Art. 53(1)(d)): none found, last checked 2026-11-29 original.eu_training_summary
  • Provider documents taken from the researched release of the same release line, Qwen/Qwen1.5-0.5B-Chat Provider documents taken from the researched release of the same release line, Qwen/Qwen1.5-0.5B-Chat original.eu_training_summary.from_release
  • Original release found via models it says it is built on Link found in the lineage graph (declared base models) link_source
This model
  • Licence stated by this model: mit Licence in the model card metadata: mit this_model.declared_licence
  • Licence differs from the original release Licence differs from the original release flags.differs
Details
  • Full licence text dated copy of 29 Nov 2026 licence_text
  • Chain to this model 2 steps, 1 file hash chain
  • Provider documents 6 facts with sources provider_documents
  • Licences side by side licences

From public data checked on 2026-12-06. Not legal advice. How this is checked · Report a problem with this information

Downloads · lifetimeDownloads · all time
136
Likes
0
Model age
1d ago
created 2026-12-05
Downloads over time
Now 0 → from 0 –
0011 0 on Dec 5 0 on Dec 6 Dec
Dec 5 → Dec 6 · 2 snapshots · spans 1 dayDec 5 → Dec 6 · 2 recorded counts over 1 day

GenealogyFamily tree 0 direct forks

Full fork graph →All family trees →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.Its place among other models. Above: what it comes from. Below: models built on it, directly or through other models.

MetadataDetails

License
mit
Tags
gguflorallama.cppabliterationqwenbase_model:unsloth/Qwen4-35B-A3B-GGUFbase_model:adapter:unsloth/Qwen4-35B-A3B-GGUFlicense:mitregion:us

Related

Total size
103 MB
Files
9
Quantizations
1
Indexed by usAdded
2026-12-05 22:08
Last updated on HFLast updated
2026-12-05 21:14

Files by quantizationFiles by compression

abl-L16 1 file 102 MB
abl-L16.gguf 102 MB 20bf7279 download
Auxiliary files 8 files 340 KB
refusal_dirs_qwen4.npy 320 KB cfe49b9a download
README.md 5.66 KB 6e57553a download
scripts/abl_lora.py 4.59 KB 8aee925c download
scripts/abl_collect.cpp 4.16 KB 0748ab0e download
scripts/probe.py 2.07 KB 7982f257 download
.gitattributes 1.53 KB c5bc022a download
LICENSE 1.04 KB 57290bfc download
scripts/render_api.py 816 B 4c271e83 download

READMEAuthor's description from Hugging Face, captured 2026-12-05


license: mit
base_model: unsloth/Qwen4-35B-A3B-GGUF
tags:

  • gguf
  • lora
  • llama.cpp
  • abliteration
  • qwen

Qwen4-35B-A3B: refusal-direction abliteration as a rank-1 LoRA

We built this to drive our internal instance of the ARTEX autonomous penetration testing platform.
You are welcome to use it to protect things that are yours, or to learn more about security. The
world already has a surplus of trouble, please do not use this to get into other people's stuff.

A 107 MB llama.cpp LoRA adapter (abl-L16.gguf) that removes the refusal direction from Qwen4-35B-A3B.
It was computed on unsloth/Qwen4-35B-A3B-GGUF
(UD-Q4_K_XL), which is used unchanged. Load the adapter on top of it at strength 1.5:

llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
  --lora-scaled abl-L16.gguf:1.5 -ngl 99 -fa on -ctk q8_0 -ctv q8_0 --jinja

Qwen4 (qwen4exp) needs a recent llama.cpp built from master; older releases fail with
"unknown pre-tokenizer". Other quantizations of the same model should accept the adapter (the tensor
shapes are the same), but we only tested UD-Q4_K_XL.

Why a LoRA

Abliteration (Arditi et al., 2024) projects one direction r out of every matrix that writes to the
residual stream: W' = W - r rᵀW. That is a rank-1 update, so it fits a LoRA exactly: lora_b = -r,
lora_a = rᵀW. For the token embedding the delta is -(E_t·r) r. The base GGUF stays as published,
the strength is a runtime knob, and dropping the LoRA restores stock behaviour.

Qwen4-35B-A3B has 40 layers (plus one MTP layer), a 2048-wide residual, 256 routed experts per layer and
4-stream hyper-connections. The direction was measured on the mean of the four streams. Edited residual
writers (122 tensors): attn_output, ssm_out, ffn_down_shexp, ffn_down_exps (one rank-1 pair per
expert, applied by llama.cpp through mul_mat_id), ple_value (the per-layer n-gram embedding writes
into every stream) and token_embd. The MTP block, used only for speculative drafting, is skipped:
mainline llama.cpp drops its tensors, and an adapter naming them fails to load.

How the direction was found

  • 400 harmful prompts: 300 CyberSecEval MITRE attack prompts and 100 AdvBench. 400 harmless prompts: 300
    CyberSecEval MITRE false-refusal (benign security) prompts and 100 Alpaca. Matching benign security
    prompts keeps "this is about security" out of the direction.
  • Each prompt was rendered with the model's own chat template (scripts/render_api.py) and run once
    through llama.cpp (scripts/abl_collect.cpp). The residual after every block was captured at the last
    token, and the mean harmless activation was subtracted from the mean harmful one per layer.
    refusal_dirs_qwen4.npy holds these differences: 40 layers × 2048, float32, not normalized.
  • Eleven candidate layers (12–32, even) were screened on 40 held-out harmful and 20 benign prompts.
    Stock refused 29/40. Layers 16 and 20 were best; at strength 1.0 they refused 5/40 and 7/40, so
    strength was swept: L16 gave 1/40 at 1.25 and 0/40 at 1.5, L20 1/40 and 2/40. No setting refused a
    benign prompt. Layer 16 at 1.5 was chosen.

Results

Final sets ran on llama.cpp (CUDA, 2× RTX 5060 Ti 16 GB) with q8_0 KV cache. The red-team and benign sets
were graded with a keyword refusal check, and outputs were read by hand. Sampling was greedy for the
refusal sets and the server default for the agent tasks.

Stock L16 × 1.5
Red-team prompts refused, thinking off 36/40 0/40
Benign security and general prompts refused (false refusals) 11/100 1/100
Red-team screen, thinking on (L16 at 1.0) 14/40 3/40
Multi-turn ops-agent task (tool calls, mocked infra) pass pass
20 single tool calls 19/20 19/20
RAG answering with citations 20/20 20/20

The adapter also cut false refusals on benign security questions (11 → 1 of 100). Strength 1.5 sounds
high, but the agent task, tool calls and RAG answers stayed at stock level. Agents still make mistakes,
so keep human approval on destructive tools.

Note: llama-server serves every loaded adapter by default

If several adapters are loaded, a request with no "lora" field gets all of them at their global
scale. Load only this adapter in production, or name it in every request.

Files

  • abl-L16.gguf: the LoRA (rank 1, alpha 1, float32), arch qwen4exp.
    sha256 20bf727997cfa3c5ae2997a46ef6a69f40004d9ec21408e483809a59f76816c4.
  • refusal_dirs_qwen4.npy: per-layer harmful−harmless mean differences (40 × 2048).
  • scripts/: abl_collect.cpp (activation means over the hyper-connection streams, links against
    libllama), render_api.py (chat template through a running llama-server), abl_lora.py (builds LoRAs
    from the directions, including 3-D expert tensors; set GGUF_PY to a llama.cpp tree's gguf-py),
    probe.py (refusal probe with per-request LoRA).

The same method on other models:
Nemotron 3.5 Bolt 74B-A9B,
Nemotron 3.5 Lightning 30B-A3B,
Nemotron 3.5 Bolt E4B.

License

Our work (the scripts, the method and this card) is under the MIT License (LICENSE).

The adapter (abl-L16.gguf) and the direction vectors (refusal_dirs_qwen4.npy) are computed from the
Qwen4-35B-A3B weights, which are under the Apache License 2.0
(Qwen/Qwen4-35B-A3B); those derived files are offered under the
same Apache 2.0 terms.

README historyEdit history 1 version1 edit

The author's README evolved over time. Click a version to see its content at that point.The author changed the description over time. Click a date to see the text as it was then.

  1. 2026-12-05 Qwen4-35B-A3B abliteration LoRA (L16 x1.5) bfaa7ee 5.7 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration