license: other
license_name: tencent-hy-license
license_link: https://huggingface.co/tencent/Hy4-flash/blob/main/LICENSE
base_model: mrfakename/Hy4-flash-abliterated
pipeline_tag: image-text-to-text
tags:
- lucid
- gguf
- abliterated
- uncensored
Hy4-flash (abliterated) GGUF
Huge thanks to Hugging Face for generously sponsoring the compute used to abliterate these models! This was done on HF Jobs, which makes it incredibly easy to run tasks such as these :)
Join the Discord: https://discord.com/invite/foss

GGUF quants of mrfakename/Hy4-flash-abliterated, which is tencent/Hy4-flash with its refusal behaviour removed by directional ablation.
These are Xylolabs' quants with the edit applied in place. Only the edited tensors were dequantized, edited and requantized to their original type. Everything else is byte-identical, including the FP8 Engram table and the imatrix-chosen tensor types.
| File | Size | Notes |
|---|---|---|
Hy4-flash-abliterated-Q8_0-0000*-of-00002.gguf |
213.1 GiB | Closest to the original weights. |
Hy4-flash-abliterated-Q6_K-0000*-of-00002.gguf |
180.0 GiB | |
Hy4-flash-abliterated-Q4_K_M-0000*-of-00002.gguf |
150.1 GiB | The quant the search and evaluation ran on. |
Hy4-flash-abliterated-IQ4_XS-E4-0000*-of-00002.gguf |
114.2 GiB | Smallest. |
Each quant 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 (per_layer_token_embd). It is only ever row-gathered, so it can stay in system RAM. The Q4_K_M ran with about 96 GiB on GPU.
llama.cpp compatibility
Hy4-flash (hy_v4_flash) support landed in llama.cpp on 2026-11-25 (c943331). Two days later, commit a386950 ("ggml: support quant scales for fp8 and nvfp4") started 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 scale. Until that's fixed upstream, use a build between those two commits. Everything here was made and tested on 15fcfc7.
What changed
- Refusal directions were measured separately for chat (
reasoning_effort: no_think) and think (reasoning_effort: high) prompts on Xylolabs' Q4_K_M GGUF, at the residual stream entering every layer's FFN. Refusal separates strongly from layer 18 on. Chat and think directions are much less aligned here than on other models (cosine 0.2–0.6), so the subspace candidates are the top singular vectors of both families' directions from layers 18–41. - Hy4-flash puts an RMS norm with a learned gain after each writer (sandwich norms), so the removed direction is gain-corrected per tensor: each writer gets the basis
orth(g ⊙ Q), which removesQfrom what actually reaches the residual stream after the norm. - A multi-objective search (minimise refusals, keep the first-token KL on harmless prompts low) chose the subspace rank and per-layer strengths over 100 trials. It settled on a single direction (rank 1):
- attention outputs get strength 1.27–1.78 on all 42 layers, peaking at layer 18;
- shared-expert down-projections get 0.95–0.98 on layers 31–37;
- the routed-expert up-projection (the projection of the latent routed-expert sum back into the residual stream) gets 0.45–1.42 on layers 26–41, peaking at layer 34.
- That direction was projected out of the residual-stream writes:
attn_outputon 42 layers,ffn_down_shexpon 7 layers, andffn_routed_upon 16 layers. That is 65 GGUF tensors.
Nothing else was touched: the routed experts, router, Engram table, embeddings, output head and the vision projector are byte-identical to the original quants.
Results (Q4_K_M, greedy)
| refusals, chat (/100) | think mode, reasoning or answer refuses (/100) | KL, harmless first token | |
|---|---|---|---|
| original | 92 | 89 | 0 |
| abliterated | 4 | 6 | 0.233 |
The 100 prompts are held-out harmful requests. Chat replies were 384 tokens and think mode got 768. The numbers are from the patched Q4_K_M file itself, not the adapters used during the search.
Some notes:
- The KL is higher than on the other models I've done (0.05 on Ling-3.2-air). This model's refusal is spread across more layers, and no setting in the search got refusals low at a smaller KL. Replies to ordinary prompts look the same as the original's, often almost word for word. Batched inference alone gives a KL noise floor of 0.02–0.03.
- In think mode the abliterated model thinks longer: 44 of 100 replies hadn't 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, so give it a bigger token budget.
Does the edit survive quantization?
Re-rounding a quantized weight after the edit can put part of the removed direction back as rounding noise. In all four quants, every edited tensor (attention output, shared-expert down, routed up) is Q8_0: Xylolabs kept the residual writers at 8 bits even in the 4-bit files. So the edit survives almost exactly everywhere.
| File | Edited tensors (type) | Left over, worst tensor |
|---|---|---|
| Q8_0 | all Q8_0 (65) | 0.23% |
| Q6_K | all Q8_0 (65) | 0.23% |
| Q4_K_M | all Q8_0 (65) | 0.23% |
| IQ4_XS-E4 | all Q8_0 (65) | 0.23% |
(0 = removed exactly as intended, 1 = none of the edit survived.) patch-stats.txt lists every tensor.
Running
llama-server -m Hy4-flash-abliterated-Q4_K_M-00001-of-00002.gguf --mmproj mmproj-Hy4-flash-Q8_0.gguf --jinja -ot per_layer_token_embd=CPU
Thinking is controlled with reasoning_effort (no_think or high) through the chat template, e.g. --chat-template-kwargs '{"reasoning_effort":"high"}'.
Files
Hy4-flash-abliterated-*.gguf: the patched quants.mmproj-*.gguf: the unchanged vision projector (from Xylolabs).abliteration-lora.gguf: the edit as a LoRA, if you'd rather use another quant of the original:--lora abliteration-lora.gguf.abliteration-edit.npz: the direction, per-layer strengths and post-norm gains.patch-stats.txt: per-tensor patch log.
This model will comply with harmful requests. You are responsible for how you use it.
Abliterated with Lucid (lucid-toolkit.org).