Status as of 2026-10-24 (v0.4). Reference hardware: i5-10500H, 16 GB, GTX 1650 Max-Q 4 GB.
A generated token currently costs about 55–70 ms:
| Item | ms/token |
|---|---|
| Non-resident experts computed on the CPU | 30–45 |
| Waiting for the GPU | ~10 |
| Command queuing and combine | ~8 |
| Logits | ~3.5 |
Sections are ordered by expected impact.
The model (13.5 GB) does not fit in the free RAM (9–10 GB), so part of the experts is read from disk during generation.
The experts on the CPU are bound by RAM bandwidth (~660 MB of weights per token at ~20 GB/s), so time scales with the bytes read.
- Experts in a more compact format (3 bits or less; Q4_0 does not help, it is as large as Q4_K).
- Best candidate: APEX I-Compact, a
mixed quantization of this model made from BF16 with an imatrix.
- Size: 10.4 GiB instead of 13.5.
- Quality: perplexity +1.6% (16.20 vs 15.94), HellaSwag unchanged within noise.
- Check first: read the file metadata to see which formats it uses. They are probably IQ4_XS/IQ3, which Pithos does not support today.
- Not re-quantizing ourselves: compressing again from Q4_K would give worse results (errors add up, and there is no imatrix).
- Dynamic variant later: cold experts compact and hot ones at 4 bits, in a side file. Only once the static file holds up.
- Expected gain: from 14–18 to ~17–21 tok/s, and more stable.
- Best candidate: APEX I-Compact, a
mixed quantization of this model made from BF16 with an imatrix.
- Predictor-driven VRAM prefetch: upload to the GPU the experts predicted for the next layer. Modest gain: 1–2 uploads fit per layer, at ~0.27 ms per expert.
- More expert slots in VRAM by freeing memory (int8 KV cache, see section 4). Marginal at an 8k context (~15 experts, +0.6%), useful only with long contexts.
- Propose the next tokens by looking up n-grams already in the context, and verify them in a
single batched pass (the experts are shared between the tokens of the batch).
- Expected: +30–80% on repetitive text, such as the agent's file names, code and tool results.
- Little gain on free text.
- Move the dense layers of prompt processing to the GPU as well. Today they run batched on the CPU: 36–45 tok/s warm, much less cold. This cuts the wait for the first answer in agent mode, where the system prompt with the tools is long.
- Agent cold start: precompute the system prompt with the tools at start-up.
- Constrained JSON output: a grammar that guarantees well-formed tool calls.
- Longer context / int8 KV cache: less VRAM and RAM per context token.
- Parallel requests in the server (today one at a time, the others wait in a queue).
- Testing on other hardware: NEON kernels on ARM64, the f32 GPU path on AMD and Intel GPUs.
- Fuse the MoE combine into the first kernel of the next layer (ping-pong residual stream): ~1 ms per token.
Measured on the Xbox One S in Game mode (LFM3-1.7B Q4_K_M): prompt 146 tok/s at 125 tokens and 121 at 1000, generation 29.5 tok/s (26 after 1000 tokens of context). The GPU reads ~49 GB/s, and generation uses about 30 of them.
- Faster batched matmul kernels (
mm_q4_K/mm_q6_K): almost all of a prompt chunk's time goes there. Try integer dot products on the Q8_K activations, asmv_*already does, and larger tiles. A bigger batch (-b 256) gains only ~4% today. - Attention over long prompts:
attn_chunkruns one group per head and token, reading the K/V rows again for every token. Tiles of several queries sharing the loads (flash-attention style) should remove the slowdown from 146 to 121 tok/s between 125 and 1000 tokens. - Faster generation: about 1.5x of bandwidth headroom left. Fewer barriers and dispatches
per token (for example, quantization fused into the norm kernels), and a look at the
mv_*memory access pattern. - Logits of every token on the GPU, so that
--pplandctx_forward_alluse the fast path too. -
--gpu autoon more GPUs: it picks Vulkan for dense models on discrete NVIDIA GPUs only (done, see below). AMD (Vulkan or Direct3D 12) once measured; Direct3D 12 where Vulkan is missing. - Experts on Direct3D 12: the backend handles models without experts only. The 24B model does not fit in the Xbox's 5 GB, but it matters for PCs.
- Xbox app type: every reinstall resets the app to "App", and the user must set "Game" again in Dev Home before Direct3D 12 is available. Look for a way to declare it in the package.
- Microphone found only at start: the app looks for the headset once, when it starts. If
the controller is off at that moment (as after a console restart), the log says
voice: no microphone (0xc00dabe0)and push-to-talk stays off until the app restarts. Try again when RT is pressed, or when a controller with a headset connects (Windows.Gaming.Input.Gamepad.GamepadAdded, or aDeviceWatcheron audio capture devices), and say on screen when no microphone is found. - Conversation budget in the app: on the console the saved conversations stay within 256 MB
only because
deploy.py usewrites--cache-mb 256inpithos.args. A model uploaded by hand with apithos.argswithout it gets the PC's 4 GB default, more than the app's storage. Put--cache-mb 256among the app's own server options (beforepithos.args, which can still change it), so the cap holds however the model got there. - Merge
xboxintomainafter review: shared-code changes are small and measured neutral on Windows and Linux.
The Direct3D 12 kernels compiled to SPIR-V; same results on the same GPU. LFM3-1.7B on the GTX 1650: prompt 328 tok/s, generation 82 (Direct3D 12: 336 / 70).
- Testing on AMD and on real Linux GPUs: so far NVIDIA and Intel UHD on Windows, and only Mesa's software driver (llvmpipe) on Linux.
- Batched matmuls on Intel:
mm_*compile to SIMD8 with register spills there (35 tok/s of prompt against 42 with Direct3D 12). Integrated Intel GPUs stay slower than the CPU anyway. - KV cache over the buffer limit: split it like the large matrices, so that small-buffer devices (llvmpipe: 128 MB) keep the whole forward pass at the default context.
- Vulkan by default where it is fastest:
--gpu autoon discrete NVIDIA GPUs, for dense models.
- Compressed audio in input: today
input_audioparts and/v1/audio/transcriptions/translationstake WAV only, while browsers record WebM/Opus, phones M4A (AAC) and many files are MP3. Clients have to convert first. To decode:- MP3: a small built-in decoder (public-domain designs such as minimp3 exist), so it works everywhere without libraries.
- WebM/Opus: a minimal Matroska/WebM demuxer (the audio track only) plus libopus loaded at run time, as libmp3lame is for MP3 output.
- M4A/AAC: Media Foundation's source reader on Windows (it also covers MP3); elsewhere libavcodec loaded at run time, if present.
- Detection by content (the first bytes), not by the file name. Resampling to 16 kHz and the mono mix stay as today.
- Tool calls in spoken answers: the model card's mode ("Respond with function calls, and
interleaved text and audio." and the tools, no prefill): the model starts with
<tool_call>or<|mixed_start|>. Read-only tools first in/talk; actions ask for confirmation. - A separate answer server in
/talk: transcription and speech from LFM3-Audio, the answers from a larger model on another Pithos server (a setting of the page). - Live ASR (
Perform live ASR., English, ~1 s chunks): captions while the user speaks.
The app cannot start processes and sees only its LocalState folder, so the terminal agent's tools
(files, commands, web through curl) do not apply there; it can use the network. Tools written
for it, few and simple, since LFM3-Audio is a ~2B model:
- Measure first: from the PC, send the Xbox server 3-4 mock tools (calculator, time, weather, notes) and ~20 typical spoken requests; count the right tool with the right arguments. This says whether the model is up to it and how much prompt work it needs.
- Offline tools, in keeping with "what you say stays here": a calculator (the model gets arithmetic wrong: 17 x 23 came out as 0.74), the date and time (or just put them in the prompt), timers and reminders spoken and shown on the TV, notes and memory kept in LocalState. Where a deterministic shortcut is sure (an arithmetic expression), the program answers without a tool call.
- Online tools behind a switch ("Online tools: on/off", the prompt changing with it): weather
(Open-Meteo, no key), Wikipedia summaries; web search later. HTTP from the app or the engine,
not
curl. - Home automation for those who have it: Home Assistant's REST API on the local network.
- On screen: a tool call adds a model turn (1-3 s); Talk mode shows it ("checking the weather...").
- Not possible or not advised: system settings, other apps and their files; launching apps (the app would go to the background, and in Game mode be suspended with the engine).
Runs on the CPU and on Vulkan (every layer on the GPU, the routed experts on the CPU, the most used ones in VRAM, NVFP4 and IQ2 / IQ3_XXS). Reference laptop, UD-IQ3_XXS (it fits in 16 GB of RAM): prompt 17–19 tok/s, generation 9.6–9.7 tok/s with Vulkan. About 40% of each token's experts still run on the CPU, and they set the speed of generation. The smallest file, UD-IQ1_M (12 GB of RAM), generates 10.0 tok/s, with a lower quality.
- Images: the vision encoder (a 23-layer ViT,
mmproj-F16.gguf) and the image blocks of the chat template (<|content_image|>); today image parts are refused. - The loop controllers on the GPU: their small F32 matrices (64 rows, or 64 columns) go through the router kernel with few groups (8 ms a token); a kernel of their own, or F16 weights.
- The other expert layers in VRAM: layers 20–23 keep their experts in other formats (IQ4_NL, Q5_K and Q8_0 rows of 1,152 values); the expert cache has slots of one size, so they need slots of their own.
- IQ4_XS and IQ3_S on the GPU: the CPU reads them, Vulkan converts them to Q8_0.
- A compact VRAM layout for the 1–2-bit experts: on the GPU the IQ1_S and IQ2 experts take 4.6 bits a value (as nibbles), so the UD-IQ1_M file keeps about as many in VRAM as the 3-bit one (~400). Keeping their own blocks with the grid tables on the GPU would fit about twice as many.
- Smaller session files: every checkpoint of a conversation holds the window layers' last positions (up to ~164 MB); consecutive checkpoints share most of them.
- Direct3D 12 and OpenCL: Vulkan only for now.
- The DSpark drafter (
dspark-Inkling-2-Mini-Q8_0.gguf, speculative decoding): on the reference laptop checking a draft costs too much to gain (2 tokens take 1.6 times one, 4 tokens 2.9 times, because each extra token needs other experts, many of them on the CPU); it would pay where every expert fits in VRAM.
Every question type of the model, text, JSON and pictures, on the CPU and on Vulkan (the vision
encoder too, with F16 kernels), checked against Liquid's Python code and llama.cpp; the /decide
page to try it in the browser.
- Videos (Liquid's code samples frames at 2 fps, up to 768 tokens): Pithos has no video decoder; frames given as pictures would be a first step.
- Spoken questions (an audio clip as the instructions).
- A faster vision encoder for large pictures: at 1.6 megapixels its attention (6,400 patches) and convolutions take most of the 10 s; a larger attention tile and the convolutions on the GPU.
- Direct3D 12 and OpenCL: Vulkan only for now.
- WebP pictures.
- d1 as Pandora's "System One": a decision model next to the chat model (two models in one server, or two servers) answering quick questions before a reply is generated: does this need a tool, which one, which language or topic, is the draft answer safe to send.
- v0.9.1: the agents' system prompt and tools prepared in advance and the same every day and in
every folder (Pandora and the terminal agent), the first checkpoint of every stored conversation
kept on disk, answers in the user's language with the request's names kept as written,
/reasoningand its counter, the white banner, accented PowerShell scripts with the UTF-8 BOM. - v0.9.0: d1-2B (experimental), a decision model: every question type, text, JSON and pictures
(PNG and JPEG decoders, LFM3-VL's vision encoder on the CPU and on Vulkan),
POST /v1/systemone,--decide, the/decidepage,build.sh --download-model=d1-2b. - v0.8.6: Inkling 2 Mini's smallest file, UD-IQ1_M (7.5 GiB, for 12 GB of RAM): the IQ1_S and
Q2_0 formats on the CPU (AVX2) and on Vulkan,
build.sh --download-model=inkling-2-mini-iq1m. - v0.8.5: Inkling 2 Mini (experimental), on the CPU and with Vulkan (every layer on the GPU, the
routed experts on the CPU, the most used ones in VRAM): UD-IQ3_XXS by default, 17–19 tok/s of prompt
and 9.6–9.7 of generation on the reference laptop; the NVFP4, Q5_0 and IQ2 / IQ3 / IQ4 weight
formats;
build.sh --download-model=inkling-2-mini; the landing page groups the models by RAM. - v0.8.0: voice on the Xbox One with LFM3-Audio-2B: push-to-talk through the controller's headset, spoken answers with an adaptive playback buffer, Talk mode (full screen) and hands-free listening, a reasoning level in the TV chat; speech at 0.87× real time on the console (depth decoder on Direct3D 12, codec overlapped with the next step), and 20–35% faster speech on the PC with Vulkan and Direct3D 12.
- v0.7.5: Qwen3.6-35B-A3B (experimental), on the CPU and with Vulkan (every layer on the GPU, the
routed experts on the CPU, the most used ones in VRAM; prompt halves overlapped with the CPU);
its model card's sampling,
--presence-penalty; tool definitions reused from the prompt cache across sessions; XML tool arguments typed by the tool's schema;build.sh --download-model=qwen3.6-35b. - v0.7.0: LFM3-Audio-2B, speech input (
--audio,input_audioparts,/v1/audio/transcriptionsandtranslations), speech output (--tts,/v1/audio/speechin WAV, PCM or MP3, streamed), spoken answers in English, dictation and voice mode in Pandora, the/talkpage;build.sh --download-model=lfm3-audio-2bfetches the model and its projector. - Branch
gpu-cli: one option for the GPU,--gpu auto|off|vulkan|d3d12|opencl|opencl+vulkan|opencl+d3d12(and--cpu), with--gpu-device Nfor every backend and--list-gpuslisting all three; by default LFM3 runs on Vulkan on a discrete NVIDIA GPU (82 tok/s instead of 56). The old options keep their meaning. - Branch
vulkan: Vulkan backend (--vulkan,--vulkan-device N) on Windows and Linux, loaded at runtime, with the whole forward pass of dense models and the matmuls for MoE models. - Branch
xbox(not released yet): UWP app for the Xbox One in Dev Mode with a status and chat screen on the TV, AVX kernels for CPUs without AVX2 (Jaguar, Ivy Bridge), and a Direct3D 12 backend (--d3d12) running the whole forward pass on the GPU. On the Xbox: prompt 13.9 → 146 tok/s, generation 5.8 → 29.5 tok/s. - v0.4: dense layers in VRAM with fused kernels (14–18 tok/s on real text, up from 11–14).
- v0.3: agent mode with built-in tools and an MCP client.
- v0.2: OpenAI-compatible server, prompt reuse, web interface (now Pandora).
- v0.1: dependency-free C engine, expert cache on the GPU through OpenCL.