Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

Bonsai-8B-gguf-fork

by Pythai.net PYTHAI/Bonsai-8B-gguf-fork

Bonsai-8B-gguf-fork is an open-weight model for text generation from Pythai.net, released under Apache License 2.0. Its published files total 1.2 GB.

End-to-end 1-bit language model for llama.cpp (CUDA, Metal, CPU) - 1.15 GB parameter memory (down from 16.38 GB FP16) — fits on virtually any device with a GPU - End-to-end 1-bit weights across embeddings, attention projections, MLP projections, and LM head …

Parameters—
Context—
Weights1.2 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Model Card

By Pythai.net, published under apache-2.0, revision 87c4ff9b04e3.

End-to-end 1-bit language model for llama.cpp (CUDA, Metal, CPU) - 1.15 GB parameter memory (down from 16.38 GB FP16) — fits on virtually any device with a GPU - End-to-end 1-bit weights across embeddings, attention projections, MLP projections, and LM head - GGUF Q10 (g128) format with inline dequantization kernels — no FP16 materialization - Google Colab — try Bonsai in your browser, no setup required - Whitepaper — for more details on Bonsai, check out our whitepaper - Demo repo — comprehensive examples for serving, benchmarking, and integrating Bonsai - Discord — join the community for support, discussion, and updates - 1-bit kernels: llama.cpp fork (CUDA + Metal) · MLX fork (Apple…

Read Pythai.net's full model card

PYTHAI fork of prism-ml/Bonsai-8B-gguf at commit 48516770dd04643643e9f9019a2a349cf26c5dbd, weights included, LICENSE and NOTICE.txt unchanged. Provenance and checksums: FORK.json. Loads on mainline llama.cpp (ggml Q1_0). The upstream model card follows.

Prism ML Website  |  Whitepaper  |  Demo & Examples  |  Colab Notebook  |  Discord

Bonsai-8B-GGUF-1bit

End-to-end 1-bit language model for llama.cpp (CUDA, Metal, CPU)

14.1x smaller than FP16 | 6.2x faster on RTX 4090 | 4-5x lower energy/token

Highlights

  • 1.15 GB parameter memory (down from 16.38 GB FP16) — fits on virtually any device with a GPU
  • End-to-end 1-bit weights across embeddings, attention projections, MLP projections, and LM head
  • GGUF Q1_0 (g128) format with inline dequantization kernels — no FP16 materialization
  • Cross-platform: CUDA (RTX/datacenter), Metal (Mac), Android, CPU
  • Competitive benchmarks: 70.5 avg score across 6 categories, matching full-precision 8B models at 1/14th the size
  • MLX companion: also available as MLX 1-bit g128 for native Apple Silicon inference

Resources

  • Google Colab — try Bonsai in your browser, no setup required
  • Whitepaper — for more details on Bonsai, check out our whitepaper
  • Demo repo — comprehensive examples for serving, benchmarking, and integrating Bonsai
  • Discord — join the community for support, discussion, and updates
  • 1-bit kernels: llama.cpp fork (CUDA + Metal) · MLX fork (Apple Silicon) · mlx-swift fork (iOS/macOS)
  • Locally AI — we have partnered with Locally AI for iPhone support

Model Overview

Item Specification
Parameters 8.19B (~6.95B non-embedding)
Architecture Qwen3-8B dense: GQA (32 query / 8 KV heads), SwiGLU MLP, RoPE, RMSNorm
Layers 36 Transformer decoder blocks
Context length 65,536 tokens
Vocab size 151,936
Weight format GGUF Q1_0
Deployed size 1.15 GB (14.2x smaller than FP16)
1-bit coverage Embeddings, attention projections, MLP projections, LM head
License Apache 2.0

Quantization Format: Q1_0

Each weight is a single bit: 0 maps to −scale, 1 maps to +scale. Every group of 128 weights shares one FP16 scale factor.

Effective bits per weight: 1.125 (1 sign bit + 16-bit scale amortized over 128 weights).

Memory Requirement

Parameter memory only (weights and scales loaded into memory):

Format Size Reduction Ratio
FP16 16.38 GB — 1.0x
**GGUF Q1_0 ** 1.15 GB 93.0% 14.2x
MLX 1-bit g128 1.28 GB 92.2% 12.8x

The GGUF file on disk is 1.16 GB (~6.6 MB larger) because the format embeds the tokenizer, chat template, and model metadata alongside the weights.

Best Practices

Generation Parameters

Parameter Default Suggested range
Temperature 0.5 0.5 -- 0.7
Top-k 20 20 -- 40
Top-p 0.9 0.85 -- 0.95
Repetition penalty 1.0
Presence penalty 0.0

System Prompt

You can use a simple system prompt such as:

You are a helpful assistant

Quickstart

llama.cpp (CUDA)

# Clone the PrismML fork of llama.cpp (includes Q1_0 kernels)
git clone https://github.com/PrismML-Eng/llama.cpp
cd llama.cpp

# Build with CUDA support
cmake -B build -DGGML_CUDA=ON && cmake --build build -j

# Run inference
./build/bin/llama-cli \
    -m Bonsai-8B-Q1_0.gguf \
    -p "Explain quantum computing in simple terms." \
    -n 256 \
    --temp 0.5 \
    --top-p 0.85 \
    --top-k 20 \
    -ngl 99

llama.cpp (Metal / macOS)

# Clone the PrismML fork of llama.cpp (includes Q1_0 kernels)
git clone https://github.com/PrismML-Eng/llama.cpp
cd llama.cpp

# Build with Metal support (default on macOS)
cmake -B build && cmake --build build -j

# Run inference
./build/bin/llama-cli \
    -m Bonsai-8B-Q1_0.gguf \
    -p "Explain quantum computing in simple terms." \
    -n 256 \
    --temp 0.5 \
    --top-p 0.85 \
    --top-k 20 \
    -ngl 99

llama.cpp Server

./build/bin/llama-server \
    -m Bonsai-8B-Q1_0.gguf \
    --host 0.0.0.0 \
    --port 8080 \
    -ngl 99

Open the web UI at http://127.0.0.1:8080, or see our llama.cpp fork for more examples.

Cross-Platform Throughput

Platform Backend TG128 (tok/s) FP16 TG (tok/s) TG vs FP16 PP512 (tok/s) FP16 PP512 (tok/s)
RTX 4090 llama.cpp CUDA 368 59 6.2x 11,809 10,453
RTX L40S llama.cpp CUDA 327 52 6.3x 9,592 8,325
RTX 3060 Laptop llama.cpp CUDA 81 3.5¹ 23x¹ 1,871 94¹
M4 Pro 48 GB llama.cpp Metal 85 16 5.4x 498 490
Samsung S25 Ultra llama.cpp OpenCL 19.6 — — 30.4 —

¹ FP16 only fits partially on GPU's 6 GB VRAM; 1-bit fits entirely in VRAM.

Energy Efficiency

Platform Bonsai E_tg (mWh/tok) Baseline E_tg Advantage
RTX 4090 (CUDA) 0.276 1.134 (FP16) 4.1x
Mac M4 Pro (Metal) 0.091 0.471 (FP16) 5.1x

Benchmarks

Evaluated with EvalScope v1.4.2 + vLLM 0.15.1 on NVIDIA H100 under identical infrastructure, generation parameters, and scoring. All models are in the 6B–9B parameter range.

Model Company Size Avg MMLU-R MuSR GSM8K HE+ IFEval BFCL
Qwen 3 8B Alibaba 16 GB 79.3 83 55 93 82.3 84.2 81
RNJ 8B EssentialAI 16 GB 73.1 75.5 50.4 93.7 84.2 73.8 61.1
Mistral3 8B Mistral 16 GB 71.0 73.9 53.8 87.2 67.4 75.4 45.4
Olmo 3 7B Allen Inst 14 GB 70.9 72 56.1 92.5 79.3 37.1 38.4
1-bit Bonsai 8B PrismML 1.15 GB 70.5 65.7 50 88 73.8 79.8 65.7
LFM2 8B LiquidAI 16 GB 69.6 72.7 49.5 90.1 81 82.2 62.0
Llama 3.1 8B Meta 16 GB 67.1 72.9 51.3 87.9 75 51.5 —
GLM v6 9B ZhipuAI 16 GB 65.7 61.9 43.2 93.4 78.7 69.3 21.9
Hermes 8B Nous Research 16 GB 65.4 67.4 52.2 82.9 51.2 65 73.5
Trinity Nano 6B Arcee 12 GB 61.2 68.8 52.6 81.1 54 50 62.5
Marin 8B Stanford CRFM 16 GB 56.6 64.8 42.6 86.4 51 50 —
R1-D 7B DeepSeek 14 GB 55.1 62.5 29.1 92.7 81.7 48.8 15.4

Despite being 1/14th the size, 1-bit Bonsai 8B is competitive with leading full-precision 8B instruct models.

Intelligence Density

Intelligence density captures the ratio of a model's capability to its deployed size:

alpha = -ln(1 - score/100) / size_GB
Model Size Intelligence Density (1/GB)
1-bit Bonsai 8B 1.15 GB 1.062
Qwen 3 8B 16 GB 0.098
Llama 3.1 8B 16 GB 0.074
Mistral3 8B 16 GB 0.077

Bonsai 8B achieves 10.8x higher intelligence density than full-precision Qwen 3 8B.

Use Cases

  • On-device assistants: interactive AI on laptops and phones with low latency
  • Mobile deployment: runs on a wide variety of phones due to low memory footprint
  • Edge robotics and autonomy: compact deployment on devices with thermal, memory, or connectivity constraints
  • Cost-sensitive GPU serving: higher throughput and lower energy per token on RTX-class and datacenter GPUs
  • Enterprise and private inference: local or controlled-environment inference for data residency requirements

Limitations

  • No native 1-bit hardware exists yet — current gains are software-kernel optimizations on general-purpose hardware
  • Mobile power measurement is estimated rather than hardware-metered
  • The full-precision benchmark frontier continues to advance; the 1-bit methodology is architecture-agnostic and will be applied to newer bases

Citation

If you use 1-bit Bonsai 8B, please cite:

@techreport{bonsai8b,
    title   = {1-bit Bonsai 8B: End-to-End 1-bit Language Model Deployment
               Across Apple, GPU, and Mobile Runtimes},
    author  = {Prism ML},
    year    = {2026},
    month   = {March},
    url     = {https://prismml.com}
}

Contact

For questions, feedback, or collaboration inquiries: [email protected]

Identity and Version

Repository
PYTHAI/Bonsai-8B-gguf-fork
Publisher
Pythai.net
Task
Text generation
Modality
Text
Library
llama.cpp
Parameters
Not stated by the source
Languages
on-device
Revision
87c4ff9b04e32b7bc71d66d62a803f3e3aa002b4
First published
2026-09-26
Last updated
2026-09-26

Files and Weights

13 files, 1.2 GB in total. The weights are 1 file totalling 1.2 GB in gguf.

Weights1 file · 1.2 GB
Configuration2 files · 3.0 KB
Documentation2 files · 22.2 KB
Other7 files · 382.7 KB
Repository1 file · 1.8 KB
Every file
FileTypeSizeSHA-256
Bonsai-8B-Q1_0.ggufWeights1.2 GB 284a335aa3fb
.eval_results/gsm8k.yamlConfiguration150 B —
FORK.jsonConfiguration2.8 KB —
LICENSEDocumentation10.2 KB —
README.mdDocumentation12.0 KB —
NOTICE.txtOther412 B —
assets/bonsai-logo.svgOther515 B —
assets/energy_8B.pngOther72.4 KB —
assets/frontier.pngOther106.6 KB 2bcd6744b004
assets/frontier.svgOther10.4 KB —
assets/intel_density_8B.pngOther103.3 KB 432f88f6e412
assets/speeds_8B.pngOther89.0 KB —
.gitattributesRepository1.8 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
1.2 GB
Download from Pythai.net

Released by Pythai.net through its official repository on Hugging Face. Read the license.

Built From

  • Derived from prism-ml/Bonsai-8B-unpacked
  • Quantized from prism-ml/Bonsai-8B-unpacked

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
openai/gsm8k Task gsm8kMetric gsm8kComparison conditions not established 88 Model Card
Reported by a third party
Evaluated revision not stated 2026-09-26

Memory Requirements

PrecisionWeights in memory
As published1.2 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Bonsai-8B-gguf-fork

Can I use Bonsai-8B-gguf-fork commercially?

Yes. Bonsai-8B-gguf-fork is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers