prism-ml / Bonsai-1.7B-gguf

huggingface.co
Total runs: 65.1K
24-hour runs: -389
7-day runs: 2.2K
30-day runs: 688
Model's Last Updated: April 19 2026
text-generation

Introduction of Bonsai-1.7B-gguf

Model Details of Bonsai-1.7B-gguf

Bonsai

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

Bonsai-1.7B-GGUF-1bit

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

13.9x smaller than FP16 | 3.0x faster on RTX 4090 | runs on any device

Highlights
  • Deployed footprint — runs on virtually any device
  • End-to-end 1-bit weights across embeddings, attention projections, MLP projections, and LM head
  • GGUF Q1_0_g128 format for 1-bit packing of weights with shared scales for each group (group size 128).
  • Cross-platform : CUDA (RTX/datacenter), Metal (Mac), Swift (iPhone/iPad), Android
  • MLX companion : also available as MLX 1-bit g128 for native Apple Silicon inference

Frontier Efficiency

Resources
Model Overview
Item Specification
Parameters 1.7B (~1.4B non-embedding)
Architecture Qwen3-1.7B dense: GQA (16 query / 8 KV heads), SwiGLU MLP, RoPE, RMSNorm
Layers 28 Transformer decoder blocks
Context length 32,768 tokens
Vocab size 151,936
Weight format GGUF Q1_0_g128
Deployed size 0.24 GB (14.2x smaller than FP16)
1-bit coverage Embeddings, attention projections, MLP projections, LM head
License Apache 2.0
Quantization Format: Q1_0_g128

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 3.44 GB — 1.0x
GGUF Q1_0_g128 0.24 GB 93.0% 14.2x
MLX 1-bit g128 0.27 GB 92.2% 12.8x

The GGUF file on disk is 0.25 GB (~6.2 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_g128 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-1.7B-Q1_0_g128.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_g128 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-1.7B-Q1_0_g128.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-1.7B-Q1_0_g128.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 674 224 3.0x 31,899 30,630
M4 Pro 48 GB llama.cpp Metal 250 65 3.8x 2,305 2,291
Citation

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

@techreport{bonsai,
    title   = {Bonsai: 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]

Runs of prism-ml Bonsai-1.7B-gguf on huggingface.co

65.1K
Total runs
-389
24-hour runs
432
3-day runs
2.2K
7-day runs
688
30-day runs

More Information About Bonsai-1.7B-gguf huggingface.co Model

More Bonsai-1.7B-gguf license Visit here:

https://choosealicense.com/licenses/apache-2.0

Bonsai-1.7B-gguf huggingface.co

Bonsai-1.7B-gguf huggingface.co is an AI model on huggingface.co that provides Bonsai-1.7B-gguf's model effect (), which can be used instantly with this prism-ml Bonsai-1.7B-gguf model. huggingface.co supports a free trial of the Bonsai-1.7B-gguf model, and also provides paid use of the Bonsai-1.7B-gguf. Support call Bonsai-1.7B-gguf model through api, including Node.js, Python, http.

Bonsai-1.7B-gguf huggingface.co Url

https://huggingface.co/prism-ml/Bonsai-1.7B-gguf

prism-ml Bonsai-1.7B-gguf online free

Bonsai-1.7B-gguf huggingface.co is an online trial and call api platform, which integrates Bonsai-1.7B-gguf's modeling effects, including api services, and provides a free online trial of Bonsai-1.7B-gguf, you can try Bonsai-1.7B-gguf online for free by clicking the link below.

prism-ml Bonsai-1.7B-gguf online free url in huggingface.co:

https://huggingface.co/prism-ml/Bonsai-1.7B-gguf

Bonsai-1.7B-gguf install

Bonsai-1.7B-gguf is an open source model from GitHub that offers a free installation service, and any user can find Bonsai-1.7B-gguf on GitHub to install. At the same time, huggingface.co provides the effect of Bonsai-1.7B-gguf install, users can directly use Bonsai-1.7B-gguf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Bonsai-1.7B-gguf install url in huggingface.co:

https://huggingface.co/prism-ml/Bonsai-1.7B-gguf

Url of Bonsai-1.7B-gguf

Bonsai-1.7B-gguf huggingface.co Url

Provider of Bonsai-1.7B-gguf huggingface.co

prism-ml
ORGANIZATIONS

Other API from prism-ml