Skip to content

Commit e98b985

Browse files
committed
Version 0.9.0: d1-2B decisions and the /decide page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9b05e40 commit e98b985

5 files changed

Lines changed: 66 additions & 41 deletions

File tree

‎.github/release-notes.md‎

Lines changed: 58 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,76 @@
1-
Pithos is a dependency-free C engine that runs Liquid AI's LFM2.5-24B-A2B, LFM2.5-8B-A1B, LFM3-1.7B
2-
and LFM3-Audio-2B, and Qwen3.6-35B-A3B and Inkling 2 Mini (experimental), locally, with a terminal
3-
chat, the Pandora web chat, an OpenAI-compatible server and a terminal agent. This release adds the
4-
smallest Inkling 2 Mini file, which fits in 12 GB of RAM.
1+
Pithos is a dependency-free C engine that runs Liquid AI's LFM2.5-24B-A2B, LFM2.5-8B-A1B, LFM3-1.7B,
2+
LFM3-Audio-2B and d1-2B, and Qwen3.6-35B-A3B and Inkling 2 Mini (experimental), locally, with a terminal
3+
chat, the Pandora web chat, an OpenAI-compatible server and a terminal agent. This release adds
4+
d1-2B, a decision model that answers typed questions about a text, a JSON record or a photo, with the
5+
probability of every answer, and a page to try it in the browser.
56

67
## Downloads
78

89
| File | For |
910
|---|---|
10-
| `pithos-0.8.6-windows-x64.zip` | Windows 10 / 11, 64-bit (AVX2, AVX or scalar kernels chosen at run time) |
11-
| `pithos-0.8.6-linux-x64.tar.gz` | Linux x86-64 with glibc 2.34 or newer (Ubuntu 22.04+, Debian 12+, RHEL / Rocky 9+, Fedora 35+...) |
12-
| `pithos-0.8.6-linux-arm64.tar.gz` | Linux ARM64 (**experimental**): `pithos` for ARMv8.2 with dot product (Raspberry Pi 5, RK3566 / RK3588, Graviton 2+), `pithos-armv8` for older cores (Raspberry Pi 3 / 4) |
11+
| `pithos-0.9.0-windows-x64.zip` | Windows 10 / 11, 64-bit (AVX2, AVX or scalar kernels chosen at run time) |
12+
| `pithos-0.9.0-linux-x64.tar.gz` | Linux x86-64 with glibc 2.34 or newer (Ubuntu 22.04+, Debian 12+, RHEL / Rocky 9+, Fedora 35+...) |
13+
| `pithos-0.9.0-linux-arm64.tar.gz` | Linux ARM64 (**experimental**): `pithos` for ARMv8.2 with dot product (Raspberry Pi 5, RK3566 / RK3588, Graviton 2+), `pithos-armv8` for older cores (Raspberry Pi 3 / 4) |
1314
| `SHA256SUMS` | checksums of the archives |
1415

1516
The model is not included: download it as described in the README (LFM3-1.7B is 1.1 GB, the 8B
16-
model 5.2 GB, the 24B model 14.5 GB, LFM3-Audio-2B 1.3 GB with its audio projector, Qwen3.6-35B-A3B
17-
20.5 GB, Inkling 2 Mini 11.7 GB, or 8.0 GB for its smallest file), put it in a `models` folder next
18-
to the program, then run for example `pithos --server --open`. Inkling's files come from Hugging
19-
Face named `.gguf_file`: rename them to `.gguf` (on Linux, `bash build.sh
20-
--download-model=inkling-2-mini` or `--download-model=inkling-2-mini-iq1m` does it for you).
17+
model 5.2 GB, the 24B model 14.5 GB, LFM3-Audio-2B 1.3 GB with its audio projector, d1-2B 1.5 GB
18+
with its vision projector, Qwen3.6-35B-A3B 20.5 GB, Inkling 2 Mini 11.7 GB, or 8.0 GB for its
19+
smallest file), put it in a `models` folder next to the program, then run for example
20+
`pithos --server --open`. On Linux, `bash build.sh --download-model=d1-2b` fetches and verifies d1-2B
21+
with its projector.
2122

2223
The Windows binary is not signed, so SmartScreen may warn about an unknown publisher. The ARM64
2324
binaries passed the kernel tests and a short generation on GitHub's ARM64 runners (Neoverse); they
2425
have not been tried on single-board computers yet. Reports are welcome.
2526

26-
## What's new since v0.8.5
27+
## What's new since v0.8.6
2728

28-
**Inkling 2 Mini in 12 GB of RAM (experimental).** Pithos now runs Unsloth's smallest file,
29-
UD-IQ1_M (7.5 GiB, 1–2 bits per weight), next to the 3-bit UD-IQ3_XXS (10.9 GiB), which stays the
30-
default. It is a little faster, but further from the original model: against the logits of the
31-
4-bit Q4_K_M file its KL divergence is 0.246 and its most likely token the same 85.6% of the time
32-
(UD-IQ3_XXS: 0.049 and 92.9%). Short answers, code and Italian came out right in our tests, with
33-
reasoning about as long as with the 3-bit file. On a laptop with a 6-core CPU, 16 GB of RAM and a
34-
4 GB GPU, a 249-token prompt then 128 tokens:
29+
**d1-2B: decisions (experimental).** [LiquidAI/d1-2B](https://huggingface.co/LiquidAI/d1-2B) is
30+
not a chat model. It reads a state (a text, any JSON value, or nothing) with its pictures and
31+
answers named questions in one forward pass, without generating anything: yes or no, one or several
32+
of your options, a level, a value copied from the state (text, amounts with their currency or unit,
33+
dates in 16 languages), an estimate with its 80% interval, and boxes in the picture. Every answer
34+
has the shape its question asks for and the probability of each possible answer.
3535

36-
| Inkling 2 Mini | Prompt | Generation |
36+
```json
37+
{"state": "I was charged twice this month, please refund one of them.",
38+
"questions": {
39+
"refund": {"type": "noul", "instructions": "Is the customer asking for a refund?"},
40+
"team": {"type": "choice", "instructions": "Which team should handle this?",
41+
"criteria": {"billing": "Charges, refunds, invoices", "technical": "App or site faults"}}}}
42+
```
43+
44+
- `POST /v1/systemone` on the server, in the format of Liquid's API and of llama-server; from the
45+
command line, `pithos --decide request.json`.
46+
- **The `/decide` page**: write a state, drop or paste a picture, add questions of any type, and
47+
see the answers with their probabilities, the values found marked in the text, an estimate's
48+
interval and the boxes drawn on the photo; it copies the request as JSON or curl. `GET /props`
49+
now says `"decision": true` for such a model (and `modalities.vision` when its projector is
50+
loaded), and a chat request to it points to `/decide`.
51+
- **Pictures**: PNG and JPEG files (baseline, progressive, CMYK, interlaced PNG) decoded and resized
52+
to the same pixels as Python's PIL and torchvision, and LFM3-VL's vision encoder, which runs on
53+
Vulkan with float kernels (or on the CPU).
54+
55+
On a laptop with a 6-core CPU and a 4 GB GPU:
56+
57+
| d1-2B | Vulkan | CPU only |
3758
|---|---:|---:|
38-
| llama.cpp b12670, CUDA, experts on the CPU, UD-IQ1_M | 29.6 tok/s | 7.0 tok/s |
39-
| Pithos, CPU only, UD-IQ1_M | 11 tok/s | 5.3 tok/s |
40-
| Pithos, Vulkan, UD-IQ3_XXS | 17–19 tok/s | 9.6–9.7 tok/s |
41-
| **Pithos, Vulkan, UD-IQ1_M** | **18–20 tok/s** | **10.0 tok/s** |
42-
43-
Checked against llama.cpp on the same file and tokens: KL divergence 0.011, the same most likely
44-
token 96.9% of the time, as close as with the 3-bit file.
45-
46-
**New weight formats.** IQ1_S and Q2_0 (a 2-bit format in blocks of 64 values), the formats of
47-
Unsloth's smallest Inkling files, with AVX2 kernels; their dequantization matches llama.cpp's bit
48-
for bit. On Vulkan their experts go to VRAM too, Q2_0 with a kernel of its own. UD-IQ2_XXS loads as
49-
well, but it is slower than UD-IQ3_XXS here (9.2 tok/s with Vulkan), so it is not in the catalog.
50-
51-
The other models are unchanged: greedy answers are identical to v0.8.5 for LFM3-1.7B (CPU, Vulkan,
52-
Direct3D 12, OpenCL), LFM2.5-8B (CPU, Vulkan), LFM2.5-24B (CPU), LFM3-Audio-2B (transcription and
53-
speech on the CPU, Direct3D 12 and Vulkan), with the server and tool calls of the LFM models, and
54-
Qwen3.6-35B-A3B (CPU and Vulkan), and their speed is the same.
59+
| 9 questions over a 421-token text | 1.4 s | 4.5 s |
60+
| 6 questions over a 1,305-token JSON state | 6.2 s | 23 s |
61+
| a 640 × 480 picture and one question | 2.5 s | 7.9 s |
62+
63+
Checked against Liquid's own Python code and llama.cpp: the same tokens for every request (text,
64+
JSON, pictures); the same answers apart from one box edge (2.8% of the picture) and the ends of
65+
some wide estimates, which move with the 4-bit weights; probabilities within 0.011 of llama.cpp's;
66+
the vision encoder within 1e-5 of Liquid's float32 outputs; the value parser equal to Liquid's on
67+
52,000 test cases. Use the F16 vision projector: the Q8_0 one reads pictures a few percent off.
68+
Videos and spoken questions, which the model also accepts, are not supported yet.
69+
70+
The other models are unchanged: greedy answers are identical to v0.8.6 for LFM3-1.7B (CPU and
71+
Vulkan), LFM2.5-8B (CPU, Vulkan), LFM2.5-24B (CPU, OpenCL, Vulkan, Direct3D 12), LFM3-Audio-2B
72+
(text, speech byte for byte and transcription on the CPU, Vulkan and Direct3D 12), Qwen3.6-35B-A3B
73+
(CPU and Vulkan, also a 2,116-token prompt) and Inkling 2 Mini (UD-IQ1_M and UD-IQ3_XXS, CPU and
74+
Vulkan). The Linux build and its tests were checked on Ubuntu 24.04.
5575

5676
See the README for the full documentation and the measured results.

‎README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</p>
44

55
<p align="center">
6-
<b>A dependency-free C inference engine for Liquid AI's LFM2 / LFM2.5 / LFM3 models, Qwen3.6 and Inkling 2 Mini.</b><br>
6+
<b>A dependency-free C inference engine for Liquid AI's LFM2 / LFM2.5 / LFM3 and d1 models, Qwen3.6 and Inkling 2 Mini.</b><br>
77
Terminal chat, an OpenAI-compatible server, a web agent, a terminal agent and a voice, all in one executable.
88
</p>
99

@@ -14,6 +14,7 @@
1414
<img alt="Xbox One in Developer Mode" src="https://img.shields.io/badge/Xbox%20One-Developer%20Mode-107c10">
1515
<img alt="GPU: OpenCL, Direct3D 12 or Vulkan, optional" src="https://img.shields.io/badge/GPU-OpenCL%20%7C%20Direct3D%2012%20%7C%20Vulkan%2C%20optional-f5a05a">
1616
<a href="#lfm3-audio-2b-speech-input-and-output-experimental"><img alt="Speech in and out with LFM3-Audio" src="https://img.shields.io/badge/speech-LFM3--Audio%20in%20%26%20out-14b8a6"></a>
17+
<a href="#d1-2b-decisions-experimental"><img alt="d1-2B decisions (experimental)" src="https://img.shields.io/badge/decisions-d1--2B%20%28experimental%29-0ea5e9"></a>
1718
<a href="#qwen36-35b-a3b-experimental"><img alt="Qwen3.6-35B-A3B (experimental)" src="https://img.shields.io/badge/model-Qwen3.6--35B--A3B%20%28experimental%29-6366f1"></a>
1819
<a href="#inkling-2-mini-experimental"><img alt="Inkling 2 Mini (experimental)" src="https://img.shields.io/badge/model-Inkling%202%20Mini%20%28experimental%29-8b5cf6"></a>
1920
<a href="#server-and-web-chat"><img alt="OpenAI-compatible API: chat and audio" src="https://img.shields.io/badge/API-OpenAI--compatible%20chat%20%26%20audio-6b7280"></a>
@@ -38,6 +39,7 @@
3839
| **Runs a 13.5 GB model on 16 GB of RAM** | experts stream from disk, the hot ones live in a 4 GB GPU |
3940
| **Agents included** | Pandora in the browser, and a terminal agent that runs commands, fixes code and checks its own work |
4041
| **Hears and speaks** | with LFM3-Audio-2B: transcription and translation in 18 languages, streamed speech (WAV, PCM, MP3) and voice conversations on the `/talk` page ([speech](#lfm3-audio-2b-speech-input-and-output-experimental)) |
42+
| **Decides** | with d1-2B: typed answers about a text, a JSON record or a photo, each with its probability, in one pass and about a second; try them on the `/decide` page ([d1-2B](#d1-2b-decisions-experimental)) |
4143
| **Runs on an Xbox One** | an OpenAI-compatible server for your home network, with LFM3-1.7B on the console's GPU: 29.5 tok/s generation, ~140 tok/s prompt; with LFM3-Audio-2B you talk to it through the controller's headset ([Xbox One](#xbox-one)) |
4244

4345
Pithos is an inference engine written from scratch in C11 with **no dependencies**: no external

‎ROADMAP.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ page to try it in the browser.
190190
tool, which one, which language or topic, is the draft answer safe to send.
191191

192192
## Done
193+
- v0.9.0: d1-2B (experimental), a decision model: every question type, text, JSON and pictures
194+
(PNG and JPEG decoders, LFM3-VL's vision encoder on the CPU and on Vulkan), `POST /v1/systemone`,
195+
`--decide`, the `/decide` page, `build.sh --download-model=d1-2b`.
193196
- v0.8.6: Inkling 2 Mini's smallest file, UD-IQ1_M (7.5 GiB, for 12 GB of RAM): the IQ1_S and
194197
Q2_0 formats on the CPU (AVX2) and on Vulkan, `build.sh --download-model=inkling-2-mini-iq1m`.
195198
- v0.8.5: Inkling 2 Mini (experimental), on the CPU and with Vulkan (every layer on the GPU, the

‎src/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include <sys/auxv.h>
3333
#endif
3434

35-
#define VERSION "0.8.6"
35+
#define VERSION "0.9.0"
3636

3737
typedef struct {
3838
const char *model, *prompt, *system, *kernels, *tokenize, *ppl, *decide;

‎src/tools.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ static void mcp_start(void *arg) {
18331833
s->reader = thread_create(mcp_reader, s);
18341834
Json *r = mcp_rpc(s, "initialize",
18351835
"{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},"
1836-
"\"clientInfo\":{\"name\":\"pandora\",\"title\":\"Pandora (Pithos)\",\"version\":\"0.8.6\"}}",
1836+
"\"clientInfo\":{\"name\":\"pandora\",\"title\":\"Pandora (Pithos)\",\"version\":\"0.9.0\"}}",
18371837
180000, err, sizeof(err));
18381838
if (!r) goto fail;
18391839
json_free(r);

0 commit comments

Comments
 (0)