Views
No views yet
--o1): convert attention to a
constant-memory streaming operator — no retraining, weights
byte-identical.cargo install cortiq-cli # needs >= 0.5.51# download the model file (~2.32 GB)
2huggingface-cli download infosave/Bonsai-8B_2bit_cmf bonsai-8b-q1t.cmf --local-dir .
3
4# chat (the file carries its own chat template)
5cortiq run bonsai-8b-q1t.cmf --prompt "Привет"
6
7# Apple Silicon: run the whole-token Metal graph (~20 tok/s)
8CMF_GPU=1 cortiq run bonsai-8b-q1t.cmf --prompt "Привет"
9
10# raw completion mode (no chat template)
11cortiq run bonsai-8b-q1t.cmf --prompt "The capital of France is" --raw --greedycortiq serve speaks the OpenAI API, so existing clients and SDKs work
unchanged:CMF_GPU=1 cortiq serve bonsai-8b-q1t.cmf --port 8080 # + web dashboard on /1curl localhost:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{
2 "model": "cmf",
3 "messages": [{"role": "user", "content": "Explain mmap in one sentence."}]
4}'| Mode | Speed |
|---|---|
decode, CMF_GPU=1 (whole-token Metal graph) | ~20.2 tok/s |
| decode, CPU only | ~4.2 tok/s |
| resident memory | ≈ file size (mmap) |
cortiq convert --model prism-ml/Bonsai-8B --quant q1t --output bonsai-8b-q1t.cmf