|
1 | 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 | 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. |
| 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. |
6 | 6 |
|
7 | 7 | ## Downloads |
8 | 8 |
|
9 | 9 | | File | For | |
10 | 10 | |---|---| |
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) | |
14 | 14 | | `SHA256SUMS` | checksums of the archives | |
15 | 15 |
|
16 | 16 | The model is not included: download it as described in the README (LFM3-1.7B is 1.1 GB, the 8B |
17 | 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 | 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 | 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. |
| 20 | +`pithos --server --open` or `pithos --agent`. |
22 | 21 |
|
23 | 22 | The Windows binary is not signed, so SmartScreen may warn about an unknown publisher. The ARM64 |
24 | 23 | binaries passed the kernel tests and a short generation on GitHub's ARM64 runners (Neoverse); they |
25 | 24 | have not been tried on single-board computers yet. Reports are welcome. |
26 | 25 |
|
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. |
75 | 61 |
|
76 | 62 | See the README for the full documentation and the measured results. |
0 commit comments