This repo provides an AWQ 4-bit checkpoint so you can run Bonsai-8B on
sglang
(or vLLM) until native 1-bit support lands in those engines. The repack from 1-bit to AWQ 4-bit is
lossless
. Both formats use group size 128, and Bonsai's binary weights (±d) fit exactly inside AWQ INT4 by an exact conversion formula.
For the best Bonsai experience on edge or consumer-grade hardware, use the native 1-bit releases.
The 1-bit format is where Bonsai's memory and energy wins come from.
Bonsai-8B-gguf
- 1-bit gguf supported by llama.cpp across many backends (GPU, Metal, CPU, Vulkan, etc)
Bonsai-8B FP16
— FP16 safetensors for stock HuggingFace tooling.
How It Works
Bonsai weights are ±d (binary) with a shared scale across a group size of 128. INT4 can represent these values exactly. Embedding and
lm_head
stay FP16 due to sglang limitations.
# Completion API
curl http://localhost:8000/v1/completions \
-H "Content-Type: application/json" \
-d '{"model":"Bonsai-8B","prompt":"The capital of France is","max_tokens":20}'# Chat API
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"Bonsai-8B","messages":[{"role":"user","content":"Who are you?"}],"max_tokens":100}'
With pre-built sgl-kernel wheels: 15 s. First launch on an arch without pre-built wheels (e.g. L40S / sm_89) takes 3–5 min while sglang JIT-compiles Marlin GEMM + FlashInfer kernels; artifacts cache to
~/.cache/tvm-ffi/
and
~/.cache/flashinfer/
, so subsequent launches drop back to 15 s.
Known-good environment
Example of successful end-to-end serving environment:
Bonsai-8B-AWQ-4-bit huggingface.co is an AI model on huggingface.co that provides Bonsai-8B-AWQ-4-bit's model effect (), which can be used instantly with this prism-ml Bonsai-8B-AWQ-4-bit model. huggingface.co supports a free trial of the Bonsai-8B-AWQ-4-bit model, and also provides paid use of the Bonsai-8B-AWQ-4-bit. Support call Bonsai-8B-AWQ-4-bit model through api, including Node.js, Python, http.
Bonsai-8B-AWQ-4-bit huggingface.co is an online trial and call api platform, which integrates Bonsai-8B-AWQ-4-bit's modeling effects, including api services, and provides a free online trial of Bonsai-8B-AWQ-4-bit, you can try Bonsai-8B-AWQ-4-bit online for free by clicking the link below.
prism-ml Bonsai-8B-AWQ-4-bit online free url in huggingface.co:
Bonsai-8B-AWQ-4-bit is an open source model from GitHub that offers a free installation service, and any user can find Bonsai-8B-AWQ-4-bit on GitHub to install. At the same time, huggingface.co provides the effect of Bonsai-8B-AWQ-4-bit install, users can directly use Bonsai-8B-AWQ-4-bit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Bonsai-8B-AWQ-4-bit install url in huggingface.co: