玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
KridgeDookie /

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

HF 源站

KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit is an uncensored open-source model hosted on Hugging Face.

Text GenerationMLX LMsafetensorsLicense: apache-2.027Bmlxprism_hadamard_qwen35abliteratedmixed-precisionbonsaiconversational
README.md说明 / 使用方法

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

ModelRefusals / 126Benign tasks passed / 24
Original Bonsai12322
Mixed 4-bit021
Mixed 8-bit021

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.

HUGGING FACE

上游数据

HF 下载量338
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
KridgeDookie
最近更新
2026/09/21
最新创建
2026/09/21
HF 趋势
未知
数据快照
2026/09/23
版本
未知
许可证
apache-2.0