← back to catalog · registered 2026-10-21 22:00

PhillyLabs/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit

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

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/PhillyLabs%2FTernary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit"
Response includes
  • classification m1
  • files 18
  • author_summary 8 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · 30-day
2K
Likes
1
Model age
4w ago
created 2026-09-21

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
apache-2.0
Tags
mlx safetensors prism_hadamard_qwen35 abliterated mixed-precision bonsai text-generation conversational base_model:prism-ml/Ternary-Bonsai-2-27B-mlx-2bit base_model:finetune:prism-ml/Ternary-Bonsai-2-27B-mlx-2bit license:apache-2.0 region:us

Related

Total size
10.4 GB
Files
18
Quantizations
1
Registered
2026-10-21 22:00
Last updated on HF
2026-09-21 17:00

Files by quantization

Auxiliary files 18 files 10.4 GB
model.safetensors 10.4 GB 67d8828d download
tokenizer.json 12.2 MB 0997f410 download
hadamard.json 283 KB 86a0e659 download
pass1_provenance.json 223 KB bf34bc64 download
pass2_provenance.json 222 KB 3b19b3b4 download
config.json 61.5 KB 6041b96b download
evaluation.json 19.0 KB 756be742 download
tokenizer_config.json 17.5 KB 5de744b3 download
LICENSE 9.94 KB 66a27ec5 download
chat_template.jinja 8.74 KB c0c686f9 download
README.md 4.29 KB 7c96f05d download
SHA256SUMS 1.82 KB a35d7e73 download
.gitattributes 1.53 KB 52373fe2 download
recipe.json 1.25 KB c527c0d1 download
NOTICE.txt 557 B b467dd76 download
preprocessor_config.json 390 B 2ea84a43 download
PACK-RUNTIME.md 373 B 6225b43e download
generation_config.json 85.0 B 99dba5e6 download

README current version from Hugging Face


license: apache-2.0
pipeline_tag: text-generation
base_model: prism-ml/Ternary-Bonsai-2-27B-mlx-2bit
tags:

  • abliterated
  • mixed-precision
  • bonsai
  • mlx

Compact release

A smaller 8.630 GB base + adapter package is available in compact/. The adapter is required. Download only compact/* and follow its loading instructions; downloading this whole repository also fetches the older larger models. The GGUF adapter passed 0/126 refusals and 21/24 benign tasks. MLX has Linux CPU smoke and layer validation, not Apple-hardware validation.

Earlier mixed-precision release

Bonsai 2 27B — Philadelphia Class

An abliterated derivative of PrismML Bonsai 2 27B, built with the same two-pass Qwen3.8 Philadelphia recipe. Refusal directions were re-extracted from Bonsai for each pass; no Qwen weights or saved Qwen directions were substituted.

What changed

Two norm-preserving biprojection passes, layers 1–63, scale 1.0, 126 output matrices per pass. The 842 paired prompts were split into 716 extraction pairs and 126 family-disjoint held-out pairs with seed 1337. See recipe.json and the two provenance files.

These are mixed-precision models. Unedited quantized language matrices retain their original rotated ternary representation; auxiliary and vision tensors retain their source precision. The 126 edited matrices use canonical, unrotated Q4_0 or Q8_0 values. GDN column ordering and Hadamard manifests were updated accordingly. Pure ternary repacking erased the edit (124/126 held-out refusals), so that failed candidate is not distributed here.

Validation

Model Refusals / 126 Benign tasks passed / 24
Original Bonsai 123 22
Mixed 4-bit 0 21
Mixed 8-bit 0 21

These are deterministic heuristic screens, not broad intelligence scores. The held-out screen used 96 output tokens, greedy decoding, repetition penalty 1.1, and a 4096-token GGUF context on an A100 80 GB. The intermediate BF16 final checkpoint passed its separate 126-prompt, 24-token opening gate with zero refusals and 100% usable openings. Raw harmful prompts and responses are not included.

MLX checks cover strict full-model reload, one arithmetic generation smoke test on Linux CPU, and independent packed-layer numerical checks. No iPhone, macOS Metal, or App Store validation was performed. Weights need additional runtime and cache memory; file size is not a device RAM requirement. Vision weights are preserved in MLX but vision behavior was not re-evaluated.

Full aggregate results and exact scope are in evaluation.json. Do not apply the upstream model's intelligence or throughput claims to this derivative.

Sources and license

Created using Bonsai by Prism ML. Derived from PrismML GGUF at 6ed5e12bf84b7a63069882c91dd9e9218647d17b and PrismML MLX at 3f926b415992eaa2ae9dd7b573706494d6bbf787. Bonsai derives from Qwen3.8-27B. Weights retain Apache-2.0 licensing; bundled runtime code retains its own MIT license. Modifications made 2026-09-21.

Running MLX

Weight file: 11.20 GB, including the unchanged vision tower. Most language weights are 2-bit; edited matrices are 4-bit, group size 32. Use the bundled mixed-precision loader. Generic MLX loaders and unmodified upstream Bonsai loaders do not implement this mixed format correctly.

hf download KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit --exclude "compact/*" --local-dir bonsai-mlx
pip install -r bonsai-mlx/runtime/requirements.txt
import sys
sys.path.insert(0, "bonsai-mlx/runtime")
from vision_artifact import load_vl_model, chat_config
from mlx_vlm import generate
from mlx_vlm.prompt_utils import apply_chat_template

model, processor, config = load_vl_model("bonsai-mlx")
prompt = apply_chat_template(processor, chat_config(config), "Say hello briefly.", num_images=0)
print(generate(model, processor, prompt, max_tokens=128, temperature=0.0))

The runtime changes add per-module bit widths and group sizes. The schema-2 vision-capable loader also handles text-only use. Swift/iOS full-model integration remains separate work.

Catalog is the map. Apps are the tools.

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

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration