Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

readme: brio mode, and the dashboard as it is now

JustVugg099aac9a2f78
diff --git a/README.it.md b/README.it.md
index 8c7e6385..bcc5fb06 100644
--- a/README.it.md
+++ b/README.it.md
@@ -45,9 +45,16 @@ $ ./coli chat
<p align="center">
<img src="docs/media/colibri-dashboard.png" width="900" alt="dashboard web di colibrì — metriche live, pannello hardware, livelli degli expert">
</p>
-<p align="center"><em>La dashboard web (<code>./coli web</code>): un modello da 744B a <strong>4 tok/s, TTFT 1.6 s, disco 0</strong> —
-residenza completa degli expert su 6× RTX 5090, con metriche token in tempo reale, breakdown dei tempi per turno,
-la barra dei livelli VRAM/RAM/disco e il mini-cervello live nell'angolo.</em></p>
+<p align="center"><em>La dashboard web (<code>./coli web</code>), ridisegnata nella 1.12.0: uno spazio di lavoro con un dock per la chat,
+la modalità Brio, la pagina Brain e il Profiling, in tema chiaro o scuro. Qui Qwen3.6 che risponde su una macchina
+solo CPU, con gli expert letti dal disco.</em></p>
+
+<p align="center">
+ <img src="docs/media/colibri-brio.png" width="900" alt="la pagina Brio: un documento letto una volta, una probabilità per ogni risposta ammessa, e un'entropia">
+</p>
+<p align="center"><em><strong>Modalità Brio</strong>: lo stesso modello, a cui si dice di non scrivere. Gli dai un documento e le sole risposte
+che può scegliere; legge la probabilità di ciascuna, non genera niente, e riporta un'entropia che dice quando non è
+sicuro. Qui: <strong>request changes al 99.9%</strong>, entropia 0.005, 4 token letti, 0 generati.</em></p>
<p align="center">
<img src="docs/media/colibri-brain.png" width="900" alt="la pagina Brain — 19.456 expert come una corteccia vivente">
@@ -317,6 +324,39 @@ COLI_MODEL=/nvme/glm52_i4 ./coli doctor # controllo di idoneità (sola lettura
./coli serve --model /nvme/glm52_i4 # solo API compatibile OpenAI
```
+#### Modalità Brio: una domanda a risposta chiusa
+
+Gran parte di ciò che si chiede a un modello è una scelta, non un paragrafo:
+quale coda, quale verdetto, quale dei quattro valori può prendere un campo. La
+modalità Brio passa al motore le opzioni e legge la probabilità di ciascuna
+invece di generare: `completion_tokens` è 0, nessuna risposta può uscire dalla
+tua lista, e ogni risposta arriva con un'entropia, così "il modello non è
+sicuro" è un numero su cui mettere una soglia. Funziona su tutte e nove le
+famiglie, sullo stesso server, ed è opzionale per richiesta: la chat resta
+identica byte per byte per chi non la chiede.
+
+```bash
+# nella TUI: lo stesso modello, a cui si dice di non scrivere
+./coli chat --model /nvme/qwen36_i4_gs64
+> /brio merge | request changes | close
+> 340 lines, 8 files, no tests. CI is green but nothing covers that path.
+
+# da qualunque programma: una richiesta JSON al server in esecuzione
+curl -s http://127.0.0.1:8000/v1/brio -H 'Content-Type: application/json' -d '{
+ "model": "qwen36",
+ "state": "340 lines, 8 files, no tests. CI is green but nothing covers that path.",
+ "question": "What should the reviewer do?",
+ "options": ["merge", "request changes", "close"]}'
+```
+
+`questions` fa molte domande su un documento letto una volta sola, e `schema`
+riempie un oggetto JSON un campo alla volta, valido per costruzione. Misurato
+su Qwen3.6 contro la generazione della stessa risposta sulla stessa macchina
+CPU: 2,4x su uno schema a quattro campi, 5,7x su quattro domande sullo stesso
+documento. Tutta la modalità, la forma di richiesta e risposta, e dove non
+serve: [docs/brio.md](docs/brio.md). Anche la dashboard ha una pagina Brio.
+
+
Su Windows gli stessi comandi funzionano con `python coli chat --model D:\glm52_i4`.
Il motore a runtime è puro C — python si usa solo per il convertitore (una tantum)
e per il gateway API opzionale.
@@ -331,6 +371,7 @@ e per il gateway API opzionale.
| Backend CUDA, livello expert in VRAM, residenza completa | [docs/cuda.md](docs/cuda.md) |
| Backend Metal per Apple Silicon | [docs/metal.md](docs/metal.md) |
| API compatibile OpenAI, KV slot, dashboard web | [docs/api.md](docs/api.md) |
+| Modalità Brio: punteggiare un insieme chiuso di opzioni invece di generare | [docs/brio.md](docs/brio.md) |
| Draft forzati da grammatica (output strutturato) | [docs/grammar-draft.md](docs/grammar-draft.md) |
| Inventario delle variabili d'ambiente | [docs/ENVIRONMENT.md](docs/ENVIRONMENT.md) |
diff --git a/README.md b/README.md
index 2c3205df..9a774c66 100644
--- a/README.md
+++ b/README.md
@@ -51,9 +51,16 @@ $ ./coli chat
<p align="center">
<img src="docs/media/colibri-dashboard.png" width="900" alt="colibrì web dashboard — live metrics, hardware panel, expert tiers">
</p>
-<p align="center"><em>The web dashboard (<code>./coli web</code>): a 744B model at <strong>4 tok/s, TTFT 1.6 s, disk 0</strong> —
-full expert residency on 6× RTX 5090, with live token metrics, the per-turn time breakdown,
-the VRAM/RAM/disk tier bar and the live mini-brain in the corner.</em></p>
+<p align="center"><em>The web dashboard (<code>./coli web</code>), redesigned in 1.12.0: a workspace with a dock for the chat,
+Brio mode, the Brain page and Profiling, in a light or a dark theme. Here Qwen3.6 answering on a CPU box,
+experts streamed from disk.</em></p>
+
+<p align="center">
+ <img src="docs/media/colibri-brio.png" width="900" alt="the Brio page: a document read once, a probability for every allowed answer, and an entropy">
+</p>
+<p align="center"><em><strong>Brio mode</strong>: the same model, told to stop writing. Give it a document and the only answers
+it may pick; it reads the probability of each one, generates nothing, and reports an entropy that says when it is
+not sure. Here: <strong>request changes at 99.9%</strong>, entropy 0.005, 4 tokens read, 0 generated.</em></p>
<p align="center">
<img src="docs/media/colibri-brain.png" width="900" alt="the Brain page — 19,456 experts as a live cortex">
@@ -473,6 +480,39 @@ COLI_MODEL=/nvme/glm52_i4 ./coli tune # measure and save this machine's fast
./coli serve --model /nvme/glm52_i4 # API + dashboard, no browser (headless)
```
+#### Brio mode: ask a closed question
+
+Most of what people ask a model for is a choice, not a paragraph: which queue,
+which verdict, which of the four values a field may take. Brio mode hands the
+engine the options and reads the probability of each one instead of
+generating: `completion_tokens` is 0, no answer can fall outside your list,
+and every answer comes with an entropy, so "the model is not sure" is a
+number you can put a threshold on. It runs on all nine families, on the same
+server, and it is opt-in per request: chat is byte-identical for everyone who
+does not ask for it.
+
+```bash
+# in the TUI: the same model, told to stop writing
+./coli chat --model /nvme/qwen36_i4_gs64
+> /brio merge | request changes | close
+> 340 lines, 8 files, no tests. CI is green but nothing covers that path.
+
+# from anywhere: one JSON request on the running server
+curl -s http://127.0.0.1:8000/v1/brio -H 'Content-Type: application/json' -d '{
+ "model": "qwen36",
+ "state": "340 lines, 8 files, no tests. CI is green but nothing covers that path.",
+ "question": "What should the reviewer do?",
+ "options": ["merge", "request changes", "close"]}'
+```
+
+`questions` asks many things about one document read once, and `schema` fills
+a JSON object one field at a time, valid by construction. Measured on Qwen3.6
+against generating the same answer on the same CPU box: 2.4x on a four-field
+schema, 5.7x on four questions about one document. The whole mode, the
+request and reply shapes, and where it does not help: [docs/brio.md](docs/brio.md).
+The dashboard has a Brio page as well.
+
+
On Windows a release archive ships `coli.cmd`: double-click it for the quick
start, or run `coli.cmd chat --model D:\glm52_i4` from cmd or PowerShell.
From a source checkout the same commands work with `python coli chat --model
@@ -528,6 +568,7 @@ Two things that differ per model, both documented in the per-model page:
| Vulkan backend (any GPU: AMD via RADV, incl. cards ROCm dropped) | [docs/vulkan.md](docs/vulkan.md) |
| Apple Silicon Metal backend | [docs/metal.md](docs/metal.md) |
| OpenAI-compatible API, KV slots, web dashboard | [docs/api.md](docs/api.md) |
+| Brio mode: score a closed set of options instead of generating | [docs/brio.md](docs/brio.md) |
| Experimental layer-segment embedding ABI | [docs/segment-runtime.md](docs/segment-runtime.md) |
| Experimental tokenizer/embedding/head Edge ABI | [docs/edge-runtime.md](docs/edge-runtime.md) |
| Grammar-forced drafts (structured output) | [docs/grammar-draft.md](docs/grammar-draft.md) |
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 21bb12bc..961dea44 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -36,9 +36,15 @@ $ ./coli chat
<p align="center">
<img src="docs/media/colibri-dashboard.png" width="900" alt="colibrì 网页仪表盘——实时指标、硬件面板与专家存储层级">
</p>
-<p align="center"><em>网页仪表盘(<code>./coli web</code>):744B 模型达到 <strong>4 tok/s、TTFT 1.6 秒、磁盘读取 0</strong>——
-在 6× RTX 5090 上让所有专家常驻,并实时显示 token 指标、每轮耗时明细、
-VRAM/RAM/磁盘层级条,以及角落的实时迷你大脑。</em></p>
+<p align="center"><em>网页仪表盘(<code>./coli web</code>),1.12.0 重新设计:一个工作区,底部停靠栏切换聊天、Brio 模式、
+Brain 页面和性能分析,支持浅色与深色主题。图中是 Qwen3.6 在纯 CPU 机器上作答,专家从磁盘流式读取。</em></p>
+
+<p align="center">
+ <img src="docs/media/colibri-brio.png" width="900" alt="Brio 页面:文档只读一次,每个允许的答案各有一个概率,并给出熵">
+</p>
+<p align="center"><em><strong>Brio 模式</strong>:同一个模型,只是不再让它写。给它一段文档和唯一允许的几个答案,
+它读出每个答案的概率,不生成任何 token,并给出一个熵,说明它何时没有把握。图中:<strong>request changes,99.9%</strong>,
+熵 0.005,读取 4 个 token,生成 0 个。</em></p>
<p align="center">
<img src="docs/media/colibri-brain.png" width="900" alt="大脑页面——以实时皮层呈现 19,456 个专家">
@@ -273,6 +279,33 @@ COLI_MODEL=/nvme/glm52_i4 ./coli doctor # 只读就绪检查
./coli serve --model /nvme/glm52_i4 # 仅提供 OpenAI 兼容 API
```
+#### Brio 模式:问一个封闭式问题
+
+人们向模型提出的大多数请求是一次选择,而不是一段文字:哪个队列、哪个结论、某个字段应取四个值中的哪一个。
+Brio 模式把允许的选项交给引擎,读出每个选项的概率,而不是生成文本:`completion_tokens` 为 0,
+答案不可能落在你的列表之外,并且每个答案都附带一个熵,"模型没有把握"因此成为一个可以设阈值的数字。
+它在全部九个模型家族上可用,运行在同一个服务器上,且按请求可选:不请求它的聊天,输出逐字节保持不变。
+
+```bash
+# 在 TUI 中:同一个模型,只是不再让它写
+./coli chat --model /nvme/qwen36_i4_gs64
+> /brio merge | request changes | close
+> 340 lines, 8 files, no tests. CI is green but nothing covers that path.
+
+# 从任何程序:向运行中的服务器发送一个 JSON 请求
+curl -s http://127.0.0.1:8000/v1/brio -H 'Content-Type: application/json' -d '{
+ "model": "qwen36",
+ "state": "340 lines, 8 files, no tests. CI is green but nothing covers that path.",
+ "question": "What should the reviewer do?",
+ "options": ["merge", "request changes", "close"]}'
+```
+
+`questions` 可以对只读一次的文档提出多个问题;`schema` 逐字段填充一个 JSON 对象,结构上必然合法。
+在 Qwen3.6 上与在同一台 CPU 机器上生成同样答案相比的实测:四字段 schema 快 2.4 倍,
+对同一文档的四个问题快 5.7 倍。完整说明、请求与回复格式、以及它不适用的情形见 [docs/brio.md](docs/brio.md)。
+仪表盘中也有 Brio 页面。
+
+
在 Windows 上同样使用这些命令,写作 `python coli chat --model D:\glm52_i4`。
引擎运行时是纯 C——python 只供一次性转换工具与可选的 API gateway 使用。
@@ -286,6 +319,7 @@ COLI_MODEL=/nvme/glm52_i4 ./coli doctor # 只读就绪检查
| CUDA 后端、VRAM 专家层级、全部常驻 | [docs/cuda.md](docs/cuda.md) |
| Apple Silicon Metal 后端 | [docs/metal.md](docs/metal.md) |
| OpenAI 兼容 API、KV slots、网页仪表盘 | [docs/api.md](docs/api.md) |
+| Brio 模式:对封闭的选项集打分而不是生成 | [docs/brio.md](docs/brio.md) |
| 语法强制草稿(结构化输出) | [docs/grammar-draft.md](docs/grammar-draft.md) |
| 环境变量完整清单 | [docs/ENVIRONMENT.md](docs/ENVIRONMENT.md) |
diff --git a/README.zh-TW.md b/README.zh-TW.md
index 1ab674ca..756ada46 100644
--- a/README.zh-TW.md
+++ b/README.zh-TW.md
@@ -36,9 +36,15 @@ $ ./coli chat
<p align="center">
<img src="docs/media/colibri-dashboard.png" width="900" alt="colibrì 網頁儀表板——即時指標、硬體面板與專家儲存層級">
</p>
-<p align="center"><em>網頁儀表板(<code>./coli web</code>):744B 模型達到 <strong>4 tok/s、TTFT 1.6 秒、硬碟讀取 0</strong>——
-在 6× RTX 5090 上讓所有專家常駐,並即時顯示 token 指標、每輪耗時明細、
-VRAM/RAM/硬碟層級長條,以及角落的即時迷你大腦。</em></p>
+<p align="center"><em>網頁儀表板(<code>./coli web</code>),1.12.0 重新設計:一個工作區,底部停靠列切換聊天、Brio 模式、
+Brain 頁面和效能分析,支援淺色與深色主題。圖中是 Qwen3.6 在純 CPU 機器上作答,專家從硬碟串流讀取。</em></p>
+
+<p align="center">
+ <img src="docs/media/colibri-brio.png" width="900" alt="Brio 頁面:文件只讀一次,每個允許的答案各有一個機率,並給出熵">
+</p>
+<p align="center"><em><strong>Brio 模式</strong>:同一個模型,只是不再讓它寫。給它一段文件和唯一允許的幾個答案,
+它讀出每個答案的機率,不生成任何 token,並給出一個熵,說明它何時沒有把握。圖中:<strong>request changes,99.9%</strong>,
+熵 0.005,讀取 4 個 token,生成 0 個。</em></p>
<p align="center">
<img src="docs/media/colibri-brain.png" width="900" alt="大腦頁面——以即時皮質呈現 19,456 個專家">
@@ -274,6 +280,33 @@ COLI_MODEL=/nvme/glm52_i4 ./coli doctor # 唯讀就緒檢查
./coli serve --model /nvme/glm52_i4 # 僅提供 OpenAI 相容 API
```
+#### Brio 模式:問一個封閉式問題
+
+人們向模型提出的大多數請求是一次選擇,而不是一段文字:哪個佇列、哪個結論、某個欄位應取四個值中的哪一個。
+Brio 模式把允許的選項交給引擎,讀出每個選項的機率,而不是生成文字:`completion_tokens` 为 0,
+答案不可能落在你的清單之外,並且每個答案都附帶一個熵,"模型沒有把握"因此成為一個可以設門檻的數字。
+它在全部九個模型家族上可用,執行在同一個伺服器上,且按請求可選:不請求它的聊天,輸出逐位元組保持不變。
+
+```bash
+# 在 TUI 中:同一個模型,只是不再讓它寫
+./coli chat --model /nvme/qwen36_i4_gs64
+> /brio merge | request changes | close
+> 340 lines, 8 files, no tests. CI is green but nothing covers that path.
+
+# 從任何程式:向執行中的伺服器傳送一個 JSON 請求
+curl -s http://127.0.0.1:8000/v1/brio -H 'Content-Type: application/json' -d '{
+ "model": "qwen36",
+ "state": "340 lines, 8 files, no tests. CI is green but nothing covers that path.",
+ "question": "What should the reviewer do?",
+ "options": ["merge", "request changes", "close"]}'
+```
+
+`questions` 可以對只讀一次的文件提出多個問題;`schema` 逐欄位填充一個 JSON 物件,結構上必然合法。
+在 Qwen3.6 上與在同一台 CPU 機器上生成同樣答案相比的實測:四欄位 schema 快 2.4 倍,
+對同一文件的四個問題快 5.7 倍。完整說明、請求與回覆格式、以及它不適用的情形見 [docs/brio.md](docs/brio.md)。
+儀表板中也有 Brio 頁面。
+
+
在 Windows 上同樣使用這些指令,寫作 `python coli chat --model D:\glm52_i4`。
引擎執行階段是純 C——python 只供單次轉換工具與選用的 API gateway 使用。
@@ -287,6 +320,7 @@ COLI_MODEL=/nvme/glm52_i4 ./coli doctor # 唯讀就緒檢查
| CUDA 後端、VRAM 專家層級、全部常駐 | [docs/cuda.md](docs/cuda.md) |
| Apple Silicon Metal 後端 | [docs/metal.md](docs/metal.md) |
| OpenAI 相容 API、KV slots、網頁儀表板 | [docs/api.md](docs/api.md) |
+| Brio 模式:對封閉的選項集評分而不是生成 | [docs/brio.md](docs/brio.md) |
| 文法強制草稿(結構化輸出) | [docs/grammar-draft.md](docs/grammar-draft.md) |
| 環境變數完整清單 | [docs/ENVIRONMENT.md](docs/ENVIRONMENT.md) |
diff --git a/docs/media/colibri-brio.png b/docs/media/colibri-brio.png
new file mode 100644
index 00000000..8cc1dac9
Binary files /dev/null and b/docs/media/colibri-brio.png differ
diff --git a/docs/media/colibri-dashboard.png b/docs/media/colibri-dashboard.png
index d51aa087..b13e1b85 100644
Binary files a/docs/media/colibri-dashboard.png and b/docs/media/colibri-dashboard.png differ