onw / README_en.md
ryugyosoft's picture
onw 3.5.0: benchmark page (prefill + decode at 128-8K tokens) instead of the check page; prefill / decode speed in the chat header
aff4893 verified
|
Raw History Blame Contribute Delete
33.9 kB
onw

onw — 俺のNPUがこんなに動くわけない

日本語 | English · User guide · Changelog · Technical notes (onw 3.0's NPU kit, the four NPU firsts, how MoE, SSD streaming and the vision encoders work) · Convert LFM yourself

(Ore no NPU ga konna ni ugoku wake nai — "There's no way my NPU runs this well")

A small engine that runs LLMs — including MoE and hybrid DeltaNet models, with image input — entirely on the Intel NPU, with an OpenAI-compatible server and a browser chat UI. Engine and models are separate downloads, like llama.cpp + a GGUF: one engine, one command, any converted model.

It runs on the low-power NPU, so you can use an LLM quietly, with the fan staying at low speed. Measured on Lunar Lake, it used 30-40% less energy per token than the iGPU (llama.cpp) and 30-40% of the CPU's, comparing runs without draft tokens and runs with them. The numbers and how they were measured are in Power efficiency and temperature.

Energy per token, decode speed and average temperature while generating on the NPU, iGPU and CPU, without and with MTP draft tokens

onw 3.0 ships OpenVINO's NPU plugin and compiler rebuilt for onw (onw's NPU kit). On PCs from Lunar Lake on (Windows and Ubuntu) the compiled graphs no longer hold the weights (caches a tenth of the model or less) and the fused graphs - a segment in one NPU call - are on by default. Panther Lake, NF4 builds (Granite, llm-jp), against 2.1.0: answers 1.4-1.6x, prompts 2.5-3.1x, answers in long chats 2-3x, a sixth of the cache, about a fifth less peak memory. The Qwen3.5 family answers and uses memory as in 2.1.0, with a smaller cache and a shorter first load. How it works and what was fixed: Technical notes (the first section).

onw 3.0 against 2.1.0: answer speed, prompts, private memory and long chats (Panther Lake)

Install (paste one line)

On a PC with an Intel Core Ultra (it has the NPU) this one line installs it (details under "What you need" below).

Windows

  1. Type "PowerShell" in the Start menu and open "Windows PowerShell" (no administrator rights needed).
  2. Paste this line and press Enter:
irm https://huggingface.co/ryugyosoft/onw/resolve/main/install.ps1 | iex

onw is downloaded into %LOCALAPPDATA%\onw and a setup window opens. If Python is missing it asks "Install Python 3.12 ... [Y,N]?" - press Y. After a few minutes the onw icon appears in the task tray (bottom right) and a window opens to pick a model.

Ubuntu

Open a terminal (Ctrl+Alt+T), paste this line and press Enter. It asks for your password once to install a few system packages.

curl -fsSL https://huggingface.co/ryugyosoft/onw/resolve/main/install.sh | bash

onw goes into ~/onw and its icon appears in the top bar.

Want to read it before running? Open install.ps1 / install.sh. New versions show up as a notice in the tray and the onw window, and one button updates onw (running the same command again updates it too).

What you need

  • A PC with an Intel Core Ultra processor (it has the NPU: Core Ultra series 1 / 2 (Meteor Lake, Arrow Lake, Lunar Lake), series 3 (Panther Lake), ...)
  • Windows 11, or Ubuntu 22.04 or newer
  • On Ubuntu, NPU driver (linux-npu-driver) 1.38 or newer. With older drivers the first layers of LFM2 models (when you convert them yourself) are computed wrong on the NPU and answers go blank part-way (it keeps emitting a special token; seen on Lunar Lake, fixed by 1.38). Check with dpkg -l | grep -i npu.
  • Free disk space: ~1 GB for the engine + 2-21 GB per model
  • An internet connection for the first download

No Python or git knowledge needed. On Windows, if Python is missing, the setup asks whether to install it.

How to use

Three steps in the onw window, which opens when the install is done:

  1. On the Models tab pick a model and press Download. Not sure? Take Gemma 4 E4B (reads images too, ~6 GB in use).
  2. On the Server tab press Load. The first load compiles it for the NPU, 10-30 minutes (~20 s from then on).
  3. Once it says "Running", "Chat" opens the chat page in the browser. Other apps can use it as an OpenAI-compatible API at the base URL http://localhost:8000/v1.
The Server tab of the onw window (Gemma 4 E4B running)

The full guide, screen by screen (managing models, the chat page and its history, the benchmark, every setting, troubleshooting), is the user guide.

Models

onw model arch input thinking NPU 3720 decode download memory in use
ryugyosoft/gemma-4-E4B-it-onw gemma4 (imported from the validated Gemma NPU graphs) text + image switchable 7.2 tok/s 4.3 GB ~6 GB (8.5 GB while reading an image)
ryugyosoft/Qwen3.5-9B-onw qwen3_5 (Gated DeltaNet + gated attention, dense) text + image switchable 4.1 tok/s 5.3 GB ~11 GB
ryugyosoft/Qwen3.5-9B-nf4-onw the same, channel-wise NF4 weights, MTP draft tokens (Lunar Lake and newer only) text + image switchable - (~15 tok/s on Lunar Lake, ~2x the regular build) 5.6 GB ~85% of the regular build
ryugyosoft/Qwen3.6-REAP-18B-A3B-onw qwen3_5_moe, 128 of 256 experts kept (REAP) text + image switchable 6.8 tok/s 9.6 GB ~12 GB
ryugyosoft/Qwen3.6-35B-A3B-onw qwen3_5_moe (Gated DeltaNet + gated attention + MoE 256x top-8 + shared expert) text + image switchable 6.8 tok/s 17 GB ~20 GB (8-13 GB with experts from the SSD)
ryugyosoft/Qwen3.6-35B-A3B-nf4-onw qwen3_5_moe (the NF4 build of the above: non-expert weights channel-wise NF4; Lunar Lake and newer only) text + image switchable - (~15.6 tok/s on Panther Lake) 17 GB ~18 GB (8-13 GB with experts from the SSD)
ryugyosoft/Ornith-1.5-9B-onw qwen3_5 (Ornith-1.5: Qwen3.5-9B trained further for agents and tool calls) text + image switchable 4.9 tok/s 5.3 GB ~11 GB
ryugyosoft/Ornith-1.5-9B-nf4-onw the same, channel-wise NF4 weights, MTP draft tokens (Lunar Lake and newer only) text + image switchable - (~15 tok/s on Lunar Lake, ~2x the regular build) 5.6 GB ~85% of the regular build
ryugyosoft/Ternary-Bonsai-2-27B-onw qwen3_5 (Ternary Bonsai 2: Qwen3.8-27B retrained with ternary weights, kept 2-bit; Lunar Lake and newer only) text switchable (off by default) - (~4 tok/s on Lunar Lake; prompts token by token) 7.6 GB ~10 GB
ryugyosoft/Ternary-Bonsai-2-9B-onw qwen3_5 (Ternary Bonsai 2: Qwen3.5-9B retrained with ternary weights, kept 2-bit; Lunar Lake and newer only) text + image switchable - (~13 tok/s on Lunar Lake; prompts 64 tokens at a time from 3.2.0) 3.0 GB ~3.5 GB
ryugyosoft/Ternary-Bonsai-2-4B-onw qwen3_5 (the same for Qwen3.5-4B; Lunar Lake and newer only) text + image switchable - (~21 tok/s on Lunar Lake; prompts 64 tokens at a time from 3.2.0) 1.8 GB ~2 GB
ryugyosoft/NeoHorse-1-4B-onw qwen3_5 (NeoHorse-1: Qwen3.5-4B trained further for agents and tool calls) text switchable 6.4 tok/s 2.4 GB ~6 GB
ryugyosoft/granite-4.2-3b-onw granite (IBM Granite 4.2: a 3B with thinking and stronger tool calls; Llama-type) text switchable 6.7 tok/s (~7.7 in chat) 2.1 GB ~6 GB
ryugyosoft/granite-4.2-8b-onw granite (the same, 8B) text switchable 3.6 tok/s (~3.9 in chat) 5.0 GB ~13 GB
ryugyosoft/granite-4.2-3b-nf4-onw the 3B as NF4 (channel-wise NF4, q/k/v and down_proj INT8; Lunar Lake and newer only) text switchable — (~23 tok/s on Panther Lake) 2.6 GB ~4.8 GB
ryugyosoft/granite-4.2-8b-nf4-onw the 8B as NF4 (the same; Lunar Lake and newer only) text switchable — (~13 tok/s on Panther Lake) 6.2 GB ~9.8 GB
ryugyosoft/llm-jp-4.1-8b-thinking-onw llama (NII LLM-jp's Japanese-centred 8B thinking model, harmony format) text always 4.2-4.7 tok/s 4.6 GB ~10 GB
ryugyosoft/llm-jp-4.1-8b-thinking-nf4-onw the same as NF4 (q/k/v and down_proj INT8; Lunar Lake and newer only) text always — (~14 tok/s on Panther Lake) 6.1 GB ~9.7 GB
ryugyosoft/llm-jp-4.1-8b-thinking-int8-onw the same with channel-wise INT8 weights (close to bf16) text always 4.1 tok/s 7.7 GB 15 GB (8 GB idle in memory-saving mode)
ryugyosoft/llm-jp-4.1-32b-a3b-thinking-onw qwen3_moe (llm-jp's MoE: 8 of 128 experts, ~3B of 32B per token, harmony format) text always 5.8 tok/s 16 GB ~17 GB (16 GB PCs with the experts streamed from the SSD: 3.4 tok/s on a 16 GB Lunar Lake)
ryugyosoft/llm-jp-4.1-32b-a3b-thinking-int8-onw the same, INT8 experts and attention (close to bf16) text always 4.6 tok/s 30 GB ~32 GB
ryugyosoft/gpt-oss-20b-onw gpt_oss (OpenAI gpt-oss-20b: MoE 32x top-4, attention sinks, YaRN, harmony format; channel-wise INT4 experts) text always 8.5 tok/s 11.4 GB ~12 GB
ryugyosoft/gpt-oss-20b-int8-onw same with INT8 experts (close to bf16) text always 6 tok/s 21 GB ~21 GB (8-13 GB with experts from the SSD)

NF4 builds (Lunar Lake and newer only): NPUs from Lunar Lake (NPU 4000) on compute NF4 weights (4 bits placed like a normal distribution) in hardware. The NF4 builds use channel-wise NF4: on Lunar Lake they decode ~2x faster (with MTP draft tokens), process prompts ~3x faster and need ~15% less memory than the regular builds, at about the same accuracy. NPU 3720 (Meteor Lake, Arrow Lake) cannot run them, so the onw window lists them only on Lunar Lake and newer PCs. onw 2.1.0 adds NF4 builds of Granite 4.2 3B / 8B and llm-jp-4.1-8B (only q/k/v_proj and down_proj channel-wise INT8): closer to the original than the INT4 builds; on Panther Lake Granite 4.2 8B decodes ~1.7x as fast as the INT4 build on onw 2.0.3.

2-bit build (onw 1.4.9, Lunar Lake and newer only): NPUs from Lunar Lake on compute 2-bit weights too. Ternary Bonsai 2 27B was trained with ternary weights (-1, 0, +1); kept 2-bit on the NPU, the 27B runs in about 10 GB of memory. Today's NPU compilers compute 2-bit weights wrong in blocks of more than one token, so prompts are processed token by token (~4 tok/s): a "27B on the NPU" showpiece rather than a daily driver (reported to Intel). onw 1.4.13 adds the ternary Ternary Bonsai 2 9B / 4B as well: they read images, need only ~3.5 / ~2 GB of memory and generate ~13 / ~21 tok/s on Lunar Lake. onw 3.2.0 fixes the compiler bug in the NPU kit and adds 64-token graphs to the 9B / 4B (sharing one copy of the 2-bit weights; prompts ~190 / ~300 tok/s on Panther Lake). We prototyped them for the 27B too, but it took 13.8 GB of NPU memory, so the 27B stays token by token.

MTP draft tokens (onw 1.4.0, Lunar Lake and newer): Qwen3.5-family models carry a small layer (MTP) that predicts the token after next. onw uses it to draft two tokens ahead and checks them in one pass on the model's 4-token graphs (cutting back exactly past a rejected draft). The NPU computes a few tokens in about the time of one, so every kept draft is time saved (~1.5x on average over 8 kinds of prompts). With temperature the tokens are still drawn with the same probabilities as one at a time. The NF4 builds include it. Not used on NPU 3720, where even a 2-token block costs 1.7 single steps and MTP came out slower.

Memory is the process peak on the test machine (Core Ultra 9 285HX, NPU 3720) without 64-token blocks and with the vision encoder freed after each image (the default below 24 GB of RAM). The "Memory (est.)" column in the onw window applies that PC's settings (context length, 64-token blocks, expert memory). On a PC short of memory the Qwen3.6 models can keep their experts on the SSD (Settings → "Expert memory"; how it works: Technical notes).

Prompts (the text you send) are read 64 tokens at a time on the dense models, and layer by layer over the whole prompt on the Qwen3.6 models (onw 2.0): on the NPU 3720 Qwen3.5-9B ~80-87 tok/s, llm-jp-4.1-8B ~110, Granite 4.2 3B ~140, Qwen3.6-35B-A3B ~100 tok/s (24 GB of RAM or more); on Panther Lake Qwen3.5-9B ~157, Qwen3.6-35B-A3B ~147 tok/s.

Prompt lookup decoding is used automatically where a verification block is cheap enough (the LFM models, Qwen3.5-9B and Gemma from Lunar Lake on, ...), and every model keeps the conversation state between turns (a follow-up with an image re-processes only the new message: ~2 s). Models marked "switchable" in the thinking column (Qwen, LFM2.5, Gemma 4, Granite 4.2, ...) answer without thinking by default (the chat page's thinking switch, chat_template_kwargs: {"enable_thinking": true} or reasoning_effort turns it on); models marked "always" (gpt-oss, llm-jp) think even with thinking mode off, and that counts against max_tokens (give them room). Whatever a model thought comes apart from the answer (its token count as usage.completion_tokens_details.reasoning_tokens): reasoning_content in the API, a foldable "Thinking" block on the chat page.

LFM models: converted on your PC

LiquidAI's LFM2.5-24B-A2B, LFM2.5-2.6B and LFM2-8B-A1B run on onw too, but no converted LFM weights are distributed: the LFM Open License v1.0 leaves commercial use by companies with $10M+ annual revenue unlicensed. The original model comes from Hugging Face and is converted on your PC (onw alone does it).

  • LFM2.5-24B-A2B (onw 3.3.0, Lunar Lake and later only): listed in the onw window's Models tab. "Download and convert" gets the original model (48 GB) from Liquid AI's repo, converts it to NF4 on this PC and deletes the original files (12 GB stays; converting needs ~60 GB free). onw distributes only the conversion settings (ryugyosoft/LFM2.5-24B-A2B-onw-kit).
  • LFM2.5-2.6B, LFM2-8B-A1B: see Convert LFM yourself (one to a few minutes). It is written so that an AI assistant can read it and run it as is. The 24B converts this way too.
model (convert yourself) arch input decode converted size memory in use
LiquidAI/LFM2.5-24B-A2B lfm2_moe (MoE 64x top-4, ~2B of 24B per token; NF4) text ~20 tok/s on Panther Lake (prompts ~400 tok/s) 12 GB ~12.6 GB
LiquidAI/LFM2.5-2.6B lfm2 (short conv + GQA, dense) text 12-13 tok/s on the NPU 3720 (29-34 with prompt lookup on code / summaries) 1.5 GB ~4.3 GB
LiquidAI/LFM2-8B-A1B lfm2_moe (short conv + GQA + MoE 32x top-4) text 16-17 tok/s on the NPU 3720 (29-43 with prompt lookup on code / summaries) 4.0 GB ~5 GB

The server (OpenAI-compatible API)

onw also answers Anthropic's Messages API (/v1/messages: streaming, tools, thinking, count_tokens; Claude Code and the like) and OpenAI's Responses API (/v1/responses: streaming, tools, previous_response_id; Codex CLI and the like). How to connect them: user guide.

Point other apps at http://localhost:8000/v1 with the model name shown in the window (GET / describes the server, /health answers once the model is loaded, CORS is open, --api-key / the settings' API key protects /v1). For trying things out it also serves a chat UI at /chat and a benchmark page at /bench that measures prompt reading (prefill) and generation (decode) speed at 128 to 8K tokens; both open from the tray menu and the window. Without an NPU driver everything runs on the CPU.

Tool calls (function calling) work as with OpenAI: pass tools, and when the model decides to call one the reply has finish_reason: "tool_calls" and message.tool_calls (streamed in the same shape); send the results back as role: "tool" messages. tool_choice takes "auto" (default), "none" and a named function (only that tool is offered; "required" cannot be enforced). Tested with Qwen3.5 / Qwen3.6, Gemma 4, LFM2.5 and gpt-oss (onw hides each model's own call format).

response_format (json_object / json_schema) is best effort - an instruction is added, the output is not constrained. n must be 1 (more is a 400) and logprobs is null. Errors come in OpenAI's shape, {"error": {"message", "type", ...}}. Image URLs over http(s) are fetched from public addresses only (send local ones as data: URLs, or allow them with ONW_ALLOW_LOCAL_IMAGES=1).

The onw command and settings

onw serve MODEL [--port 8000] [--host 0.0.0.0] [--api-key KEY] [--context 4096] [--device NPU|CPU] [--no-pld] [--open]
onw chat MODEL [--think] [--context 4096]                     # chat in the terminal
onw tray                                                      # the resident app (what setup starts)
onw window [--tab models]                                     # model manager, server control, settings
onw convert HF_DIR OUT_DIR [--compact] [--prune SAL.json --keep 0.5] [--graphs-only]
onw list                                                      # supported architectures

What needs what:

setting how recompile?
temperature, top_p, top_k, repetition / presence / frequency penalty, max_tokens, stop, seed, thinking per request (API or chat UI) no
port, address, model, device, prompt lookup on/off server option / settings, restart (~20 s) no
context length (--context, 32K by default, up to the model's maximum) server option / settings no (it only bounds the KV cache)
64-token prompt blocks (dense models read prompts 64 tokens at a time; auto = on, loaded in place of the 16-token graphs; off = 16 at a time, ONW_S64=1 = both) ONW_S64=1/0 / settings once, the first time
MTP draft tokens (the NF4 Qwen3.5-family builds; auto = on from Lunar Lake) ONW_MTP=1/0 once, the first time
fused graphs (a dense model's segment in one call; answers, and prompts from Lunar Lake on; on by default on PCs from Lunar Lake on with onw's NPU kit) ONW_FUSED=0 (off) / 1 (on without the kit too - the cache then grows to ~6-7x the model), ONW_FUSED_PROMPT=0 (answers only) once, the first time
onw's NPU kit (Windows and Linux: graphs without weights, shared weights, compiler fixes) ONW_NPUKIT=0 (use OpenVINO's own NPU plugin) at start
speeding up the Qwen family (Qwen3.5, Ornith, ... on fused graphs with MTP drafts instead of NPUW; from Lunar Lake on with the kit; ~0.9 GB more memory; not in the memory-saving mode) Settings > Speed, ONW_FAST_DENSE=0 (off) first load only
expert memory (Qwen3.6 models; the rest streams from the SSD) ONW_EXPERT_GB=5 / settings no
NPUW weight sharing (experimental; auto = on from Lunar Lake, not for the MoE models LFM2 / Qwen3.6 or models with many parts (Granite, llm-jp): one copy of the weights, less memory, much faster compile) ONW_NPUW=1/0 / settings once, the first time
Memory-saving mode (dense models whose 1-token and 16-token graphs cannot share weights: all of them on NPU 3720; from Lunar Lake on Granite / llm-jp, and any with NPUW off. Only the 16-token graphs are kept, swapped for the 1-token ones while an answer is written; 40-60% less memory when idle, the first seconds of an answer slower, no prompt lookup) ONW_LAZY16=1 / settings (shown only when a model it helps is there) once, the first time
Strict memory-saving mode (on top of the memory-saving mode: never both sets of graphs, so peak memory equals idle memory; every answer waits a few seconds before it starts) ONW_SWAP_STRICT=1 / settings none
Think before answering API requests that do not say (off by default; for agent apps) settings none
NPUW weight sharing for MoE models too (experimental, off by default: the 1-token and 16-token graphs share the weights) ONW_NPUW_MOE=1 / settings once, the first time
Asynchronous NPUW execution NPUW_FUNCALL_ASYNC (experimental, off by default) ONW_NPUW_ASYNC=1 / settings once, the first time
Weightless compile cache CACHE_MODE=OPTIMIZE_SIZE (experimental, off by default; with NPUW only) ONW_CACHE_SIZE=1 / settings once, the first time
block sizes, image size, quantization onw convert ("Smaller models" in the Technical notes) yes (new conversion)

The KV cache is INT8 and costs memory (8-16 MB per 1K tokens) and compute only for the length a chat actually uses; the context length is just how far a chat may grow, so a large one does not slow short chats down (how it works: Technical notes).

MODEL is an onw model folder or a Hugging Face repo id (downloaded into ./models, resumable). The command is in .venv after the first setup / start (.venv\Scripts\onw on Windows, source .venv/bin/activate on Linux), or install it anywhere with pip install -e . --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release.

Other ways to get it (advanced)

  • hf download ryugyosoft/onw --local-dir onw (Hugging Face CLI) or git clone https://huggingface.co/ryugyosoft/onw, then run setup.bat (Windows) / bash setup.sh (Ubuntu) in that folder.
  • Download models from the onw window. To fetch one yourself use hf download ryugyosoft/<model>; a git clone without Git LFS only gets ~130-byte pointer files instead of the weights (onw detects that and stops with instructions).
  • To run the server once from a console: start.bat <model> (Ubuntu: bash start.sh <model>).

Engine pieces

file what
onw/ir.py graph blocks: quantized linears, RMSNorm (with an fp16-safe prescale), RoPE / partial RoPE, attention over a host KV cache, expert slots, Gated DeltaNet (1-token matrix form; chunkwise-parallel form with an exact block-doubling inverse)
onw/runtime.py runs the segments; state by naming convention (KV rows, conv windows, recurrent states), expert binding, MRoPE, sliding-window masks, host table lookups, exact truncation for speculative verification, automatic choice of compile route
onw/paged.py, onw/kvcache.py segments split at their attention layers at load time; the paged INT8 KV cache and block-wise attention (online softmax merge)
onw/store.py, onw/xio.py expert storage (all in memory / LRU cache streaming from the SSD), direct I/O that bypasses the OS cache
onw/chat.py chat loop: images (Qwen / Gemma), sampling, stop strings, prompt lookup decoding (exact rewind, or lazy redo for recurrent models, switched on only when it pays), prefix reuse between turns
onw/models/ one builder per architecture: lfm2_moe (and dense lfm2), qwen3_5_moe (dense and MoE), qwen_vision, gemma4, gpt_oss
onw/hub.py, onw/server.py, onw/web/ model download + LFS guard, OpenAI-compatible server, chat UI (/chat), benchmark page (/bench)
onw/app.py, onw/tray.py, onw/manager.py, onw/update.py, onw/i18n.py onw window (models / server / settings), tray icon, the window's backend (local API), self-update, UI languages
setup.*, install.*, find_python.bat installers (Python detection + winget)
check_ref.py, check_vision.py, test_*.py, probe_segments.py, prof_*.py, mem_*.py, bench_*.py vs the HF model, generation / image / multi-turn checks, NPU-vs-CPU per segment, timing and memory

Power efficiency and temperature

Package power and temperature while generating with Qwen3.5-9B on the same PC (LattePanda Mu Ultra, Core Ultra 5 226V / Lunar Lake), on the NPU, iGPU and CPU: 768 tokens of Japanese text at temperature 0, average of 3 runs (onw 1.4.0, 2026-10-06). Draft tokens (MTP) change the speed a lot, so runs without them and runs with them are compared separately.

Energy per token, decode speed and average temperature while generating on the NPU, iGPU and CPU, without and with MTP draft tokens

Without draft tokens

Device Engine Decode Package power Package temp (avg / max) Energy per token Same, idle subtracted
NPU onw (Qwen3.5-9B-nf4-onw, NF4, 5.6 GB) 9.3 tok/s 10.9 W 49 / 59 °C 1.18 J 1.04 J
iGPU (Arc) llama.cpp SYCL (Q4_K_M, 6.2 GB) 13.6 tok/s 22.9 W 65 / 84 °C 1.74 J 1.64 J
CPU (8 threads) llama.cpp (Q4_K_M, -t 8) 11.9 tok/s 32.3 W 88 / 95 °C 2.73 J 2.61 J

With MTP draft tokens (onw: 4-token checking graphs; llama.cpp: --spec-type draft-mtp; both use the model's own MTP layer)

Device Engine Decode Package power Package temp (avg / max) Energy per token Same, idle subtracted
NPU onw 1.4.0 (as above) 15.1 tok/s 11.6 W 51 / 71 °C 0.77 J 0.65 J
iGPU (Arc) llama.cpp SYCL 18.7 tok/s 23.4 W 67 / 91 °C 1.29 J 1.21 J
CPU (8 threads) llama.cpp (-t 8) 12.8 tok/s 31.0 W 89 / 96 °C 2.44 J 2.33 J

Idle package power is about 1.2-1.7 W at about 40 °C.

Generating 10,000 tokens (computed from the averages above, with MTP draft tokens):

Device Time Energy Same, idle subtracted
NPU ~11 min 2.1 Wh 1.8 Wh
iGPU ~9 min 3.6 Wh 3.4 Wh
CPU (8 threads) ~13 min 6.8 Wh 6.5 Wh
  • The NPU uses the least energy per token: 32% (without draft tokens) to 40% (with MTP) less than the iGPU, and 30-40% of the CPU's.
  • The iGPU is the fastest, 1.2-1.5x the NPU, at about twice the power.
  • The average package temperature while generating is 49-51 °C on the NPU (MTP adds only 2 °C), 65-67 °C on the iGPU and 88-89 °C on the CPU. Maxima: NPU 59-71 °C, iGPU 84-91 °C, CPU 95-96 °C.

How it was measured, and caveats:

  • Power is the energy counter of Linux RAPL (intel-rapl:0, package-0), read every 0.5 s. It covers the SoC (CPU, iGPU, NPU) only, not DRAM (~0.4-0.8 W) or the whole PC. Temperature is x86_pkg_temp.
  • Only the generation phase is measured, not model loading. Each run waits until the package is below 50 °C, then measures 30 s of idle power. Every configuration ran in three rounds to avoid order effects.
  • onw and llama.cpp are different engines with different weight quantization (onw: NF4, llama.cpp: Q4_K_M); read it as a comparison of model + engine.
  • With llama.cpp's default thread count the CPU was only about 25% busy: 5.9 tok/s at 3.7 J per token (6.2 tok/s with MTP). The tables show 8 threads (-t 8).
  • Spread: the NPU runs agreed closely (0.76-0.77 J per token with MTP); the iGPU without draft tokens ranged 12.3-14.0 tok/s.
  • An earlier measurement (onw 1.3.0, the INT4 Qwen3.5-9B-onw, 2026-10-05) had the NPU at 7.3 tok/s, 12.0 W, 1.66 J per token. NF4 and MTP draft tokens more than halved the energy per token.
  • Other PCs, prompts and cooling will give other numbers.

Notes and limitations

  • The context is 32K tokens by default and goes up to the model's maximum (262K for Qwen3.5 / 3.6, 128K for Gemma 4 E4B); in long chats the attention per token grows with the length in use. Qwen images are resized to 512x512 (256 tokens); Gemma images keep their aspect ratio (up to 280 tokens).

  • Experts are channel-wise INT4 (round-to-nearest): first-token logits within ~33% of bf16 with the same top-1 on our checks; answers are fluent, word choices diverge from the bf16 model after a few tokens.

  • Prompt blocks above 16 tokens (the 64-token blocks of Gemma and the NF4 Qwen3.5-family builds) are loaded from Lunar Lake on (the weights are shared, so memory hardly grows) or with >= 24 GB RAM (ONW_S64=1/0).

  • Needs a pre-release OpenVINO (2026.5.0b1, from OpenVINO's pre-release index). All models are tested on NPU 3720 (Windows 11) and NPU 4000 (Lunar Lake, Ubuntu, 16 GB RAM); the Qwen3.5 family also on Panther Lake (NPU 5, Windows 11) and Lunar Lake under Windows 11. Without an NPU driver everything runs on the CPU.

  • Panther Lake (NPU 5) currently takes over twice as long as Lunar Lake for the first compile (later loads come from the cache in well under half a minute). The NPU compiler uses about one CPU core on both, so the difference is the work it spends per graph: the same graph compiled for NPU 5 cuts its matrix operations into more pieces and moves SHAVE (small general-purpose processor) work onto the DPU (matrix engine) - optimizations for NPU 5's larger MAC arrays and its activations inside the DPU, it seems.

    Qwen3.5-9B / Ornith-1.5-9B (NF4), onw 1.4.5 Lunar Lake (Core Ultra 7 256V, NPU 4000) Panther Lake (Core Ultra X7 358H, NPU 5010)
    First compile (26 parts) 225 s 521 s
    CPU while compiling ~1.4 cores (of 8) ~1.9 cores (of 16)
    DPU code of one part (invariants / variants) 965 KB / 932 KB (4 tiles) 1,116 KB / 1,837 KB (3 tiles)
    SHAVE code of one part 133 KB 52 KB

    (Windows 11, driver 32.0.100.5540, 2026-10-06. One part = the first part of a 4-token graph. Code sizes are ELF section sizes of the compiled file, not instruction counts.)

Known issues (onw 3.3.0, 2026-10-24)

  • LFM2.5-24B-A2B (3.3.0) is untested on 16 GB PCs: it uses 12.6 GB (11.5 GB of it the experts); below 24 GB of RAM the experts are read from the SSD and prompts do not take the expert-by-expert path (tested on Panther Lake, 64 GB). Right after its first load (2 min) the first question takes 3 s to read in (0.8 s after later loads).

  • 64-token graphs for Ternary Bonsai 2 27B: prototyped, and failed: they took 13.8 GB of NPU memory (the 2-bit weight tables every graph needs are 3.4 GB per set), which no 16 GB PC holds, so they are not shipped. The 27B still reads prompts token by token. Requested from Intel.

  • The first load of the 64-token Ternary Bonsai 2 builds takes a while: on Panther Lake ~6 min for the 4B, ~12 min for the 9B (later loads 20-35 s).

  • The first load with the Qwen family sped up takes longer: the fused graphs compile as well (a small Panther Lake PC, Qwen3.5-9B NF4: ~13 min until usable, the other variants ~25 min in the background while you chat). Later loads come from the cache in well under a minute.

  • The INT4 builds and Meteor Lake / Arrow Lake (NPU 3720) are as in 2.1.0: INT4 weights cannot go into graphs without weights, and the NPU 3720 has no such graphs, so cache and memory are as in 2.1.0 and no fused graphs are used. From Lunar Lake on, use the NF4 builds.

  • Answers slow down in long chats: the longer the context, the more KV cache every step reads (Panther Lake, Granite 4.2 3B NF4: 13.6 tok/s at ~7.3K tokens, 8.8 at ~15K, 4.9 at ~22K - about 2-3x the paged path).

  • First loads (a small Panther Lake PC, Core Ultra X7 358H, 3.0): Granite 4.2 8B NF4 12 min, llm-jp-4.1-8B NF4 ~10 min, Granite 4.2 3B NF4 ~6.5 min, Qwen3.5-9B NF4 ~7.5 min. The remaining fused graphs compile in the background while you chat (7-10 min up to 4K positions; all of them up to 32K positions ~28 min for Granite 4.2 3B NF4). Later loads come from the cache in well under a minute; if a load is stopped or the PC restarts midway, the parts already compiled stay.

  • On small Panther Lake PCs MTP decoding is slower than on Lunar Lake: Qwen3.5-9B (NF4) + MTP decodes at 13.6-14.3 tok/s there (Lunar Lake ~19 tok/s). MTP does a lot of CPU-side work, and the small PC's CPU drops to its base clock under its power limit; being looked into.

  • On Panther Lake the NF4 builds of the Qwen3.5 family are the faster ones: a 1,024-token prompt reads at ~280 tok/s with NF4 and ~160 tok/s with INT4, and the first load takes about half as long.

  • Below 24 GB of RAM the Qwen3.6 prompt speed-up (2.0) is not used: compiling its graphs runs a 16 GB Lunar Lake out of memory.

License

Code: Apache 2.0. Converted models carry their base model's license (see each model repo).