CPU replacement model comparison
Date: 2026-11-04 America/Sao_Paulo. Baseline: 538bc6a. Charter: comparison.
Decision
Granite 4.0 H Micro Q4_K_M is the best balance among these three for this PC and the existing full-catalog setup. None is approved as a default replacement. Granite completed minimize, focus and arrange dispatch without undoing them, used less memory and responded faster than Qwen after the interrupted initial turn. Its initial query failed and its launch proposal was invalid. This is a small sequential sample, not an accuracy benchmark or a claim about all configurations of these model families.
Method and limits
Real llama.cpp b11960, OpenCode 2.1.4 and full product core/prompt/tool catalog. Ryzen 5 5600X CPU, four inference threads, 32768 context, parallel=1, temperature=0.1, top_k=50, repetition_penalty=1.05 for all candidates. Default embedded chat templates, no model-specific fine-tuning or custom prompt. Temporary candidate registration in local-model.js only; no production model/configuration changes. FunctionGemma results assess direct replacement without training, not its fine-tuned potential.
Programmatic requests through the real authenticated /api/send, using only a synthetic launch cookie/token and private state. This run is an integration comparison, not browser/Electron UI QA. Each model had a fresh isolated HOME/XDG/profile, nonexistent system/session buses, testEnvironment, no DISPLAY/WAYLAND_DISPLAY and a private synthetic Smithay socket. The same five Portuguese prompts were sent sequentially in one conversation. Synthetic windows: shell 1, Calculadora QA 2, Editor de texto QA 3. The socket updates application minimize/focus/restore, and acknowledges layout commands; it does not render windows or prove actual grid geometry. Application opening was stopped at approval, never approved/executed. No video, upload, paid provider, live restart or real window effect.
A turn ends at idle/error, approval, ten tool calls or 300 seconds. An idle status was not counted as success without checking assistant errors and actual tools. The runtime itself returned aborted/Step interrupted around 180 seconds on some initial turns. Root cause of those interruptions was not investigated; do not attribute them solely to the model. Later turns can answer pending earlier requests, so the first-turn failures and later recovery are reported separately. Qwen had begun tools on its third request before the contemplated stop after two interruptions, so the remaining matrix was completed.
Outcomes and observed latency
Seconds include polling overhead up to roughly one second. Approval times prove only a proposed action.
| Request | FunctionGemma 270M | Granite H Micro 3B | Qwen3 4B Instruct 2507 |
|---|---|---|---|
| Quais janelas estão abertas agora? Consulte o desktop e responda em português. | 14.1 s, generic answer, no tool | 180.4 s, aborted, no answer | 180.2 s, aborted, no answer |
| Minimize a janela Calculadora QA. | 1.0 s, refusal, no tool | 65.4 s, desktop_state then minimize(2), confirmed | 180.9 s, aborted, no answer |
| Traga a janela Editor de texto QA para frente. | 1.0 s, refusal, no tool | 10.0 s, focus(3), confirmed | 102.2 s, desktop_state, delayed minimize(2), focus(3), confirmed |
| Organize as janelas lado a lado na grade. | 1.0 s, refusal, no tool | 9.0 s, arrange_windows grid, acknowledged | 58.1 s, arrange_windows grid, acknowledged |
| Abra a Calculadora QA. | 1.0 s, refusal, no tool | 4.0 s, invalid proposal, not executed | 13.0 s, ungrounded proposal, not executed |
Granite's launch proposal was {application:"qa-2",placement:"fit"}. qa-2 is the fixture window appId, not the catalog entry/executable; fit is incompatible with the grid fixture. Qwen proposed {application:"calculadora",placement:"right"} without discovering a matching executable or catalog entry. The known synthetic catalog entry is desktop:calculator.desktop, pointing to /bin/true. No executable named calculadora was supplied by the fixture. Neither proposal demonstrates a launch.
Granite's minimize answer also answered the earlier window-list request but repeated the pre-minimize focused label. Qwen eventually answered the earlier requests in its third turn; this does not erase the two initial failed turns. Qwen's arrange answer invented detailed right-side/relative positioning not present in the fixture result. Neither sequence undid a confirmed minimize, unlike the earlier Qwen3.5 2B test. FunctionGemma made zero tool calls and switched to English refusals on four prompts.
Sampled maximum inference-process RSS (1-second samples, not total application/system memory): Granite 5.41 GiB, Qwen 8.65 GiB. FunctionGemma sampling started after its run, so comparable RSS is unavailable. Context size affects memory; these figures are not minimum hardware requirements. No GPU or smaller-context optimization tested.
Weights and sources
All Q4_K_M files were downloaded at pinned revisions and SHA-256 verified. No gated Google credentials were obtained or copied; the FunctionGemma quantization was publicly downloadable.
| Model/source | Bytes | Revision | SHA-256 |
|---|---|---|---|
| ibm-granite/granite-4.0-h-micro-GGUF | 1942564512 | dc1dd2585fac18a78001c677d33ef8a7bbb7eb68 | bcc78b9b25450101d1ad90d4b9a264e1bac892f534dfb76066f4eec792fdf023 |
| unsloth/Qwen3-4B-Instruct-2507-GGUF | 2497281120 | a06e946bb6b655725eafa393f4a9745d460374c9 | 3605803b982cb64aead44f6c1b2ae36e3acdb41d8e46c8a94c6533bc4c67e597 |
| unsloth/functiongemma-270m-it-GGUF | 253127904 | 1de0f7fc7cae0062012c2e91ef02e642c161aa57 | 7474135cf63b5de86bd29d2feb92c644d48e9df5e1ac31550662af373c67d0fc |
Official cards read: Granite, Qwen. Google's gated raw model card was unavailable; FunctionGemma overview documents the intended further-training use. No claim that this is an optimized FunctionGemma setup.
Evidence and cleanup
Local only, outside Git: ~/.codex/artifacts/qa/agent-native-os/2026-11-04-model-comparison/. summary.json has timed turns; each model folder contains metadata.json, messages.json with tools/errors/results, commands.jsonl (when commands were emitted), core.log and fixture.log. rss-samples.jsonl records inference RSS. These use synthetic conversation/window data and are not uploaded. This is programmatic evidence, no screenshot/visual quality claim.
All task-owned cores, providers and fixture processes were stopped; the memory sampler was stopped. Existing live cores and the production Liquid package/selection remain preserved. Candidate-only source changes were restored; weights stay in the local cache. Only documentation is published. Validation: checksum verification, 15 request outcomes, tool/state correlation, documentation links and git diff --check. Unrelated product suites were not rerun because product sources are unchanged.
Next implementation work should address cold-start/runtime timeout behavior and grounded application selection, then repeat the same matrix and real-window QA. The current evidence supports choosing Granite for that next iteration, not enabling it as an unattended default.