Bonsai-27B — CMF q1 (4.75 GB, runs on a 24 GB MacBook)
Bonsai-27B
— a
1-bit-
trained
27B hybrid (16 full-attention + 48 GatedDeltaNet
layers, 248K vocabulary) — packed into a single
CMF
file with
q1
encoding:
1.5 bits per weight, 6 bytes per 32 weights.
Because the model was
trained
at 1 bit, q1 is its native
representation, not a lossy afterthought: generation is
token-for-token identical
to the same model stored at q8. The whole
model is one 4.75 GB file that memory-maps straight off disk and
decodes at
9–11 tok/s on an Apple M4 MacBook (24 GB)
through a
whole-token Metal graph.
What is CMF?
CMF (Cortiq Model Format) is a single-file LLM container with a small
pure-Rust runtime — no Python, no torch, no C++ toolchain, no CUDA
install:
One file
carries the weights, tokenizer and chat template, and
checks its own integrity.
mmap-first
: pages load lazily on first touch; start-up is fast
and RAM stays near the file size.
# download the model file (~4.75 GB)
huggingface-cli download infosave/Bonsai-27Bcmf bonsai-27b-q1.cmf --local-dir .
# chat (the file carries its own chat template)
cortiq run bonsai-27b-q1.cmf --prompt "Explain mmap in one sentence."# Apple Silicon: run the whole-token Metal graph (9-11 tok/s on an M4)
CMF_GPU=1 cortiq run bonsai-27b-q1.cmf --prompt "Explain mmap in one sentence."# raw completion mode (no chat template)
cortiq run bonsai-27b-q1.cmf --prompt "The capital of France is" --raw --greedy
Run as a server
cortiq serve
speaks the OpenAI API, so existing clients and SDKs work
unchanged:
CMF_GPU=1 cortiq serve bonsai-27b-q1.cmf --port 8080 # + web dashboard on /
curl localhost:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{ "model": "cmf", "messages": [{"role": "user", "content": "Explain mmap in one sentence."}]}'
Streaming (
"stream": true
),
/v1/models
,
/v1/completions
and
/healthz
work too. Note the scope honestly: requests are serialized
(one at a time per model) and there is no authentication — a
local-first server, not a multi-tenant gateway.
Performance (Apple M4, 24 GB MacBook)
Mode
Speed
decode,
CMF_GPU=1
(whole-token Metal graph)
9–11.4 tok/s
decode, CPU only
~3.2 tok/s
resident memory
≈ file size (mmap)
The GPU decode is distribution-equivalent to the CPU path (reduction
order differs — the usual GPU tolerance class).
q1 is intended for 1-bit-
trained
checkpoints (Bonsai / BitNet
class). As post-training quantization of an ordinary model it destroys
quality — the converter exposes it only as an explicit opt-in.
Runs of infosave Bonsai-27Bcmf on huggingface.co
77
Total runs
-3
24-hour runs
-3
3-day runs
-10
7-day runs
77
30-day runs
More Information About Bonsai-27Bcmf huggingface.co Model
Bonsai-27Bcmf huggingface.co is an AI model on huggingface.co that provides Bonsai-27Bcmf's model effect (), which can be used instantly with this infosave Bonsai-27Bcmf model. huggingface.co supports a free trial of the Bonsai-27Bcmf model, and also provides paid use of the Bonsai-27Bcmf. Support call Bonsai-27Bcmf model through api, including Node.js, Python, http.
Bonsai-27Bcmf huggingface.co is an online trial and call api platform, which integrates Bonsai-27Bcmf's modeling effects, including api services, and provides a free online trial of Bonsai-27Bcmf, you can try Bonsai-27Bcmf online for free by clicking the link below.
infosave Bonsai-27Bcmf online free url in huggingface.co:
Bonsai-27Bcmf is an open source model from GitHub that offers a free installation service, and any user can find Bonsai-27Bcmf on GitHub to install. At the same time, huggingface.co provides the effect of Bonsai-27Bcmf install, users can directly use Bonsai-27Bcmf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.