Skip to content

Commit 32dc183

Browse files
committed
Version 0.9.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f8ff5fe commit 32dc183

4 files changed

Lines changed: 48 additions & 58 deletions

File tree

‎.github/release-notes.md‎

Lines changed: 42 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,62 @@
11
Pithos is a dependency-free C engine that runs Liquid AI's LFM2.5-24B-A2B, LFM2.5-8B-A1B, LFM3-1.7B,
22
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.
3+
chat, the Pandora web chat, an OpenAI-compatible server and a terminal agent. This release is about
4+
the agents: the first answer comes sooner, they answer in your language and keep your file names,
5+
and the terminal agent has a new start-up banner and a reasoning control.
66

77
## Downloads
88

99
| File | For |
1010
|---|---|
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) |
11+
| `pithos-0.9.1-windows-x64.zip` | Windows 10 / 11, 64-bit (AVX2, AVX or scalar kernels chosen at run time) |
12+
| `pithos-0.9.1-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.1-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) |
1414
| `SHA256SUMS` | checksums of the archives |
1515

1616
The model is not included: download it as described in the README (LFM3-1.7B is 1.1 GB, the 8B
1717
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
1818
with its vision projector, Qwen3.6-35B-A3B 20.5 GB, Inkling 2 Mini 11.7 GB, or 8.0 GB for its
1919
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.
20+
`pithos --server --open` or `pithos --agent`.
2221

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

27-
## What's new since v0.8.6
28-
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.
35-
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 |
58-
|---|---:|---:|
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.
26+
## What's new since v0.9.0
27+
28+
**The first answer comes sooner.** An agent's system prompt and tool list are a few thousand tokens
29+
that every request starts with. They are now prepared before you ask anything, and kept on disk:
30+
31+
- **Pandora** sends them once as soon as the tools are ready (the **Agent** button shows
32+
"preparing N%"); the first message reuses them, also after a server restart. On the 24B with a
33+
4 GB laptop GPU: about 4 s instead of over a minute.
34+
- **The terminal agent** prepares them while you type the first task.
35+
- **The same every day, in every folder**: the date and the working folder moved from the system
36+
prompt into the first message, so the prefix no longer changes overnight or from one project to
37+
the next. With Inkling 2 Mini, 2,900 tokens were reused in another folder after a restart.
38+
- **Shorter**: tool descriptions trimmed and the shell's syntax rules moved next to `run_command`
39+
(3,213 → 2,971 tokens for the terminal agent).
40+
- **Prompt reuse** keeps the checkpoint at the end of the first message in every stored
41+
conversation, so models with large checkpoints (Inkling 2 Mini: 164 MB) reuse the system prompt
42+
in new conversations too; a request that adds fewer than 64 tokens (such as the warm-up) writes no
43+
file.
44+
45+
**Your language, your names.** The agents' own notes (date, folder, mode) now come before your
46+
words, and the names in a request that look like files, paths or functions (`somma.ps1`,
47+
`docs/note.md`, `saluta(nome)`) are repeated to be used exactly as written. Models that reason in
48+
English used to answer Italian tasks in English and translate names while restating the task
49+
(`somma.ps1` became `sum.ps1`); with LFM2.5-24B and 8B, Italian tasks now get Italian answers and
50+
the files keep their names.
51+
52+
**Terminal agent.**
53+
- A new banner: the Pandora mark in white beside the name, version, system, folder and mode.
54+
- `/reasoning high|medium|low|off` (or `--reasoning`) sets how much the model reasons before it
55+
acts, and a counter shows the reasoning tokens and seconds (`thinking... 85 tokens, 18 s`). With
56+
Inkling 2 Mini, `low` halved the reasoning of a short task (208 tokens and 37 s, then 99 and 20).
57+
- `write_file` saves PowerShell scripts with accented text as UTF-8 with BOM, so Windows PowerShell
58+
5.1 prints `è` and not `è`.
59+
60+
The inference code is unchanged since v0.9.0.
7561

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

‎ROADMAP.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ 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.1: the agents' system prompt and tools prepared in advance and the same every day and in
194+
every folder (Pandora and the terminal agent), the first checkpoint of every stored conversation
195+
kept on disk, answers in the user's language with the request's names kept as written,
196+
`/reasoning` and its counter, the white banner, accented PowerShell scripts with the UTF-8 BOM.
193197
- v0.9.0: d1-2B (experimental), a decision model: every question type, text, JSON and pictures
194198
(PNG and JPEG decoders, LFM3-VL's vision encoder on the CPU and on Vulkan), `POST /v1/systemone`,
195199
`--decide`, the `/decide` page, `build.sh --download-model=d1-2b`.

‎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.9.0"
35+
#define VERSION "0.9.1"
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
@@ -1849,7 +1849,7 @@ static void mcp_start(void *arg) {
18491849
s->reader = thread_create(mcp_reader, s);
18501850
Json *r = mcp_rpc(s, "initialize",
18511851
"{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},"
1852-
"\"clientInfo\":{\"name\":\"pandora\",\"title\":\"Pandora (Pithos)\",\"version\":\"0.9.0\"}}",
1852+
"\"clientInfo\":{\"name\":\"pandora\",\"title\":\"Pandora (Pithos)\",\"version\":\"0.9.1\"}}",
18531853
180000, err, sizeof(err));
18541854
if (!r) goto fail;
18551855
json_free(r);

0 commit comments

Comments
 (0)