|
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. |
5 | 6 |
|
6 | 7 | ## Downloads |
7 | 8 |
|
8 | 9 | | File | For | |
9 | 10 | |---|---| |
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) | |
13 | 14 | | `SHA256SUMS` | checksums of the archives | |
14 | 15 |
|
15 | 16 | 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. |
21 | 22 |
|
22 | 23 | The Windows binary is not signed, so SmartScreen may warn about an unknown publisher. The ARM64 |
23 | 24 | binaries passed the kernel tests and a short generation on GitHub's ARM64 runners (Neoverse); they |
24 | 25 | have not been tried on single-board computers yet. Reports are welcome. |
25 | 26 |
|
26 | | -## What's new since v0.8.5 |
| 27 | +## What's new since v0.8.6 |
27 | 28 |
|
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. |
35 | 35 |
|
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 | |
37 | 58 | |---|---:|---:| |
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. |
55 | 75 |
|
56 | 76 | See the README for the full documentation and the measured results. |
0 commit comments