The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
Bonsai 2 27B Ternary Forensics
Independent forensics on Bonsai 2 27B, Prism ML's ~2 bpw ternary model built from
Qwen/Qwen3.8-27B. This is an analysis, code and paper dataset, not a model release. It
contains no weights, GGUFs or checkpoints.
The code and the live write-up are on GitHub: https://github.com/sky-is-green/bonsai2-ternary-forensics
The public discussion thread is on the Prism model page: https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/discussions/62
Findings
- The format is not the secret. The GGUF declares its own blockwise Walsh-Hadamard rotation (block 1024, explicit signs, input axis). Once the tensor layouts are lined up, plain absmean RTN on the rotated base agrees with Prism's trits 0.920 mean / 0.885 min (chance: 0.33).
- The residual carries the quality. Replacing all 402 ternary payloads with our own rotate+RTN weights, keeping metadata byte-identical, collapses perplexity from 18.5851 to 23,606 (1,270x) in the same binary, corpus and settings.
- It is not a quantizer trick. GPTQ with real Hessians, damping sweeps, act-order, rotation-aware Hessians and group-scale search all move the codes away from Prism's; their codes fit our activation Hessians worse than plain RTN. The residual is trained weight movement.
- The public 2.1x is a calibration artifact. Reproducing the public QuIP reference gives the published 2.1x on a fixed passage; on held-out windows with real calibration data the same configurations collapse (1,178x to ~35,000x).
- The mechanism is ordinary ternary QAT in the rotated basis. The large-
qMirror Descent / RMD recipe is the lineage, not what Bonsai 2 runs: a direct mirror-map arm is falsified inside the ternary loop, the zero share (0.328) is the quantizer's central band, and the ~8% of trits RTN cannot reach is boundary placement from training, not an optimizer signature.
Figures
What is here
| path | contents |
|---|---|
docs/WHITEPAPER.md |
full dense-27B forensics write-up |
docs/FORENSIC-ARCHIVE.md |
the settled Mirror-Descent question |
docs/FAILURES.md |
failure register with evidence and revisit cost |
docs/ |
format, quantizer, packing, scaling, registry and reproducibility records |
research/ |
Gate-1/2/3 reports |
paper/ |
TMLR manuscript source and public preprint source |
bonsai_forensics/ |
rotation, quantizer, GPTQ, PQ2_0 codec, oracle and gates |
scripts/ |
Gate-3 and pilot scripts; evaluation helpers |
tests/ |
offline synthetic-tensor test suite |
configs/ |
run configs and pinned model registry |
The MoE extension moved to its own repository: https://github.com/sky-is-green/scion
Reproduce
See the GitHub README and docs/REPRODUCIBILITY-AUDIT.md. The oracle and base models are
Apache-2.0 and are downloaded separately; they are not included here. The offline test
suite uses synthetic tensors only.
License
Apache-2.0 (see LICENSE and NOTICE). Bonsai 2 27B is by Prism ML (Apache-2.0), derived
from Qwen3.8-27B by Alibaba Cloud (Apache-2.0); "Created using Bonsai by Prism ML." The
public PTQ reference is ThakiCloud/bonsai-1bit-repro (Apache-2.0); runtime evaluation uses
Prism's llama.cpp fork (MIT) on ggml (MIT). No weights are redistributed.
Citation
@misc{bonsai2_ternary_forensics,
title = {Bonsai 2 27B Ternary Quantization Forensics},
author = {sky-is-green},
year = {2026},
url = {https://github.com/sky-is-green/bonsai2-ternary-forensics}
}
This is independent analysis, not affiliated with, endorsed by, or sponsored by Prism ML, Alibaba Cloud, or ThakiCloud.
- Downloads last month
- 63

