Holo4-27B-Abliterix (MLX, oQ6e)

Uncensored build of Hcompany/Holo4-27B, H Company's computer-use vision-language model, for Apple Silicon. Its refusal behavior was removed with Abliterix (refusal-direction ablation), and the edited model was then quantized with oMLX oQe at level 6. These are modified weights, not a plain quantization of the original; the edited full-precision weights are at timteh673/Holo4-27B-Abliterix. 23.30 GB on disk (21.70 GiB) in 5 safetensors shards, 6.81 bits per weight overall (6.66 for the language model). The vision tower stays in BF16 and is byte-identical to the original.

Who this is for. This is the recommended build of the two. It is 6.2 GB smaller than oQ8e, decodes about 30% faster, and scored best on the click test below (35 of 35 with thinking on). Plan on a Mac with 48 GB or more of unified memory: measured peak 28.6 GB with one screenshot and 31.4 GB with a 32k-token prompt.

Safety alignment was deliberately removed. This model complies with many requests the original Holo4-27B refuses, and it is built to operate a computer: clicking, typing, running code and calling tools. Run it in a VM or sandbox, keep a human in the loop for anything with consequences, and add your own guardrails if you deploy it. Released for research, red-teaming and evaluation. You are responsible for how you use it.

Model details

Uncensored and quantized by timteh673
Source weights timteh673/Holo4-27B-Abliterix (BF16, the abliterated model this was quantized from)
Original model Hcompany/Holo4-27B by H Company (BF16), built on Qwen/Qwen3.8-27B
Model type Qwen3_5ForConditionalGeneration (qwen3_5): dense vision-language model with a thinking mode and tool calling
Parameters 27.36B (26.90B language model, 0.46B vision tower)
Architecture 64 decoder layers, hidden size 5120: 48 Gated DeltaNet linear-attention layers (16 key heads, 48 value heads, head dim 128) and 16 full-attention layers (every fourth layer; 24 query heads, 4 KV heads, head dim 256); MLP width 17,408; vocabulary 248,320; vision tower of 27 blocks (hidden 1152, patch 16). No MTP head.
Context 262,144 tokens in the config; tested here up to 32k
License CC BY-NC 4.0, inherited from Holo4-27B (LICENSE). The Qwen3.8-27B base is Apache 2.0 (LICENSE-APACHE). Non-commercial use only.
Modification Abliterix 1.12.2 refusal ablation, then oMLX 0.7.0 oQe quantization (details below)
Format Standard MLX affine-quantized safetensors, no custom kernels. Loads in mlx-vlm and in Element Labs' Bionic / LM Studio MLX engine.

What is in this repo

Files Size
model-00001-of-00005.safetensors ... model-00005-of-00005.safetensors 23.30 GB (21.70 GiB)
config.json (with the quantization map), model.safetensors.index.json, oq_imatrix_report.json 0.25 MB
tokenizer.json, tokenizer_config.json, chat_template.jinja, generation_config.json, image and video preprocessor configs 20 MB
LICENSE (CC BY-NC 4.0), LICENSE-APACHE (Apache 2.0, Qwen base) 31 KB

What was changed: refusal ablation

Abliterix 1.12.2 searched for the edit with Optuna: 30 trials, the first 10 random warm-up, seed 42, running in PyTorch on the Mac's GPU (MPS).

  • Refusal direction: per-layer mean difference between the model's residual activations on 400 harmful prompts (mlabonne/harmful_behaviors train[:400]) and 400 harmless prompts (mlabonne/harmless_alpaca train[:400]), winsorized at the 0.995 quantile, with projected abliteration.
  • Where it was applied: the attention output projections (self_attn.o_proj in full-attention layers, linear_attn.out_proj in Gated DeltaNet layers), with strength following a linear layer-decay kernel. The MLP down_proj was also searched, but the chosen trial left it at zero. Query, key and value projections were excluded.
  • Chosen trial (3 of 30): strength 4.93 peaking at layer 42.8, falling linearly to 2.53 at a distance of 22.8 layers. Abliterix exports the trial with the fewest refusals; trials whose KL divergence passed 0.5 were discarded.
  • Measured effect on the weights: a tensor-by-tensor comparison with the original BF16 checkpoint shows that 43 of 1,184 tensors changed (2.71 GB): linear_attn.out_proj in 32 Gated DeltaNet layers and self_attn.o_proj in 11 full-attention layers, which is every layer from 21 to 63. Layers 0 to 20, every MLP, the embeddings, lm_head and all 333 vision tensors are byte-identical to Holo4-27B.

Result, from Abliterix's own evaluation of the BF16 weights before quantization, on held-out prompts with thinking off and refusals detected by keyword markers:

Refusals, 100 held-out harmful prompts KL divergence vs original, 100 harmless prompts
Holo4-27B (original) 97 / 100 0
This edit 19 / 100 0.165

The prompts were mlabonne/harmful_behaviors test[:100] and mlabonne/harmless_alpaca test[:100]; KL is measured over the first three response tokens. Abliterix formats every prompt with thinking off, so both numbers describe the model with thinking off. Bionic / LM Studio run it with thinking on; refusal rates in that mode were not measured separately.

Quantization layout

oQ is oMLX's sensitivity-driven mixed-precision quantizer: layers are ranked by measured quantization sensitivity and the bit budget goes to the most sensitive ones. The "e" (oQe) adds an importance matrix so that the clipping inside each quantization group favors the weights that carry the most activation energy. The output is plain affine quantization that any MLX runtime reads.

Component Precision Size
MLP, 64 layers (17.11B params) 6-bit, group 64; 8-bit gate_proj / up_proj / down_proj in layers 51 and 63 14.04 GB
Gated DeltaNet, 48 layers (5.56B) 6-bit, group 64; in_proj_a / in_proj_b 8-bit in layers 0, 49, 50, 52, 60, 62; conv1d, norm, A_log, dt_bias BF16 4.52 GB
Full attention, 16 layers (1.68B) 6-bit, group 64; 15 projections 8-bit (k_proj / v_proj in layers 27, 47, 51, 59, 63; o_proj in 51, 59, 63; q_proj in 51, 63); q/k norms BF16 1.43 GB
lm_head (1.27B) 8-bit, group 64 (always protected by oQ) 1.35 GB
Token embeddings (1.27B) 6-bit, group 64 1.03 GB
Vision tower, 333 tensors (0.46B) BF16, untouched 0.92 GB
Layer norms BF16 < 0.01 GB
Total 6.81 bpw overall, 6.66 bpw for the language model 23.30 GB

34 tensors run at 8-bit: lm_head, which oQ always keeps at 8-bit, plus 33 projections that oQ promoted by measured sensitivity, 29 of them in layers 47 to 63. The exact per-tensor map is in config.json under quantization.

Importance matrix: collected on the abliterated BF16 weights with oMLX's oqe_code_multilingual calibration set (code, English, Korean, Chinese, Japanese, tool calls, reasoning), 128 samples of 512 tokens, 496 tensor entries. lm_head has no entry by design. Full report in oq_imatrix_report.json.

How it was made

On a MacBook Pro with an M5 Max and 128 GB of memory:

  1. Downloaded Hcompany/Holo4-27B (BF16, 54.7 GB).
  2. Ran the Abliterix search: 30 trials in 3 h 58 min on PyTorch MPS (each scored on 100 harmful and 100 harmless held-out prompts, batch 16, 100 generated tokens), then exported trial 3 in BF16.
  3. Quantized with oMLX 0.7.0 oQe at level 6, vision tower excluded from quantization. The importance matrix was collected once, during the oQ8e build, and reused here; this build took 205 s.
  4. Checked with a text smoke test, the click-grounding test and the throughput runs below.

Evaluation

These are small checks run on one machine, not a benchmark suite. H Company's OSWorld, OSWorld 2.0 and AutomationBench results on the original model card belong to the original BF16 model and were not re-run on these builds.

Click grounding (synthetic screenshot)

One synthetic 1280x800 screenshot of a login form, 7 targets (submit button, cancel button, email field, password field, "Remember me" checkbox, "Forgot password?" link, "Help" menu), each asked 5 times at temperature 1.0, the model's default sampling. The model answers with a JSON click point on a 0-1000 scale; a hit lands inside the element, with a 6 px tolerance.

Build Thinking on (Bionic / LM Studio engine) Thinking off (mlx-vlm)
oQ6e (this repo) 35 / 35, 9.8 s per answer 32 / 35, 3.1 s per answer
oQ8e 31 / 35, 11.0 s 32 / 35, 3.1 s
  • With thinking on, the misses came from mixing pixel coordinates and the 0-1000 scale during reasoning.
  • With thinking off, every miss in both builds was the same one: the model clicked the "Email address" label just above the field.
  • On a 3-target greedy version of the test, the original Holo4-27B and the abliterated BF16 weights gave nearly identical click points, so the ablation did not visibly change grounding.

Speed and memory (mlx-vlm 0.6.13, M5 Max, thinking off, greedy)

oQ6e (this repo) oQ8e
Decode, short text prompt 21.7 tok/s 16.8 tok/s
Screenshot prompt (1,080 tokens including the image): prefill 516 tok/s 408 tok/s
Peak memory, screenshot prompt 28.6 GB 36.2 GB
32k-token prompt (32,206 tokens): prefill / decode 423 / 15.8 tok/s 439 / 13.0 tok/s
Peak memory, 32k-token prompt 31.4 GB 37.6 GB

Past that, memory grows with the KV cache of the 16 full-attention layers, about 64 KiB per token in BF16 (computed from the config); the Gated DeltaNet layers keep a fixed-size state.

Usage

mlx-vlm

pip install -U mlx-vlm
python -m mlx_vlm.generate --model timteh673/Holo4-27B-Abliterix-oQ6e \
  --image screenshot.png --max-tokens 512 --temperature 0 \
  --prompt 'Where should I click to submit the form? Reply with only JSON {"x": X, "y": Y} normalized to a 0-1000 scale.'

mlx-vlm applies this chat template with thinking off unless asked; add --enable-thinking to let the model reason first.

from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template

model, processor = load("timteh673/Holo4-27B-Abliterix-oQ6e")
question = ("Where should I click to submit the form? "
            'Reply with only JSON {"x": X, "y": Y} normalized to a 0-1000 scale.')
prompt = apply_chat_template(processor, model.config, question, num_images=1)  # add enable_thinking=True to reason first
result = generate(model, processor, prompt, image=["screenshot.png"], max_tokens=512, temperature=0.0)
print(result.text)

Both snippets were run against this build (local copy) with mlx-vlm 0.6.13 and returned a correct click on the test screenshot.

Bionic / LM Studio

Tested in Element Labs' Bionic 1.1.7 (LM Studio's MLX engine 1.11.0, mlx-vlm 0.6.5). The app only indexes models laid out as ~/.lmstudio/models/<publisher>/<model>/, so download into that shape:

hf download timteh673/Holo4-27B-Abliterix-oQ6e --local-dir ~/.lmstudio/models/timteh673/Holo4-27B-Abliterix-oQ6e

The app applies the chat template with thinking on, and its OpenAI-compatible server ignored every per-request switch tried to turn thinking off (chat_template_kwargs.enable_thinking, reasoning_effort, reasoning.effort), so expect about 10 s per click decision on an M5 Max.

Prompt formats

H Company documents the prompt formats for element localization and function calling for Holo4; the click test above used the simpler JSON prompt shown in the snippets.

Sibling builds

Build Disk bpw Peak memory (screenshot) Click test, thinking on Decode
oQ6e (this repo, recommended) 23.30 GB 6.81 28.6 GB 35 / 35 21.7 tok/s
oQ8e 29.50 GB 8.63 36.2 GB 31 / 35 16.8 tok/s
Holo4-27B-Abliterix (BF16, transformers) 54.71 GB 16 not measured not run not measured

Limitations

  • Apple Silicon and MLX only.
  • Refusals are reduced, not gone: 19 of 100 held-out harmful prompts were still refused (BF16, thinking off, keyword detection).
  • Refusal and KL numbers come from the BF16 weights before quantization, measured with thinking off.
  • Not evaluated on OSWorld or any agent benchmark; the original model's scores do not automatically carry over.
  • The click test is one synthetic screen with 35 samples per setting.
  • Non-commercial license (CC BY-NC 4.0).

License and attribution

This repository contains a modified version of Holo4-27B by H Company, licensed under CC BY-NC 4.0. Changes made: refusal-direction ablation of 43 attention output projections (Abliterix) and mixed-precision quantization of the language model (oMLX oQe). Holo4-27B is built on Qwen3.8-27B, released by Alibaba Cloud under the Apache License 2.0. Both license texts are included in this repo. This build is not affiliated with or endorsed by H Company or the Qwen team, and it may only be used for non-commercial purposes.

Credits

@misc{holo4,
  title  = {Holo4-27B},
  author = {{H Company}},
  url    = {https://huggingface.co/Hcompany/Holo4-27B}
}
@misc{abliterix,
  title  = {Abliterix},
  author = {wuwangzhang1216},
  url    = {https://github.com/wuwangzhang1216/abliterix}
}
@misc{omlx,
  title  = {oMLX: LLM inference optimized for Apple Silicon},
  author = {jundot},
  year   = {2026},
  url    = {https://github.com/jundot/omlx}
}
Downloads last month
114
Safetensors
Model size
27B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

6-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for timteh673/Holo4-27B-Abliterix-oQ6e

Base model

Qwen/Qwen3.8-27B
Quantized
(5)
this model

Datasets used to train timteh673/Holo4-27B-Abliterix-oQ6e