Hy4-flash abliterated: 65 tensors, two directions, and a 150 GiB Q4
Tencent's 220B Hy4-flash now has an abliterated build with a published recipe and honest numbers. The edit touches 65 tensors; the memory bill is 150 GiB.
On this page
Most abliteration releases publish a download link and a refusal rate. The new Hy4-flash abliterated build (opens in a new tab) publishes the edit itself: which tensors changed, how strong each change is, and what it cost in KL divergence.
That makes it worth reading even if you never run a 150 GiB model. It is a clear look at how a careful 2026 abliteration is actually done.
What Hy4-flash is
Tencent published Hy4-flash on Hugging Face on November 17. It is a multimodal mixture-of-experts model:
- About 220B total parameters, including a 63.5B Engram table and a 155.5B language backbone.
- 12B active parameters per token (11.3B text plus 0.43B vision).
- 1M-token context, with hybrid sparse and sliding-window attention.
- 512 routed experts per layer, 16 active per token, plus one shared expert.
- Tencent Hy License, not an OSI license.
The architecture is unusual in two ways that matter for this edit. Each writer is followed by an RMS norm with a learned gain, and the model carries a large Engram table of learned bigram and trigram embeddings. Both details change how you remove a direction without breaking everything else.
Two directions, not one
The build measures refusal directions separately for chat and think prompts. That is the first thing many abliterations skip.
- Chat used
reasoning_effort: no_think. - Think used
reasoning_effort: high.
The two directions are much less aligned here than on other models: cosine similarity 0.2–0.6. A single averaged direction would have been a compromise between two different behaviors.
Refusal separates strongly from layer 18 onward. The search used the top singular vectors of both direction families from layers 18–41 as subspace candidates, then chose a rank and per-layer strength with a multi-objective search over 100 trials. The objective was to reduce refusals while keeping first-token KL on harmless prompts low.
It settled on rank 1 — a single direction — applied with different strengths.
The edit
The direction was projected out of the residual-stream writes, not out of every expert. That is 65 tensors:
| Component | Layers | Strength |
|---|---|---|
self_attn.o_proj | all 42 | 1.27–1.78, peaking at layer 18 |
mlp.shared_experts.down_proj | 31–37 | 0.95–0.98 |
mlp.routed_expert_up_proj | 26–41 | 0.45–1.42, peaking at layer 34 |
None of the 192 routed experts per layer were touched. The router, embeddings, lm_head, vision tower and DFly draft layers are bit-identical to the original.
Because Hy4-flash puts a learned-gain RMS norm after each writer, the removed direction is gain-corrected per tensor. Each writer gets the basis orth(g ⊙ Q) rather than Q, so the edit removes the direction that actually reaches the residual stream after the norm.
The last step is rounding. Every tensor stays BF16, but a plain re-round would snap part of the edit back. Instead, each weight goes to the BF16 value just below or above its target, chosen row by row so the rounding errors cancel along the removed direction. bake-stats.txt records how much of the subspace is left in each tensor.
The numbers
The evaluation ran on the patched Q4_K_M GGUF, not on the adapters used during the search. It used greedy decoding and 100 held-out harmful requests; chat replies were capped at 384 tokens and think mode at 768.
| Original | Abliterated | |
|---|---|---|
| Refusals, chat (/100) | 92 | 4 |
| Think mode, reasoning or answer refuses (/100) | 89 | 6 |
| KL, harmless first token | 0 | 0.233 |
The refusal drop is large. The KL is not free. It is higher than the author's other edits — 0.05 on Ling-3.2-air — and the card is explicit about why: this model's refusal behavior is spread across more layers, and no setting in the search got refusals low at a smaller KL. Batched inference alone has a KL noise floor of 0.02–0.03.
The practical cost shows up in think mode. The abliterated model thinks longer: 44 of 100 replies had not finished reasoning at 768 tokens, against 2–4 for the original, which mostly decides to refuse early. The unfinished reasoning is not looping; repetition is about 1%, the same as the original. It is planning the answer. Give it a bigger token budget.
Files and the llama.cpp problem
The release includes the patched BF16 checkpoint, a LoRA that applies the same edit to any stock GGUF, and abliteration-edit.npz with the direction, per-layer strengths and post-norm gains. The edit is W' = W - s·PPᵀW with P = orth(G[layer, component] ⊙ Q).
The GGUF quants are large because the model is large:
| File | Size |
|---|---|
Q8_0 | 213.1 GiB |
Q6_K | 180.0 GiB |
Q4_K_M | 150.1 GiB |
IQ4_XS-E4 | 114.2 GiB |
Each is a split pair. Point llama.cpp at the -00001-of-00002.gguf file and it loads the rest. About 59 GiB of every file is the Engram lookup table. It is only ever row-gathered, so it can stay in system RAM; the Q4_K_M ran with about 96 GiB on the GPU.
There is a build trap. Hy4-flash support landed in llama.cpp on November 25 (c943331). Two days later, commit a386950 began requiring a weight-scale tensor for every FP8 tensor. It never creates one for the Engram table, so current master refuses to load any Hy4-flash GGUF, including the originals:
tensor 'per_layer_token_embd.weight' of type f8_e4m3 requires a weight scaleUntil that is fixed upstream, use a build between those two commits. The release was made and tested on 15fcfc7.
Should you run it?
This is a workstation or datacenter model, not a laptop model. A 150 GiB Q4 file needs a 96 GB GPU plus enough system RAM for the Engram table, or a smaller GPU and a lot of expert offload. The new MoE offload guide covers how that works and where it stops being practical.
Two other caveats matter:
- License. The Tencent Hy License is not OSI-approved. Read it before commercial use.
- Compliance. This is an abliterated model. It will comply with harmful requests. The author says so directly, and the responsibility is yours.
The interesting part is not the refusal count. It is that the release shows its work: two directions, 65 tensors, a gain correction, a rounding strategy, and a KL number that is worse than the author's previous edits. That is a more useful artifact than another leaderboard screenshot.
Next steps
- Compare the build in the catalog.
- Read Running MoE models bigger than your VRAM before downloading a 150 GiB file.
- Read What is Abliteration? for how this fits alongside Heretic, CHiPS and fine-tunes.
- Read the GGUF quantization guide if you are choosing between Q4_K_M and IQ4_XS.