AI, fully local on your computer.
Model Policy — HilbertRaum
Principles
- No model weights in git. Weights live under
models/on the drive (git-ignored). - Every model is described by a manifest (YAML) under
model-manifests/, so models can change without code changes (spec §3.3). - Models are verified by SHA-256 (spec §7.4). The chat model is hashed at its start (a cached hash counts). The search and voice models are hashed before their first start in a workspace; the image, translation and re-ranking models are not hashed at their start, but none of them starts a file a check found damaged (#913). Unverified models (a placeholder hash) are rejected unless developer mode is on and the drive policy allows it, for every role.
Default model family
Qwen3 dense instruct, quantized GGUF, run via llama.cpp. Apache-2.0 for many variants.
| Role | Candidate | Size | Min RAM | Auto-tier | Purpose |
|---|---|---|---|---|---|
| Chat default | Qwen3 4B Instruct Q4 | ~2.5 GB | 8 GB | TINY / LITE / UNKNOWN | Smallest chat model; catalog / weak-laptop-fallback default and the model bundled on the preconfigured commercial drive (bundled_on_preconfigured_drive:true) — distinct from the DIY --with-assets default-set chat model, which is Ministral 3 8B. Kept as the catalog default (has hybrid thinking → Deep) despite 2507 scoring higher (Phase-29 user decision) |
| Chat better | Qwen3 8B Instruct Q4 | ~5.0 GB | 12 GB | BALANCED | 12 GB+ laptops (RAM recalibrated from measured ~8.3 GiB peak) |
| Chat best dense | Qwen3 14B Instruct Q4 | ~9.0 GB | 14 GB | PRO | 32 GB+; the spec §7.3 PRO model — slower on CPU (slowest decode of all 8). RAM recalibrated from measured ~10.6 GiB |
| Chat MoE | Qwen3 30B-A3B (MoE) Q4 | ~18.6 GB | 24 GB | — (opt-in) | ~30B quality at ~3.3B active/token → near-3B speed; needs ~20 GB RAM |
| Chat (winner, 8B) | Ministral 3 8B Instruct (2512) Q4 | ~5.2 GB | 12 GB | — (deferred‡) | Phase-29 winner at 8B: 0/15 hallucinations (only model that never fabricated) + fastest 8B decode |
| Chat challenger | Granite 4.1 8B Q4 | ~5.3 GB | 12 GB | — (not promoted) | Phase-29: lost its tier (most 8B hallucinations 3/15, lowest F1); kept selectable for its IBM provenance story |
| Chat (winner, 12–14B) | Gemma 4 12B Instruct QAT Q4_0 | ~7.0 GB | 14 GB | — (rank‡) | Phase-29 winner at 12–14B: beats Qwen3 14B on every axis (fewer hallucinations, faster). supports_thinking_mode flipped on — only thinking-capable challenger |
| Chat (better 4B) | Qwen3 4B Instruct 2507 Q4 | ~2.5 GB | 8 GB | — (deferred‡) | Phase-29 (D18): beats the original 4B on every axis; the quality alternative at the 4B tier (orig 4B stays the bundled default for Deep). Instruct-only — no thinking |
| Chat (fast-tier 0.8B) | Qwen3.5 0.8B Q6_K | ~0.6 GB | 8 GB | — (rank 0) | Qwen3.5 fast-tier (issue #48). Smallest runnable; Q6_K (not UD-Q4_K_XL — quant error bites hardest at 0.8B). Text-only, not bundled. §9 eval (ratified 2026-08-03, §9.3): the surviving fast-tier candidate — the honest floor (better F1 + abstention than the 2B); stays unranked. b9849 load evidence via the tester eval; §9.1 in-app smoke still informal. |
| Chat (fast-tier 2B) | Qwen3.5 2B (UD-Q4_K_XL) | ~1.3 GB | 8 GB | — (rank 0) | Qwen3.5 fast-tier (issue #48). CPU-only speed tier. Text-only, not bundled. §9 eval (ratified 2026-08-03, §9.3): FAILED — worst unanswerable-discipline of all models scored (should not be recommended anywhere, rank stays 0); the 0.8B dominates it. |
| Chat (new 4B) | Qwen3.5 4B (UD-Q4_K_XL) | ~2.9 GB | 8 GB | — (rank 3) | Recommended at 8–11 GB (≤12 GB from the newest-Qwen promotion, owner decision 2026-07-12, model-benchmarks.md §6.4, until #153 gave 12–15 GB to Gemma 4 E2B on 2026-08-09). unsloth Dynamic-2.0 quant; thinking-by-default (Deep applies). §9 eval standing recorded honestly in the manifest (F1 under the Qwen3-4B incumbent, EM comparable); b9849 load observed through the app 2026-07-12. Vision model run text-only. |
| Chat (Qwen3.5 9B) | Qwen3.5 9B (UD-Q4_K_XL) | ~6.0 GB | 12 GB | — (rank 3) | Recommended at 16–23 GB today (the RAM path below); 16–20 GB at the newest-Qwen promotion (2026-07-12, §6.4). unsloth Dynamic-2.0 quant. §9 eval standing recorded in the manifest (edges Ministral on F1/EM within cross-run tolerance, ranked under it only on the hallucination-trap axis); ran on the b9849 binary in the #48 tester eval; §9.1 in-app smoke PASSED all legs 2026-07-30 (peak RSS 6.57 GiB vulkan). Text-only, not bundled. |
| Chat (Qwen3.5 9B Q3) | Qwen3.5 9B (UD-Q3_K_XL) | ~5.1 GB | 12 GB | not auto-picked (rank 0) | Added 2026-11-20 as a selectable model; rank 0 until the owner decides. Same base model, same unsloth repository and same licence review basis as the UD-Q4_K_XL sibling. Benchmark study 2 suite score 83.2 against the sibling's 86.1. On a Ryzen 7 5800H laptop with a 6 GB RTX 3060: 5.5 to 6.0 tok/s on CPU (sibling 5.1), 25 of 33 layers on the card and 13.8 to 17.0 tok/s with the card on (sibling 20 of 33, 8.6 to 8.8); peak working set 6.67 GiB on CPU. Prompt-cache smoke RESTORED. host_mapped_weights_mib not yet measured (no full-offload start so far). Evidence eval/results/hardware/ryzen-7-5800h-rtx-3060-laptop-6gb-14gb/q3kxl-manifest-20261120.md. Text-only, not bundled. |
| Chat (Qwen3.5 27B) | Qwen3.5 27B (UD-Q4_K_XL) | ~17.6 GB | 24 GB | — (rank 0) | Qwen3.5 wave (2026-07-01). High-end dense challenger; superseded at its tier by the Qwen3.6 27B pair (below) before ever being promoted. Text-only, opt-in (not bundled). |
| Chat (Qwen3.6 27B Q4) | Qwen3.6 27B Q4_K_M | ~16.8 GB | 20 GB | — (rank 1) | Ranked and selectable, not the auto-pick. Tier history: held 24 GB 2026-07-12..2026-08-16, lost it to the Qwen3.8 handover (§9.4), took it back on 2026-08-20 when upstream deleted the Qwen3.8 files, and handed it to qwen3.8-27b-ud-q4km the same day when the §9.5 successor wave measured the replacement and the owner ratified the handover — so rank 3 → 1. NOTE it still out-decodes the successor (tg 40.1 vs 32.4 t/s) at quality inside cross-run uncertainty; its own URL + LFS hash re-verified live 2026-08-20. Productized 2026-07-12 from a local-test stub: unsloth Q4_K_M, real HF-LFS hash, apache-2.0 review; hallucinations 0 on the v3 rescore; §9.1 in-app smoke PASSED all legs 2026-07-30 (peak RSS 16.87 GiB vulkan). Still ranked + selectable. Text-only, not bundled. |
| Chat (Qwen3.6 27B Q5) | Qwen3.6 27B Q5_K_M | ~19.5 GB | 24 GB | — (rank 1) | Ranked and selectable, not the auto-pick — same tier history as the Q4 sibling (rank 3 → 1 when the §9.5 successor wave gave ≥32 GB to qwen3.8-27b-ud-q5km), and it never stopped being the harness top scorer. Still the all-time top scorer of the grounded-QA harness (F1 .3573, zero unanswerable-set hallucinations) — the handover is the §6.4 generational call, not a quality verdict. §9.1 smoke PASSED 2026-07-30 (peak RSS 19.38 GiB vulkan). Text-only, not bundled. |
| Chat (Qwen3.8 27B Q4) | Qwen3.8 27B Q4_K_M | ~17.1 GB | 21 GB | — (rank 0) | UPSTREAM FILE DELETED 2026-08-20 (issue #196, §9.5): download.withdrawn, rank 3 → 0 — installed copies keep working and verifying, but a fresh drive cannot obtain it, so it is never auto-recommended. The 24 GB tier went to Qwen3.6 Q4 for the interim and then, the same day, to the measured successor qwen3.8-27b-ud-q4km (§9.5 successor wave, owner-ratified). Was the recommended 24 GB pick 2026-08-16..2026-08-20 (§6.4 + §9.4). unsloth Q4_K_M, real HF-LFS hash confirmed on-disk, apache-2.0 review (private/legal addendum 2026-08-16). §9.4 eval: F1 .3500 (ties the 3.6-Q4 inside cross-run noise), EM .9765, ZERO hallucinations, perfect abstention; tg 39.9 t/s vulkan / 2.83 cpu (b10430 basis). Text-only, not bundled. |
| Chat (Qwen3.8 27B Q5) | Qwen3.8 27B Q5_K_M | ~19.8 GB | 23 GB | — (rank 0) | UPSTREAM FILE DELETED 2026-08-20 (issue #196, §9.5): download.withdrawn, rank 3 → 0; the ≥32 GB tier went to Qwen3.6 Q5 for the interim and then, the same day, to the measured successor qwen3.8-27b-ud-q5km (§9.5 successor wave, owner-ratified). Was the recommended ≥32 GB pick 2026-08-16..2026-08-20 (§6.4 + §9.4). Same productization posture as the Q4. §9.4 eval: F1 .3523, zero hallucinations; tg 35.9 t/s vulkan — out-decodes the smaller UD-Q4_K_XL, which therefore got no manifest. Text-only, not bundled. |
| Chat (Qwen3.8 27B Q6) | Qwen3.8 27B Q6_K | ~22.9 GB | 26 GB | — (rank 0) | UPSTREAM FILE DELETED 2026-08-20 (issue #196, §9.5): download.withdrawn — selectable only where the weight is already on the drive. Qwen3.8 wave (2026-08-16, §9.4): the 24 GB-GPU quality ceiling — rank 0 BY DESIGN (the q5 sibling wins the ≥32 GB RAM tier; this quant's niche — fully fits a 24 GB GPU at ctx 8192, 22.7 GiB peak VRAM, no spill — is not expressible in the RAM-tier picker; gemma4-31b selectable-ceiling precedent). F1 .3503, zero hallucinations. Text-only, not bundled. |
| Chat (Qwen3.8 27B UD-Q4) | Qwen3.8 27B UD-Q4_K_M | ~16.5 GB | 21 GB | — (rank 3) | The recommended 24 GB pick since the §9.5 successor wave (2026-08-20, issue #196, PR #199, owner-RATIFIED). unsloth Dynamic-3.0 UD-Q4_K_M, the closest published successor of the withdrawn static Q4_K_M; real HF-LFS hash confirmed on-disk. Full per-quant rig wave: F1 .3529 (ABOVE the withdrawn file's .3500), EM .9765, zero hallucinations, abstention 1.0000; peak RSS 16.56 GiB, peak VRAM 16.9 GiB. Speed caveat, measured and accepted: tg 32.4 t/s vs the withdrawn 39.9 (−19 %) — the known Dynamic-quant trade; quality deltas sit inside cross-run uncertainty and the owner call weighs the newest generation ahead. MTP draft head re-verified in-GGUF (§9.5 gate). Text-only, not bundled. |
| Chat (Qwen3.8 27B UD-Q5) | Qwen3.8 27B UD-Q5_K_M | ~19.8 GB | 23 GB | — (rank 3) | The recommended ≥32 GB pick since the §9.5 successor wave (2026-08-20, owner-RATIFIED). Reproduces the withdrawn Q5_K_M's envelope: F1 .3511 vs .3523 (inside tolerance), EM .9765, zero hallucinations, peak VRAM 20.0 GiB identical, tg 34.5 vs 35.9 t/s (−4 %). MTP draft head re-verified in-GGUF (acceptance 0.67). Text-only, not bundled. |
| Chat (Qwen3.8 27B UD-Q6) | Qwen3.8 27B UD-Q6_K | ~22.0 GB | 26 GB | — (rank 0) | Rank 0 BY DESIGN, same reasoning as the withdrawn Q6_K it succeeds (§9.4): the q5 successor wins the ≥32 GB RAM tier, and this file's niche — fully fitting a 24 GB GPU at ctx 8192 — is not expressible in the RAM-tier picker. The niche got STRONGER: 21.8 GiB peak VRAM leaves 2.2 GiB headroom where the withdrawn file left 1.3. F1 .3518, zero hallucinations, tg 32.6 t/s. No speculative_decoding, deliberate — MTP costs ~2 GiB VRAM and the VRAM fit is this quant's entire reason to exist (the draft head IS present in the file; it must never be enabled here). Text-only, not bundled. |
| Chat (Qwen3.5 35B-A3B) | Qwen3.5 35B-A3B (UD-Q4_K_XL) MoE | ~22.2 GB | 24 GB | — (rank 1) | Qwen3.5 wave (2026-07-01); rank 1 since the 2026-08-03 ratification (model-benchmarks.md §9.3). ~35B total / ~3B active MoE (256 experts, 8+1 active); beat the incumbent MoE qwen3-30b-a3b-q4 on hallucinations (0 real vs 2, EM parity) with the speed case confirmed (140.9 t/s vulkan / 12.1 cpu tg). Ranked alternative for ≥32 GB — never the auto-pick (qwen3.8-27b-ud-q5km holds ≥32 since the §9.5 successor wave; before it, the withdrawn Qwen3.8 Q5 from 2026-08-16). Text-only, not bundled; §9.1 in-app smoke PASSED 2026-08-09 (§9.3 smokes record). |
| Chat (Gemma E2B) | Gemma 4 E2B Instruct QAT Q4_0 | ~3.3 GB | 8 GB | 12–15 GB boxes + the §6.5 step-down landing tier (rank 3) | Gemma 4 QAT wave (2026-07-23, issue #82); eval ratified 2026-08-03 (§9.3); PROMOTED 2026-08-09 (issue #153). Official Google QAT; MatFormer effective-2B. Eval: F1 .3373 edges the bundled Qwen3 4B with equal hallucinations (3) and the fastest cpu decode measured (24.3 t/s); the #153 weak-16 GB-box leg confirmed 17.0 tok/s settled vs the prior 12 GB pick's 9.0 (iGPU basis) → rank 3, rec-RAM retuned to 12 (model-benchmarks.md §6.5 #153 amendment). Text-only. In-app b9849 smoke PASSED 2026-07-23. |
| Chat (Gemma E4B) | Gemma 4 E4B Instruct QAT Q4_0 | ~5.2 GB | 12 GB | — (rank 0) | Gemma 4 QAT wave; eval ratified 2026-08-03 (§9.3): F1 .2999 misses the 8B bar — no promotion. MatFormer effective-4B. Text-only; thinks by default, enable_thinking: false suppression verified per size. In-app b9849 smoke PASSED 2026-07-23. |
| Chat (Gemma 26B-A4B) | Gemma 4 26B-A4B Instruct QAT Q4_0 MoE | ~14.4 GB | 20 GB | — (rank 2) | Gemma 4 QAT wave; rank 2 since the 2026-08-03 ratification (§9.3). MoE, ~3.8B active (8 of 128 experts): EM parity with the then-24 GB pick Qwen3.6 27B Q4, ZERO audited hallucinations, ~4× its decode speed at 2.5 GB less disk — F1 .3307 vs .3523 kept the Qwen the pick, so this is the ranked runner-up / MoE speed alternative (never the auto-pick; the 24 GB tier has since moved on to qwen3.8-27b-ud-q4km, §9.5). Supersedes the gemma-4-26b-q4 local-test stub for distribution. All §9.1 legs PASSED 2026-07-30 (in-app peak RSS 14.28 GiB, vulkan). |
| Chat (Gemma 31B) | Gemma 4 31B Instruct QAT Q4_0 | ~17.7 GB | 24 GB | — (rank 0) | Gemma 4 QAT wave; eval ratified 2026-08-03 (§9.3): DO NOT PROMOTE — the issue-#82 drop condition met (ties the 26B-A4B within .003 F1 at 4.2–6× slower decode, +3.3 GB disk). Stays a selectable opt-in — the Apache-2.0 dense quality ceiling for 32 GB GPU boxes. All §9.1 legs PASSED 2026-07-30 incl. the first load smoke. |
| Embeddings | Multilingual E5 Small (F16) | ~0.25 GB | 4 GB | all | Local document search (needed for Q&A) |
| Reranker (optional) | BGE Reranker v2 M3 (F16) | ~1.16 GB | 6 GB | LITE+ (in the DIY --with-assets set; not preloaded on a preconfigured commercial drive — bundled_on_preconfigured_drive:false, so a Kit lists it for in-app download) |
Retrieval-quality pass over document search — search works fully without it |
| Transcriber | Whisper Small (multilingual) | ~0.49 GB | 4 GB | all (bundled) | Audio transcription + voice dictation; whisper.cpp GGML; MIT. Since #504 its manifest also requires the Silero VAD v5.1.2 model (~0.9 MB, MIT) — voice-activity detection before a dictation is decoded |
| Vision (optional) | Qwen2.5-VL 3B Instruct Q4 + f16 mmproj | ~3.27 GB (2 files) | 12 GB | in the --with-assets default set (2026-07-01); not auto-recommended in-app (recommended_profiles: [], rank 0) — availability-driven, used on demand by the Images screen |
Image understanding — the Images screen (Phases V1–V5). Two files: GGUF + the mmproj projector. CPU-pinned; ~4.6 GB peak RSS. Co-resident with a 12B chat ⇒ >16 GB (PROD-1) — see "The vision role" below. Apache-2.0 |
Qwen3 1.7B was in the original spec §7.3 (the TINY/UNKNOWN "small" model) but was dropped: the official
Qwen/Qwen3-1.7B-GGUFrepo publishes no Q4_K_M. 4B now covers TINY/UNKNOWN too. The embeddings model uses an F16 GGUF, not Q8 — the q8_0 conversions of this BERT/XLM-R model crash llama.cpp b9585 (binary_op: unsupported types … q8_0). See BUILD_STATE §9. The reranker (also XLM-R family) is pinned to F16 for the same reason; its live load on b9585 is verified by theHILBERTRAUM_RERANK_SMOKEmanual harness. (These were verified on b9585; the b9849 pin bump re-opens them — the manual smoke re-confirms the embedder + reranker sidecars load on b9849, or records explicitly if deferred. On b11146 (#512) and on the b12110 pin (#729) the rerank and rag-quality smokes passed with both sidecars.) License review (recorded in its manifest): base modelBAAI/bge-reranker-v2-m3= Apache-2.0 (HF API, 2026-06-10); GGUF fromgpustack/bge-reranker-v2-m3-GGUF(also Apache-2.0, mechanical conversion — same provenance posture as the E5 entry).Qwen3-Reranker-0.6Bwas rejected: no official GGUF.
The models are Apache-2.0 (Qwen3, the Phase-28 challengers, BGE reranker) / MIT (E5, Whisper transcriber, the Silero VAD file the transcriber manifest carries since #504), except three manifests under the Gemma Terms of Use (license: gemma): the two user-added local-test stubs gemma-4-26b-q4 and gemma4-coding-q8 (license_review.status: pending since #768: local use only, no redistribution review), and TranslateGemma (translategemma-12b-it-q4, see "The translation role + TranslateGemma" below).
Sizes/RAM come from each manifest
(size_on_disk_gb / recommended_min_ram_gb); download URLs live in the manifests' download.url
(catalog with source links in the README). Auto-tier is the
recommended_profiles list each manifest declares.
‡ Promotions are LIVE via
recommendation_rank, notrecommended_profiles. The production picker is RAM-best-fit (recommendModelIdByRam) on unified memory, on a machine without a usable discrete graphics card, and with graphics acceleration off — and it ignoresrecommended_profiles(that list is only the legacy no-RAM path, which is one-model-per-profile). 2026-09-06 amendment (PR #308 audit): on a machine with a usable discrete card,recommendChatModelIddispatches instead torecommendModelIdByVram, which reuses the exact samerecommendation_ranktiebreak and RAM floor, judged against the card's free graphics memory instead of RAM (model-benchmarks.md§6.6) — the RAM pick above stands wherever it also fits the card, and only steps down when it does not. Rather than mis-encode the Phase-29 winners inrecommended_profiles, each manifest carries arecommendation_rank(higher = preferred) that the picker now uses as the tiebreak among models that fit the machine's RAM (the quality-aware recommender follow-up —model-benchmarks.md§6.2, tiers since recalibrated by §6.3). Net effect on real hardware, RAM path (newest-Qwen promotion, owner decision 2026-07-12; handed to the Qwen3.8 pair 2026-08-16; reverted 2026-08-20 when upstream deleted the Qwen3.8 files (issue #196) and RESTORED the same day to their measuredUD-*successors,model-benchmarks.md§6.4 + §9.4 + §9.5; asserted inbenchmark.test.tsandcommitted-catalog.test.ts): 8–11 GB → Qwen3.5 4B, 12–15 GB → Gemma 4 E2B (#153), 16–23 GB → Qwen3.5 9B, 24 GB → Qwen3.8 27B UD-Q4_K_M, ≥32 GB → Qwen3.8 27B UD-Q5_K_M; Granite, both MoEs, the three withdrawn Qwen3.8 static K-quants, and the superseded former winners (Ministral, Gemma 4 12B, the Qwen3.6 pair — all still ranked and selectable) are never the RAM-path auto-pick — nor the card-path one, whose fallback takes ranked models only (owner decision 2026-09-06, #326). A card too small for every ranked model keeps the RAM pick, which partially offloads (model-benchmarks.md§6.6 rule 6). The "Auto-tier" column above is the declaredrecommended_profiles(kept as-is); the live recommendation isrecommendation_rank+ RAM-best-fit (or the card's free-memory-best-fit on a discrete GPU).Processor path (2026-11-20,
model-benchmarks.md§6.7). A computer whose next start runs from RAM without a usable graphics card (memory classcpu) no longer takes the RAM path above. Its picks rest on the 2026-11 answer-quality study and on measured processor speed, through the optionalrecommendation_rank_cpu: 8–11 GB → Qwen3 4B 2507, 12–15 GB → Gemma 4 E4B, 16–23 GB → Qwen3.5 9B, ≥24 GB → Gemma 4 26B-A4B. A benchmark under 5 tok/s steps along the manifest'sstep_down_tochain (26B-A4B → 9B → E4B → E2B, 2507 → E2B). The dense 12B to 31B models carryrecommendation_rank_cpu: 0there (selectable, never the automatic pick). Ministral 3 8B went from rank 2 to 0 on every path the same day. The RAM path above now describes Apple Silicon and the no-fit fallback of the card path only.Card path (2026-11-20,
model-benchmarks.md§6.8). On a discrete card the need is the runtime's measuredprojected_graphics_need_mibplus its 1 GiB margin, and the pick is the highest card-ranked model (recommendation_rank_gpu) that fits: 6 GB → Gemma 4 E4B, 8 GB → Qwen3.5 9B, 12 and 16 GB → Gemma 4 12B, 20 GB → Qwen3.8 27B UD-Q4_K_M, 24 GB → Gemma 4 31B, the RAM floor permitting (under 12 GB of RAM: Qwen3 4B 2507). A model that an earlier start on this machine placed only partly on the card is not picked for it again. Min-RAM values were recalibrated from measured peak RSS in the Phase-29 run (8B: 16→12, 12–14B: 16→14). Adding a model is manifest-only (no code change): drop a YAML inmodel-manifests/chat/with adownloadblock + arecommended_profileslist. Before it ships, run the manual prompt-cache smoke against the GGUF (tests/manual/prompt-cache-smoke.test.ts, #512) and setdisable_prompt_cache: trueonly if it reportsRE-PREFILLED(below).
Qwen3.5 Unsloth wave (2026-07-01)
Four text-only chat manifests in the qwen3.5 family, all third-party Unsloth Dynamic 2.0
GGUF requants of Apache-2.0 Qwen weights (the Qwen org publishes no official GGUF for the 3.5
refresh — same established-quantizer posture as qwen3-4b-instruct-2507-q4):
| Manifest | Size | Min RAM | Quant | Challenges |
|---|---|---|---|---|
qwen3.5-4b-ud-q4kxl (existing) |
~2.9 GB | 8 GB | UD-Q4_K_XL | the 4B tier (qwen3-4b-instruct-q4) |
qwen3.5-9b-ud-q4kxl (new) |
~6.0 GB | 12 GB | UD-Q4_K_XL | the 8B tier (Ministral 3 8B, Qwen3 8B) |
qwen3.5-27b-ud-q4kxl (new) |
~17.6 GB | 24 GB | UD-Q4_K_XL | dense 12–14B + Qwen3 30B-A3B |
qwen3.5-35b-a3b-ud-q4kxl (new, MoE) |
~22.2 GB | 24 GB | UD-Q4_K_XL | the opt-in MoE (qwen3-30b-a3b-q4) |
Text-only in HilbertRaum. Upstream Qwen3.5 are hybrid reasoning / vision-language models, but every manifest here ships ONLY the language GGUF and no
mmproj/projector (chat does not use vision). Each carriessupports_thinking_mode: true— the smaller models (≤9B) have reasoning disabled by default in Unsloth's llama.cpp examples unlessenable_thinking=true, while the larger models think by default; the chat template honours the switch either way, so the Deep answer mode applies. Verify the live thinking-toggle behaviour by smoke test.Native context is 262,144 tokens (extensible to ~1,010,000 via YaRN), but every manifest sets
recommended_context_tokensto a small local runtime budget (8192 for the new three; the incumbent 4B keeps 4096). That field is the recommended runtime context for normal laptops, not the theoretical native window — revisit only after KV-cache/RAM budgeting + a long-context eval. Since 2026-07-04 the user can override it: the chat sidecar launches withsettings.contextTokensOverride ?? (recommended_context_tokens || settings.contextTokens)— the AI Model screen's "Context size" card (presets 4k–128k, default Automatic; rag-design §15.8).Runtime pin bumped to b9849 (see "runtime-sources.yaml" below) specifically because Qwen3.5 is a newer architecture than the old b9585 build. The 4B load smoke is SATISFIED (2026-07-12) — it loaded + streamed through the app from the portable drive, and the #48 tester eval ran all four on the b9849 binary; the §9.1 through-the-app smokes for the 9B, the 27Bs, and the 35B-A3B remain open — see the manual-smoke checklist in
model-benchmarks.md§9 / the BUILD_STATE "Qwen3.5 Unsloth wave" entry.None are auto-recommended (RAM path; the card path honors the same rank-0 exclusion — §6.6). All four carry
recommendation_rank: 0+recommended_profiles: []andbundled_on_preconfigured_drive: false: selectable manually on the AI Model screen, never the RAM-best-fit auto-pick, never bundled — until the offline benchmark harness promotes them with a real rank (model-benchmarks.md§9 promotion criteria). Public benchmark scores do not count; only the local German/English grounded-QA eval + manual smoke do.(Superseded 2026-07-12: the
qwen3.5-4b-ud-q4kxlandqwen3.5-9b-ud-q4kxlwere promoted torecommendation_rank: 3by owner decision — they are the ≤12 GB / 16–20 GB auto-picks now, see the catalog table above andmodel-benchmarks.md§6.4.qwen3.5-27b-ud-q4kxlandqwen3.5-35b-a3b-ud-q4kxlremain rank 0.) (Correction 2026-11-03, #770: since #153 (2026-08-09) the 4B's band is 8–11 GB, 12–15 GB going to Gemma 4 E2B, and the 9B's is 16–23 GB; the RAM path above is current.)(Update 2026-08-03, wave ratification —
model-benchmarks.md§9.3 "Wave outcome": the 35B-A3B's deferred rank resolved to rank 1 (ranked MoE alternative for ≥32 GB — §2 eval hallucination-clean vs the incumbent MoE's 2 real, EM parity, and the 3B-active speed case confirmed at 140.9 t/s vulkan / 12.1 cpu; never the auto-pick,qwen3.6-27b-q5holds ≥32 GB; its §9.1 in-app smoke is the recorded residual). The 27B stays rank 0 (superseded at its tier by the Qwen3.6 pair); the fast-tier pair stays rank 0 per the ratified eval — the 0.8B remains the honest floor, the 2B should not be recommended anywhere. The 9B + both Qwen3.6 27Bs also cleared their owed §9.1 through-the-app smokes 2026-07-30.)
Gemma 4 QAT wave (2026-07-23, issue #82)
Four text-only chat manifests in the gemma4 family — the rest of the Gemma 4
collection evaluated after the 12B (the
Phase-29 12–14B winner). All four are official Google QAT Q4_0 GGUFs from the Google HF org
(vendor quantization-aware trained, NOT third-party requants — the same first-party provenance as
the approved gemma4-12b-it-qat-q4), all Apache-2.0 (HF API card tags verified 2026-07-23,
repos ungated), 140+ languages:
| Manifest | Size | Min RAM | Challenges |
|---|---|---|---|
gemma4-e2b-it-qat-q4 |
~3.3 GB | 8 GB | the promoted Qwen3.5 4B / the 4B tier — the #53 weak-hardware case |
gemma4-e4b-it-qat-q4 |
~5.2 GB | 12 GB | the promoted Qwen3.5 9B, Ministral 3 8B, Qwen3 8B |
gemma4-26b-a4b-it-qat-q4 (MoE) |
~14.4 GB | 20 GB | the promoted Qwen3.6 27B Q4 at 24 GB, gemma4-12b, and both Qwen MoEs — ~3.8B active/token at 4–8 GB less disk |
gemma4-31b-it-qat-q4 |
~17.7 GB | 24 GB | the Qwen3.6 27B pair as the dense Apache-2.0 Gemma quality ceiling (weakest case: slow CPU decode; mainly GPU offload) |
Evaluated and NOT added:
google/diffusiongemma-26B-A4B-it(diffusion decoder — llama.cpp cannot run it; do not revisit without llama.cpp support); thegemma-4-*-it-assistantmodels (78M–0.5B speculative-decoding drafts, not standalone chat — still parked; the shipped speculative decoding (issue #182) is the Qwen3.8 in-GGUF draft head, which needs no second weight and no--model-draft. Parked until the chat sidecar wires--model-draft); base non--itvariants.Relation to the local-test stubs:
gemma-4-26b-q4(Unsloth UD Q4_K_M of the same base model,sha256: local-unverified, no download block) andgemma4-coding-q8are user-added local-test manifests. The wave'sgemma4-26b-a4b-it-qat-q4supersedes the 26B stub for any distribution purpose (official QAT, verified hash, download block, Apache-2.0 review); the stubs stay for the owner's local models. Theirlicense_review.statusispendingsince #768: it readapprovedbeside a note saying "local/non-redistribution use", whileapprovedmeans the redistribution review (see "The translation role + TranslateGemma"). Nothing else moves: with no download block and a placeholder hash no drive fetches or ships them, and the sell gate asks forapprovedonly of a model a Kit ships. NOTE: the stubs' comment "Gemma has no runtime thinking-mode toggle" contradicts the 12B's verifiedenable_thinkingbehaviour — the wave manifests follow the 12B precedent; the suppression smoke below decides.Text-only in HilbertRaum. E2B/E4B are any-to-any upstream (image/audio in), 26B/31B image-text-to-text; every repo ships an mmproj projector we deliberately do not reference (the 12B posture). E2B/E4B are MatFormer effective-2B/-4B slices.
Thinking: every manifest carries
supports_thinking_mode: true(the Gemma 4 template honoursenable_thinking, verified live on the 12B). Smoke finding (2026-07-23): E4B and 26B-A4B think BY DEFAULT (reasoning first on thereasoning_contentchannel — unlike the shipped 12B), so a short output cap can return empty content (the #50 class); the per-size check thatenable_thinking: falsesuppresses it is part of the promotion smoke.Hashes are real: pinned from HF LFS OIDs (the qwen3.5-27b posture) and confirmed against real downloads —
fetch-modelsfetched + SHA-256-verified E2B/E4B/26B-A4B on 2026-07-23.Runtime: Gemma 4 needs llama.cpp ~b8680+ (MoE included); b9849 loaded all three smoked sizes (E-series MatFormer + the Gemma MoE were arch firsts for the catalog), and the b11146 was re-run on E2B and 12B (#512), and the pinned b12110 on E2B (#729: the #729 repro, the grounded-QA gate and
gemma-thinking; the 12B is a ps-work leg). The 31B (same dense arch string as the 12B) is un-smoked but lowest-risk.Smoke status (2026-07-23): E2B + E4B in-app smoke PASSED (0.1.48 portable, DIY test drive, b9849 win-vulkan). The 26B-A4B loads + answers via CLI but needs a ≥24 GB machine for in-app use + peak-RSS measurement (on a 16 GB box it mmap-thrashes at ~170 s/reply — the RAM gate is doing its job). RAM values are ESTIMATES pending measured RSS (the 26B's rests on the #42 field datapoint). The E2B's
recommended_ram_gbdeliberately sits on the small-tier 16 floor: a unique lower value would make a rank-0 model the only "comfortable fit" at that RAM level and slip past the picker's preferRanked guard (caught by the wave-invariant tests). (Superseded 2026-08-09 by the #153 promotion: ranked 3, the E2B now carries its honest rec-RAM 12 and that "hijack" is the ratified pick — see the amendment below.)None are auto-recommended (RAM path; the card path honors the same rank-0 exclusion — §6.6). All four carry
recommendation_rank: 0+recommended_profiles: []+bundled_on_preconfigured_drive: false— selectable manually, never the RAM-best-fit auto-pick, never bundled, until the local German/English grounded-QA eval promotes them (model-benchmarks.md§9; public scores do not count). Wave tracking + full research record: issue #82.(Wave outcome, ratified 2026-08-03 — full record:
model-benchmarks.md§9.3 "Wave outcome"; evidence: the 2026-07-30 i9 run, PR #92. 26B-A4B → rank 2 (ranked runner-up to the rank-3qwen3.6-27b-q4: EM parity + zero audited hallucinations at ~4× the speed and 2.5 GB less disk; F1 .3307 vs .3523 keeps the Qwen the 24 GB pick — still never the auto-pick). 31B → never promote (the issue-#82 drop condition met: quality ties the 26B-A4B at 4.2–6× slower decode; stays a selectable opt-in GPU-box ceiling). E4B → stays 0 (F1 .2999 misses the 8B bar). E2B → stays 0 for now (edges the bundledqwen3-4bon F1 with equal hallucinations and the fastest cpu decode measured, butqwen3-4b-2507keeps the tier quality lead and the issue-#53 weak-16 GB-box datapoint is still owed — that leg decides, wave follow-up issue). Thinking verified per size (all suppress cleanly; E2B Deep 7/8 — flip rule NO); §9.1 smokes complete for 26B-A4B + 31B; RAM lines confirmed on the vulkan basis and kept (the Linux-cpu values are a non-comparable mmap basis). Smoke-status and RAM-estimate bullets above describe the wave-open state.)(#153 amendment, 2026-08-09, owner-ratified: E2B → rank 3. The owed weak-16 GB-box in-app Diagnostics leg landed on the designated class (i7-1185G7 / Iris Xe / 15.8 GB, Vulkan b9849): E2B 17.0 tok/s settled vs
qwen3.5-4b9.0 and bundledqwen3-4b14.6 — the big-rig ~2× cpu ratio reproduces (iGPU basis; full table on issue #153).recommended_ram_gbretuned 16 → 12: E2B is the sub-16 comfortable band (12–15 GB boxes) and the §6.5 step-down's landing tier for 16–20 GB crawls.qwen3-4b-2507keeps the tier quality lead but stays rank 1; E2B beats the previous 12 GB pickqwen3.5-4bon both F1 (.3373 vs .2728) and speed. Full record:model-benchmarks.md§6.5 "#153 amendment".)
Manifest format & parsing
Manifests are YAML, parsed with the pure-JS yaml package
(boring, reliable, no native deps, works fully offline). The schema and a
hand-written validator live in apps/desktop/src/shared/manifest.ts (one source of truth shared by
main + renderer). Validation collects all errors per file and is pure (no I/O) for easy testing.
Manifest fields (required)
id, display_name, family, role, format, runtime, license, size_on_disk_gb, recommended_min_ram_gb, recommended_ram_gb, recommended_context_tokens, local_path, sha256 plus a
license_review block. Optional: recommended_profiles (a list of hardware profiles — the legacy
no-RAM picker), recommendation_rank (a finite number, default 0; higher = preferred among models that fit
the machine's RAM — the Phase-29 quality-aware tiebreak in recommendModelIdByRam),
recommendation_rank_cpu (a number ≥ 0; replaces recommendation_rank when the next start runs
from the processor, 0 = never the automatic pick there; model-benchmarks.md §6.7),
step_down_to (the id of the chat model the processor and card paths step to after a slow
benchmark on this one; §6.7, §6.8), recommendation_rank_gpu (a number ≥ 0; replaces
recommendation_rank on a discrete card; §6.8), projected_graphics_need_mib (a number ≥ 0; the
runtime's own fit projection under the app's launch, which replaces the derived card estimate; §6.8),
supports_thinking_mode (below), bundled_on_preconfigured_drive (below),
speculative_decoding (below), disable_prompt_cache (below),
a download block (below),
estimated_context_cache_gib (number ≥ 0; the graphics-memory picker's per-model context-cache
term, PR #308 §6.6 rule C — absent defaults to 0.5 GiB in code, so the field is set only for the
eight models with a worked-out figure: two read off a hardware start, gemma4-26b-a4b-it-qat-q4
(#412) and translategemma-12b-it-q4 (#473), and six derived from the launch config, each
manifest's YAML comment carrying its arithmetic; model-benchmarks.md §6.6),
host_mapped_weights_mib (number ≥ 0, #321; the weights that stay host-mapped on a full offload,
which the same estimate subtracts — absent charges the whole file to the card), and — for a role: vision
model — an mmproj projector sub-block + an informational input_modalities list (see "The
vision role + mmproj projector" below), an optional files: list (below, #310),
min_app_version (below, #847) and default_for_role (below, #848). Unknown extra keys (e.g.
supports_tools, dimensions) are ignored by the validator.
default_for_role(optional boolean, defaultfalse, #848) makes THIS manifest its role's model.resolveModelByRole(the embedder, the reranker, the transcriber, the translator) takes the first manifest of the role that sets it, else the first of the role in walk order. The images model applies the same rule to the vision manifests whose files are ALL on the drive (pickVisionManifest, #890): the flagged one when it is there, else the first one there. Images runs that model; when its files are there but fail their check, it runs the next vision model on the drive (visionCandidates), so it never goes dark while another model would run. Discovery walksmodel-manifests/depth first, each folder's entry names in code-unit order, on every OS (FAT/exFAT, ext4 and APFS do not list a folder sorted, NTFS does), so the order no longer depends on the drive. The committed embedder,multilingual-e5-small-q8, sets it, so an embeddings manifest a later release or a user adds never re-points the embedder; that would ask the user to re-index the whole library. The flag decides whether or not the flagged model's file is present: with the E5 weight missing the app runs on the mock embedder even when another embeddings model is installed, deliberately (its vectors would not match the index; rag-design "Embedding during ingestion"). To move the default, move the flag. At most one manifest per role sets it (committed-catalog.test.ts). It is accepted on chat, where nothing reads it (the active chat model is the user's pick). The workspace'sactiveEmbeddingModelIdsetting does not choose the embedder (known-limitations.md). The flag decides among the USABLE manifests only: when no usable manifest of the role is flagged (none ever was, or the flagged one is invalid or, for an older app, for a newer HilbertRaum), the first usable manifest of the role in walk order is the model, another embedder included. Frozen constraint: a release must never make thedefault_for_rolemanifest unusable for an older build (nomin_app_versionon it, no field change that build rejects) without flagging a usable replacement in the same release. One function,pickManifestForRole(shared/manifest.ts), is this rule for what the app composes (resolveModelByRole), the images model (getVisionStatus, over the vision manifests on the drive), the Performance screen's role rows and the AI Model screen's ★ on an embeddings card. That ★ marks the composed model when it fits this machine's RAM, and no embeddings card otherwise (the ★ is runnable by construction).Fields an older app reads are ignored where they are inert, never rejected (#848, D848-3). A manifest field this release reads must not make a later release's manifest vanish from it: a field that does nothing for a role is accepted there (
default_for_roleon chat). The older rule that rejectsspeculative_decodinganddisable_prompt_cacheoutside chat predates this principle and stays as shipped. A later release that needs either on another role usesmin_app_version(below).A manifest for a newer HilbertRaum (#847) is not invalid. A
rolethis build does not know (a non-empty string outside the six roles) or amin_app_versionabove the running app routes the file, before any validation, to a separateunsupportedlist indiscoverManifests. Only its display fields are read:idanddisplay_name(required), and when presentrole,family,size_on_disk_gband the drive-relativelocal_path/mmproj.local_path/files[].local_path(each under the same containment rule, because their existence is checked). Everything else is ignored, since this build cannot know which of its own rules a later role or field follows. The entry never joins the model list anything selects from, so it is never recommended, verified, downloaded or started (the main process refuses it as an unknown model,main.models.unknown: "This model is no longer in this drive's model list", in the interface language, #930). The Models screen lists it, with nothing to act on, in a trailing "Needs a newer HilbertRaum" section, and on "On this drive" when every declared file exists (design-guidelines §15). A missing, blank or non-stringrole, or a missingid/display_name, is still invalid. Such entries share the models' id space, and a manifest this app can use ALWAYS keeps its id, whatever the walk order (F-847-4): a same-id entry for a newer HilbertRaum is reported as a duplicate and not listed (among entries for a newer HilbertRaum, the first in walk order wins). A role this build does not know includes a typo in a hand-written manifest (role: Chat): it reads "Needs a newer HilbertRaum" too, since the two cannot be told apart. The sell gate counts every such manifest as a problem: a Kit ships its own app. Builds up to v0.1.65 reject these manifests, so there they still vanish.min_app_version(optional, exactlyMAJOR.MINOR.PATCH, #847) names the oldest HilbertRaum a manifest is for. It is read BEFORE validation, so a later release can mark ANY manifest as not for older apps: a new field rule, a new enum value, or a model its pinned engine cannot load. An older app (from the release that added this field on) then lists it as above instead of validating it. Parts compare as numbers (0.1.100is newer than0.1.65). It is fail-safe: a value that is not exactlyMAJOR.MINOR.PATCH(a pre-release minimum such as0.2.0-beta, a fourth part, a leading zero, av, a YAML number), or an app that does not know its own version, counts as newer. An app version with a pre-release suffix is older than its release (0.1.66-beta.1does not meet0.1.66); build metadata (+…) is ignored. On the ONLY manifest of an id the field hides that model from every older app (an embedder hidden that way means the mock embedder there), so never add it to an id older apps run. Shipping it in a SECOND file with the same id, beside the manifest older apps can use, is safe for them: a usable manifest always keeps its id (above). Builds up to v0.1.65 ignore the field and use the manifest. No committed manifest sets it. The app compares it withapp.getVersion(), the sell gate with its--app-version. The skills gate (a skill'scompatibility.minAppVersion,skillNeedsNewerApp) makes the same comparison (appOlderThanMinimum,shared/app-version.ts, #896; the frozen model gate keeps its own copy, and a unit test holds the two to one answer): parts compare as numbers, and a pre-release app is older than its own release, so a skill and a model with the same minimum get the same answer on every version both can read. It still differs as an older courtesy gate: it is fail-open (an app version it cannot read, such as'', is compatible), and it reads both sides leniently (the app by its leadingMAJOR.MINOR.PATCH, so0.1.66.4reads as0.1.66; a validated minimum with a leading zero,01.1.66, compares as numbers).files(optional, #310) declares the ADDITIONAL required files of this model's weight beyondlocal_path/sha256, which stay mandatory and PRIMARY — shard 1, the filellama-server --modelreceives. Each member is a mapping{ local_path, sha256, download? }(same shapes as the top-level fields;downloadvalidated by the same rules as the top-leveldownloadblock). Key order:files:must come afterlocal_path/sha256/download/mmproj; other keys may follow it (the whisper manifest ends withbundled_on_preconfigured_drive,recommended_profilesandlicense_review) —verify-models.{sh,ps1}andfetch-models.{sh,ps1}scrape a manifest with a flat, first-match line parser (§"Re-verifying the catalog against upstream" / "The DIY download flow" below) that reads the top-level keys by file order, so a nestedlocal_path:/sha256:pair placed earlier would poison them. Validator rules (fail-closed, exact messages):filesmust be a non-empty list of mappings:"files" must be a list of mappings (local_path/sha256/download);"files" must not be an empty list — omit it instead.- Each
files[N].local_pathis required, drive-relative (the samelocal_path/mmproj.local_pathcontainment rule), and must not repeat any path the manifest already declares (local_path,mmproj.local_path, or an earlierfiles[]entry):"files[N].local_path" must not repeat a path the manifest already declares: <path>. - Each
files[N].sha256is required (a real hash or a placeholder, same as the top-levelsha256). - Download all-or-nothing: if the top-level
downloadis present, everyfiles[N]must carry its owndownload("files[N].download" is required when the model declares a top-level "download" (a partial download plan would install a model that cannot start)), and if anyfiles[N]carriesdownloadthe top-level must too (the mirror message). A realfiles[N].download.sha256must equal the realfiles[N].sha256, exactly like the top-leveldownload/sha256pair. - Shard-convention completeness: a
local_pathmatching llama.cpp's<stem>-<NNNNN>-of-<NNNNN>.ggufconvention must be index00001, andfiles:must declare EXACTLY the sibling paths for indices2..N— a missing, extra, or misnumbered sibling is named in the error; a shard-lookinglocal_pathwith nofiles:at all is rejected ("local_path" names shard 1 of a multi-file weight but no "files" list declares the remaining shards). Non-shard files infiles:are unaffected — the field is generic, not shard-specific. An invalid manifest (any of the above) is logged and skipped bydiscoverManifests— never listed, never installed, never startable. (A manifest for a newer HilbertRaum is not invalid: it is listed for display only, see above.)manifestFiles()appends everyfiles[]entry askind: 'extra', so install state, the verify/download-progress byte totals, the drive verifier,checksums.json, and the download planner all account for the whole weight with no further change (see "The in-app downloader" anddocs/data-contracts.md). Not done in this wave: no forward-compatformatmarker — an older build ignoresfiles:and reports shard 1installed(today's behaviour, no worse; a marker is #311's containment decision to make). NoModelInfo/ Models-screen per-file view yet.
local_pathis resolved relative to the drive root, so a value ofmodels/chat/foo.ggufpoints at<drive-root>/models/chat/foo.gguf.sha256is lower-case hex (64 chars). A non-hex placeholder (e.g.REPLACE_WITH_REAL_HASH) marks a model whose hash is not yet known; such a file is only usable in developer mode on a drive whose policy allows unverified models. The AI Model screen shows such a model as No checksum (#932, "Model states" below).runtime/format: the supported pairs arellama_cpp/gguf(chat, embeddings, reranker, vision) andwhisper_cpp/ggml(the transcriber); any other runtime/format pair yields theunsupportedstate.bundled_on_preconfigured_drive(optional boolean, defaultfalse, #766) puts the model in the set a preconfigured Kit preloads.build-commercial-drivefetches only these (fetch-models --bundled), and the sell gate requires each one present, VERIFIED andapproved. Every other manifest on a Kit is the in-app download catalog. The app does not read the flag at runtime. The bundled set today:qwen3-4b-instruct-q4,multilingual-e5-small-q8,whisper-small-multilingual. Rules and history: packaging.md "What a Kit ships".supports_thinking_mode(optional boolean, defaultfalse) is load-bearing: it declares that the model's chat template implements theenable_thinkingswitch (Qwen3-style native reasoning). The chat UI offers the Deep answer mode only for a running model whose manifest sets ittrue(surfaced viaRuntimeStatus.supportsThinkingMode). Setting it on a model whose template ignoresenable_thinkingis harmless at the request level (the kwarg is inert) but misleading — Deep would behave exactly like Balanced. The four original Qwen3 chat models are the hybrid-thinking releases (Qwen/Qwen3-*-GGUF) and correctly declaretrue. Of the Phase-28 challengers, Gemma 4 also declarestrue— its template honoursenable_thinkingand the Phase-29 thinking-quality check (run #2,tests/manual/gemma-thinking.test.ts) confirmed Deep deliberates coherently and never regresses (8/8 = Balanced), so the flag was flipped. Ministral 3, Granite 4.1, and the "Qwen3 4B Instruct 2507" refresh are instruct-only and declarefalse: Deep behaves like Balanced on them, by design.speculative_decoding(optional, issue #182) is a closed enum — today onlymtp— and it is chat-role only (a value on any other role is a validation error, because only the chat start ladder consumes it). It declares that the WEIGHT ships a trained-in multi-token- prediction draft head (Qwen3.8'sblk.64.nextn.*tensors, which llama-server otherwise loads and ignores); the runtime maps that ONE name to a fixed, code-owned flag pair (--spec-type draft-mtp --spec-draft-n-max 2). A manifest never supplies arguments — anextra_server_args-style field would let a hand-edited on-drive manifest inject any llama-server flag, and a smuggled--host 0.0.0.0would defeat the loopback-only invariant (extras are appended last, and a later flag wins). Declaring it is an opt-in, not a decision: the start ladder tries it on a dedicated rung above the plain GPU rung, only when a device probe shows one card with the weight's bytes plus 3.5 GiB free, and falls back to exactly today's behavior otherwise — so setting it on a model without the head costs one failed start attempt per session, never a broken model. Carried today by four manifests:qwen3.8-27b-q4/qwen3.8-27b-q5(kept as rank-0 installed-base records after their source was withdrawn — a local file still starts with MTP) and their measured successorsqwen3.8-27b-ud-q4km/qwen3.8-27b-ud-q5km. Deliberately NOT by either Q6 —qwen3.8-27b-q6peaks at 22.7 GiB andqwen3.8-27b-ud-q6kat 21.8 GiB on a 24 GB card at ctx 8192, and that VRAM fit is their whole reason to exist. Design record:architecture.md"MTP speculative decoding"; measured evidence:model-benchmarks.md§9.4 and §9.5. Never copy the flag onto a successor manifest on family resemblance (issue #196): upstream's Dynamic 3.0 rebuild publishes the MTP module as a SEPARATE file for quants below 8.37 GB, while this enum member means an in-GGUF head with no second model file. Re-verify per file, by spawning it with the flag pair and reading draft acceptance back — done for the two UD successors on 2026-08-20 (acceptance 0.79 / 0.67, head PRESENT; §9.5), which is why they keep the field and why nothing keeps it unverified.disable_prompt_cache(optional boolean, defaultfalse, issue #512) is chat-role only (a value on any other role is a validation error; a non-boolean too). It states a FACT: the pinned llama-server cannot restore this model's evicted prompt from its host-RAM prompt cache, so the cache is written and never read.truemaps to the code-owned--cache-ram 0; absent orfalsekeeps the cache on with the RAM-scaled ceiling every chat model gets (1/8 of total RAM, at most 8,192 MiB —shared/prompt-cache-rules.ts). Likespeculative_decoding, the manifest never supplies arguments. It replaces the #399 family list (qwen3.5,qwen3.6,qwen3.8,gemma4got--cache-ram 0on b9849): on b11146 all four restore, measured (qwen3.6/qwen3.8 on the 24 GB rig, PR #524), and on b12110qwen3.5andgemma4restore 30 of 30 conversations each (#729; qwen3.6/qwen3.8 are the rig leg), so no committed manifest sets it (committed-catalog.test.ts). To decide it for a new GGUF, runtests/manual/prompt-cache-smoke.test.ts(HILBERTRAUM_PROMPT_CACHE_SMOKE=<drive root>,HILBERTRAUM_SMOKE_MODEL=<gguf>): it evicts a ~1,700-token conversation with an unrelated one that shares its system message (the app's case), brings it back and printsRESTOREDorRE-PREFILLEDwith the advice. An older app ignores the key (unknown keys are ignored), which is the cache-on behaviour it already had. Evidence:model-benchmarks.md§6.6 "#512 amendment".
Model states (spec §7.4)
Computed by services/models.ts with this precedence:
unsupported → missing (any required file absent) → checksum_failed (a hash mismatch on any
required file, or a placeholder hash outside developer mode) → installed. "Required files" is
every entry manifestFiles() enumerates — the weight, a vision model's mmproj, and any #310
files: entries — not just the primary. The active running model is shown as running. A manifest for
a newer HilbertRaum (#847, above) is listed as unsupported too, display-only: ModelInfo.role is
'unknown' (its declared role rides declaredRole), needsNewerApp: true, never recommended, no
download, and filesPresent says whether every file it declares exists (existence only, no hash).
checksum_failed covers two facts, and the screens tell them apart without a new state:
- A file failed its check (a cached or computed digest differs from the manifest's). The AI Model card says Can't verify and offers its Download (the repair).
- No checksum on record (a placeholder hash, outside developer leniency; decided from the manifest
before any file is read).
buildModelListflags the modelModelInfo.noChecksum: true(hasPlaceholderHash, #932). The card says No checksum, with a hint that the model runs only in developer mode on a drive whose policy allows unverified models, and offers no Download: a new copy cannot give the manifest a checksum. A mixed manifest (a real-hash GGUF beside a placeholder projector) is flagged too, even when its GGUF is damaged: the placeholder decides the state before the GGUF is read, and the model stays refused until every file has a checksum, so the card hides the Download that would fetch the GGUF (#933 review N2).
ModelState, the start verdict (checkModelBeforeStart: ok | damaged) and every role's start gate
are the same for both, so both are refused at every start. The images, translation and search copy still
calls both "damaged" (known-limitations.md). The Performance screen reads the same two facts per row,
from the checksum cache only (knownFileVerdict, never a hash; ResidentModelRow.fileCheck: damaged |
unverified | ok, #933). Such a row's pill says failed its file check or no checksum on record
instead of "not loaded", and the row adds nothing to "Everything loaded at once" or the graphics-card
lines unless the model is loaded. A file nobody has checked yet reads ok there, as on the AI Model card.
License review gate
license_review:
status: pending | approved | rejected
reviewed_by: null
reviewed_at: null
notes: ""
- DIY / developer:
status: pendingallowed. - Preconfigured commercial drive:
status: approvedrequired, with reviewed license, commercial-use status, attribution requirements, and quantization source recorded.
Do not bundle a model unless its license has been reviewed.
How the recorded attribution requirements are discharged (LIC-1, full-audit 2026-07-12b).
The approved review notes record "ship the LICENSE/NOTICE attribution with the drive" — a
license_url in YAML is not a license copy, and resolving one needs network on an offline
product. The mechanism: the committed, GENERATED root file DRIVE-NOTICES.md
(node scripts/generate-drive-notices.mjs) carries one attribution line per model manifest
(id, upstream repo, declared license, download.license_url where one is recorded, plus any
non-approved license_review.status; a local-test entry, with no download block and no real
hash, says "no license URL recorded: a local-test entry; no drive ships or downloads this weight"
in place of the upstream and the URL, #768), the full Apache-2.0 text once, and the MIT / zlib texts for the
llama.cpp + whisper.cpp binaries and the SDL2.dll the whisper Windows archive bundles — those
texts are pinned in-repo under licenses/ at review time because the upstream release
archives ship no license file (see licenses/README.md). prepare-drive copies
LICENSE + THIRD-PARTY-NOTICES.md + DRIVE-NOTICES.md to the drive root, and the sell
gate (assertCommercialDrive + build-commercial-drive.{ps1,sh} step 7) fails a drive where
any of the three is missing or empty. Freshness + coverage (every runtime family in
runtime-sources.yaml, every manifest) are enforced by
apps/desktop/tests/integration/drive-notices.test.ts — regenerate + commit the file together
with any manifest or runtime-pin change. The TranslateGemma commercial flow-down items (a
Gemma Terms copy on the drive, the verbatim Gemma notice, the sale-terms clause) fold into
this same mechanism when that separate review closes; until then its pending status keeps
it off sold drives while its attribution line is already carried.
Disqualified / parked candidates (Phase-28 license research, 2026-06-10)
Disqualified (do not revisit without new facts): EXAONE 4.x (NC license); Ministral
8B-Instruct-2410 (Mistral Research License, non-commercial — the -2512 name-twin
trap); Phi-4 (MIT but not multilingual → fails German); Mistral Large 3 (Apache but 675B).
Parked: Llama 3.x (community license, encumbered vs all-Apache alternatives), GLM-4
(MIT, German unproven), Gemma 3 (custom Gemma Terms — superseded by Apache-2.0 Gemma 4).
Full research record: model-benchmarks.md §7.
Optional download block (the DIY asset loader)
The schema gained an optional download block describing where the fetch-models scripts pull
the weight from and what to verify it against. It is additive — manifests with no download:
stay valid, and the validator only checks the sub-fields when the block is present.
download:
url: https://huggingface.co/Qwen/Qwen3-4B-GGUF/resolve/main/Qwen3-4B-Q4_K_M.gguf?download=true
sha256: REPLACE_WITH_REAL_HASH # when a real hash, MUST equal the top-level sha256 (same file)
size_bytes: 2497280256 # optional; progress + a DRIFT-TOLERANT in-app download body cap
license_url: https://huggingface.co/Qwen/Qwen3-4B-GGUF/blob/main/LICENSE # optional
Rules (validated in shared/manifest.ts):
download.urlis required + non-empty when the block is present.download.sha256is required (a real lower-case hash, or aREPLACE_WITH_REAL_HASHplaceholder). A realdownload.sha256must equal a real top-levelsha256— they describe one file.download.size_bytes(≥ 0) anddownload.license_urlare optional.
The same shape (and the same rules) apply to mmproj.download and, since #310, to a
files[N].download block — each declares its own source and is validated against that file's own
sha256. A model's download blocks are all-or-nothing: see "Manifest fields (required)" above
for the files: rule, and the validator rules under the vision role for mmproj (#752).
size_bytes feeds the progress bar AND the in-app downloader's disk-fill body cap
(modelWeightMaxBytes). The cap is drift-tolerant — size_bytes grown by a comfortable headroom
(25 %, floor 128 MiB; BUG dl-size-cap-2026-07-03) — so a file a little larger than the declared size
still downloads; the SHA verify is the integrity control.
Declare it on every file, the projector and each files: entry too. Since #768 it also feeds
the confirmation dialog's size (all of a model's files, summed) and the downloader's free-space
refusal, and a file without it skips that check and gets the role's ceiling as its cap (40 GiB for
vision). The vision manifest was the last that declared none; its two sizes were read from Hugging
Face's LFS metadata on 2026-11-03, each file's OID equal to its pinned sha256, and since #768
committed-catalog.test.ts compares size_on_disk_gb with the sum of every file's size_bytes
and expects no downloadable manifest without them.
Field scope: size_bytes is DRIFT-TOLERANT by design — it is the one manifest number the code
does not assume is exact. Everywhere else the rule holds without qualification (manifest numbers
are measured, never estimated), and size_bytes should still be the real byte count: capture it with
verify-models --generate, and correct it when a drift check finds it stale — four Qwen3 manifests
carried hand-rounded values until issue #202 replaced them with measured ones on 2026-08-20. But the
downloader must survive the case where it is not exact, because upstream can change the file's size
underneath a pinned manifest without our knowing: issue #201 is the proof — Google's corrected
gemma4-12B checkpoint arrived 1,568 bytes larger at the same URL. That is why assets.ts's cap
carries headroom rather than being keyed exactly to size_bytes, and the headroom is not arbitrary:
an exact cap is what truncated a legitimate download at ~95 % once already. Integrity is enforced by
sha256 regardless, so a wrong size_bytes costs a wrong progress estimate, never a wrong file.
Keep the two facing directions straight: declare it exactly, consume it tolerantly — and never
understate it by more than the headroom, which is the failure the cap was widened to end.
Leave sha256 as the placeholder until a real drive is built; fetch the weight, then run
verify-models --generate to capture the real hash and the exact size_bytes and promote them
into the manifest. A 64-hex value the code treats as a verified hash, so never transcribe a hash
you have not computed from the actual downloaded file — an unverified guess hard-fails the checksum.
Withdrawn upstream sources (download.withdrawn, issue #196)
Publishers delete and restructure their repos. On 2026-08-20 unsloth removed the static K-quants
from Qwen3.8-27B-GGUF (their Dynamic 3.0 rollout) and the three files our Qwen3.8 manifests pin
began returning HTTP 404 (model-benchmarks.md §9.5). Hash pinning means we can never be handed
substituted weights — but everyone downstream rediscovers the dead link the expensive way: a
multi-GB request that ends in an error reading like a broken connection.
An optional string inside the download block records the fact once, in the manifest:
download:
url: https://huggingface.co/unsloth/Qwen3.8-27B-GGUF/resolve/main/Qwen3.8-27B-Q4_K_M.gguf?download=true
sha256: 7e78da5d…
size_bytes: 17106775008
withdrawn: "2026-08-20: unsloth removed the static K-quants … (HTTP 404 verified 2026-08-20)."
Rules and behaviour:
- A non-empty, dated string — never a bare
true. The note is shown to the user and read by a maintainer months later; the validator rejects an empty value or a boolean. - A successor is named by its display name, at the end (#768):
Successor in the catalog: <display_name>.— the three Qwen3.8 notes endSuccessor in the catalog: Qwen3.8 27B UD-Q4_K_M.(andUD-Q5_K_M,UD-Q6_K). The card shows the note verbatim, and their earlier tail, "Successor candidate UD-… awaits the measurement wave of issue 196", stayed on screen ten weeks after that wave closed.committed-catalog.test.tschecks that a note mentioning a successor uses this form and that the name belongs to a manifest whose every file can still be downloaded. - The rest of the block stays.
url/sha256/size_bytes/license_urlremain the provenance record of the file existing drives carry, and that local copy keeps verifying normally. A withdrawn source never disturbs an installed weight (the planner still reportspresent-verified). - Planner (
assets.tsplanModelDownloads, the source of truth): a file that would need fetching planssource-withdrawninstead ofdownload— checked before the license gate, since no acknowledgement can conjure a deleted file back. - In-app: the AI Model card shows the reason in place of the Download button, and the main
process refuses
downloadModelfor such a manifest anyway (a renderer bug must never cost the user a doomed multi-GB request). The network-gate banner does not fire for a model that is unfetchable for reasons that have nothing to do with the drive's policy. - Fetch scripts:
fetch-models.{ps1,sh}print a loudSKIP … upstream source withdrawnline and continue — one retired file must not fail a whole drive build.script-execution.test.tsruns the skip on both twins. Their flat-YAML parser strips inline comments at" #", so a withdrawal note must not contain" #"(write "issue 196", not "issue #196") — also asserted in CI. - Ranking: a withdrawn manifest carries
recommendation_rank: 0— selectable, never auto-recommended.committed-catalog.test.tspins the general invariant ("no committed manifest is both recommended and unobtainable"), so a fresh drive is never pointed at a model it cannot obtain. Hand the tier to the best-measured model whose source is still live.
Re-verifying the catalog against upstream (the drift check)
A deleted file is the loud upstream failure. The quiet one is a live URL that now serves different bytes — the publisher re-uploaded the weight, so the download still runs to completion and then fails SHA-256 verification, at the end of several GB, with a message the user cannot act on. Hash pinning stops us being handed substituted weights silently; it does not tell us the substitution happened.
So the periodic catalog check compares the upstream hash, not just the status code. For every
committed download.url:
- URL alive?
HEAD, redirects followed. A 404 means the file is gone →download.withdrawn. - Same bytes? Compare the upstream git-LFS OID (which, for a HuggingFace LFS object, is the
file's SHA-256) against the manifest's
sha256. A mismatch on a live URL is the quiet failure. Repointing the manifest at the new bytes is a substitution, and manifest numbers are measured, never estimated — so it needs its own measurement wave, exactly like the successor of a withdrawn file (below).
Repoint in place, or enter a successor id? The wave decides, and the two precedents differ on
one fact: whether the pinned file still exists upstream. Issue #196 (deleted files) used
successor ids — the old manifests had to stay valid for drives that still hold those exact
bytes. Issue #201 (a file superseded at the same path, 2026-08-20) repointed in place,
because the wave measured the old and corrected checkpoints as indistinguishable on every shipped
surface — all 100 §2 answers byte-identical, memory envelope unmoved — so a successor id would
have put two provably indistinguishable entries in the catalog. The cost of an in-place repoint is
real and must be stated where users see it: every installed copy of the old bytes reports
checksum_failed until it re-downloads. Weigh that blast radius explicitly
(bundled_on_preconfigured_drive, the --with-assets default set, the model's rank) and record
the decision in the wave's design record. Full reasoning: model-benchmarks.md §9.6.
The trap that makes step 2 easy to get wrong: a HEAD that follows redirects returns the
CDN's own ETag, which is never the LFS OID — every HuggingFace manifest then reads as a mismatch.
Read the OID off the huggingface.co 302 itself — x-linked-etag / x-linked-size, i.e. a
request with redirects NOT followed — or ask the API
(https://huggingface.co/api/models/<repo>/tree/main) and read the entry's lfs.oid and
lfs.size. Cross-checking both ways is cheap and worth it: they are independent paths to the
same number.
History worth keeping: the issue-#196 blast-radius sweep checked step 1 across the whole catalog and step 2 for the Qwen3.6 pair only. That was enough for #196 and left one drifted manifest undetected for five weeks (issue #201, found by the 2026-08-20 docs/code audit). Both steps, every manifest.
When a successor file is eventually measured and productized, the withdrawn manifest is retired
(or kept as an installed-base record) per the wave that promotes the successor — that decision
belongs to the wave, not to this field. Precedent set by the first such wave (issue #196,
2026-08-20): the three withdrawn Qwen3.8 manifests were kept, at rank 0 with their dated
note, and the successors entered as NEW ids (qwen3.8-27b-ud-*) rather than as an in-place URL
- hash swap. Reason: a drive that already carries a withdrawn weight keeps a manifest whose hash
its file still matches, so it verifies, starts and keeps MTP — an in-place swap would have turned
every installed copy into
checksum_failedovernight.
The DIY download flow + license gate (spec §13)
scripts/fetch-models.{ps1,sh} downloads each weight with a download block, resumes partials,
and SHA-256-verifies against the manifest before counting it installed (a real-hash mismatch
deletes the partial and exits non-zero; a placeholder hash downloads but reports UNVERIFIED). Each
file's url and size_bytes come from that file's own download block, never another file's (#767).
Half a download pair (a top-level download without one on mmproj or a files[N], or the other way
round) is refused before anything is fetched, as the vision section below describes, and
--only <id> exits 2 when no manifest has that id or its manifest declares no download block.
scripts/fetch-runtime.{ps1,sh} does the same for the llama-server sidecar from
model-manifests/runtime-sources.yaml.
Before the first download, the license gate refuses any model whose license_review.status is
not approved unless --accept-license/-AcceptLicense is passed (the license + license_url are
printed first). The DIY path pulls from the upstream source, which sidesteps redistribution; a
sold drive still needs a redistribution-permitting license recorded as approved.
Network is explicit, never automatic. The
fetch-*scripts run on the drive-builder's online machine. The app itself never auto-downloads — the in-app downloader below runs only when every gate passes, per explicit user click.
The in-app downloader
A model that is missing (or failed its checksum) and whose manifest carries a download block
can be fetched from the AI Model screen. Three gates, ALL required, re-checked in the main
process on every start (architecture.md "In-app model downloader"):
- Policy ceiling —
policy.network.allow_model_downloads. Downloads are policy-permitted everywhere by default: the no-policy.jsondefault allows them (wave-1 decision D3, resolved (a)), and since 2026-07-01prepare-drivewrites allow in BOTH its postures (dev and commercial), so the user toggle below is the effective gate on prepared drives too. A drive builder who wants a download-locked drive hand-editsconfig/policy.jsontoallow_model_downloads: false. Policy only restricts, never expands — and update checks + telemetry remain always denied in every posture (the app never phones home). - User setting — the spec §3.6 Settings checkbox ("Allow internet access for model
downloads and updates"), default ON for a fresh DIY/developer install
(
DEFAULT_SETTINGS.allowNetwork: true); the policy ceiling in gate 1 still wins — on a drive whosepolicy.jsondenies downloads, the toggle cannot re-enable them. While the workspace is locked the setting is unreadable and treated as off. - Per-download confirmation — a dialog showing size, license (+
license_urllink), and the upstream URL. Whenlicense_review.status != approved, an explicit license-acknowledgement checkbox is additionally required (the in-app mirror of--accept-license).
When gate 1 or 2 fails, the AI Model screen says why (disabled by the drive's policy vs. the
Settings toggle). A download that cannot fit is refused before anything is fetched (#768): when the
bytes still to fetch (each file's size_bytes, less a kept .part the run would resume) exceed the
drive's free space, the start fails with both figures (decimal, in the size's unit) and the advice to
free up space or pick a smaller model. A file with no declared size_bytes, or a drive that cannot report its free
space, skips the check, so declaring size_bytes on every file is what makes it work. Mechanics (services/downloads.ts, reusing the assets.ts seams):
async-with-polling job (downloadModel/getDownloadJob/cancelDownload IPC), one download at a
time, bytes land in <weight>.part and are renamed into place only after the SHA-256
verifies; a mismatch deletes the partial and fails the job; a placeholder manifest hash completes
the download but leaves the model UNVERIFIED (checksum honesty — capture a real hash with
verify-models --generate). Cancel keeps the .part; the next attempt resumes with a Range
header (best-effort — a server without range support restarts cleanly). A .part that is already
COMPLETE (a cancel/crash during the verify, or a failed rename) is verified in place instead of
re-requested — a match renames into place, a mismatch discards it for a clean restart (F-13,
full-audit 2026-07-16; no HTTP 416 dead-end). On success the checksum cache is primed with the
hash the verify just computed, so the Models screen reports installed without hashing the file
again; a placeholder-hash file has no real hash to keep, so its entry is invalidated. The offline
guarantee is unchanged: no update checks, no catalog/browsing (only manifests already on the
drive), no background anything.
runtime-sources.yaml (the sidecar, not a model)
model-manifests/runtime-sources.yaml pins one ggml-org/llama.cpp release and lists one prebuilt
build per OS/arch/backend (os, arch, backend, url, sha256, extract_to). The
ordering is vulkan-first: the default build on win/linux is the Vulkan full build
(extracted to runtime/llama.cpp/<os>/), which is safe as a default because the upstream Vulkan
release archives are standalone full builds carrying every CPU backend variant — on a GPU-less
machine the same binary simply runs on its bundled CPU backends (verified against b9585; this
supersedes the earlier "a GPU build fails or runs worse on a non-GPU machine" assumption, which is
false for Vulkan-the-archive). A pure-CPU safety net is additionally pinned per win/linux,
extracted to runtime/llama.cpp/<os>/cpu/ (--backend cpu); mac arm64 stays Metal-only. Licensing
is unchanged: both Vulkan archives are built from the same MIT-licensed llama.cpp source at the
already-approved pinned tag, and the Vulkan loader is not redistributed (it comes with the user's
GPU driver) — no new licenses enter the product. The file is validated by
shared/runtime-sources.ts (duplicate (os, arch, backend) triples are rejected) and is
excluded from model discovery (it is not a model manifest). After each verified extraction
fetch-runtime writes a .hilbertraum-runtime.json install marker; skips are marker-based
(version + backend), never mere binary presence. Re-fetches pre-clean the previous install
(everything except the downloaded archive + the cpu/ safety net) so an upgrade can never mix
two builds or keep a stale binary under a fresh marker (GPU audit round).
License-review record — llama.cpp b12110 runtime assets (the CURRENT pin; status: approved,
reviewed 2026-11-07, issue #729): the pin was bumped b11146 → b12110 (2026-11-04, upstream
commit cd959bae), the build named by upstream's stable release v0.9.0 (both tags resolve to
that commit). llama.cpp itself stays MIT, and no licence class changes: every licence text the
archives carry is byte-identical to b11146's (llama.cpp's LICENSE in the macOS/Linux archives;
LICENSE-LLVM-OpenMP beside libomp.dll in both Windows archives, still equal to
licenses/LLVM-OpenMP.txt, and libomp.dll is the same file). The one new archive member is
llama-connect (llama-connect.exe on Windows), in all five archives since v0.8.0: the program
llama-server --connect starts to open a peer-to-peer tunnel to the server. It is a separately built,
statically linked Rust program (upstream ggml-org/llama-connect) whose own dependency licences the
archives do not carry. It is never installed: the in-app installer and both fetch-runtime twins
delete it after extraction (neverInstalled in assets.ts SIDECAR_FAMILY_SPECS, mirrored in the
scripts and held to it by script-drift.test.ts; the twins also sweep an install they find current),
and the sell gate refuses a Kit that holds it anywhere under an engine folder, so a Kit never conveys it
and no record is needed for it. Other archive changes, none licence-relevant: the macOS/Linux libraries carry new version
suffixes (ggml 0.25.1 → 0.29.0, llama 0.5.0 → 0.9.0; nothing in the repo names them), and the Windows
executables embed an application manifest (UTF-8 code page, long paths; upstream #31329). All five
SHA-256 values are the official GitHub Releases API digest for tag b12110 AND were confirmed
against a local download on 2026-11-07; fetch-runtime re-verifies each archive before extraction.
| Asset | SHA-256 | Bytes | Notes |
|---|---|---|---|
llama-b12110-bin-win-vulkan-x64.zip |
9732a5e48887ca54d0bfe4af4324dc85fd56cd8cda19b52df3542fa6ebe6874f |
37,661,146 | MIT; Vulkan full build (default win build); ships LLVM libomp.dll + LICENSE-LLVM-OpenMP; llama-connect.exe left out |
llama-b12110-bin-win-cpu-x64.zip |
98901e327c252875accaf2d1bf364e10e868843b0b63468baad1aa945cdc5da2 |
24,708,445 | MIT; pure-CPU safety net; same libomp.dll + licence file; llama-connect.exe left out |
llama-b12110-bin-macos-arm64.tar.gz |
4f5b8de12e0b9516658ca6a5764c6ffb3d7c659c3dd538556b1413c7b4050662 |
16,650,691 | MIT; Metal (mac arm64); llama-connect left out |
llama-b12110-bin-ubuntu-vulkan-x64.tar.gz |
a5d741940956ec62e8783aee7e5a4c7c761af867d6f027c3277a51e1a3ac59b0 |
35,858,360 | MIT; Vulkan full build (default linux build); llama-connect left out |
llama-b12110-bin-ubuntu-x64.tar.gz |
368227edcc229be5f9bed16a2223d79b5e41d0ac2e19bcf5825e82291c060e55 |
23,051,958 | MIT; pure-CPU safety net; llama-connect left out |
License-review record — llama.cpp b11146 runtime assets (HISTORICAL — the prior pin; status: approved,
reviewed 2026-09-27, issue #512): the pin was bumped b9849 → b11146 (2026-09-23, upstream
commit 7fe450e1), the build named by upstream's stable release v0.5.0 (both tags resolve to
that commit). llama.cpp itself stays MIT. One component changed licence class in the Windows
archives (win-vulkan and win-cpu alike): the MS OpenMP redistributable libomp140.x86_64.dll is
replaced by the LLVM Project's libomp.dll, shipped with its own LICENSE-LLVM-OpenMP
(Apache-2.0 WITH LLVM-exception, plus the legacy LLVM/OpenMP terms the file carries). The file
lands next to the binary on extraction; the same text is pinned verbatim as
licenses/LLVM-OpenMP.txt and inlined into DRIVE-NOTICES.md (Apache-2.0 §4(a) needs the text
to travel with the copy, and a DLL shipped whole is not the "embedded portions" the LLVM
exception relieves). Other archive changes, none licence-relevant: llama-template-analysis is
dropped (Windows; and on macOS/Linux with llama-debug-template-parser), the macOS/Linux
libraries carry new version suffixes (ggml 0.15.3 → 0.25.1, llama 0.0.9849 → 0.5.0; nothing in the
repo names them), and macOS adds ggml-metal-tuning. The macOS/Linux archives still ship
llama.cpp's own LICENSE. All five SHA-256 values are the official GitHub Releases API digest
for tag b11146 AND were confirmed against a local download on 2026-09-27; fetch-runtime
re-verifies each archive before extraction.
| Asset | SHA-256 | Notes |
|---|---|---|
llama-b11146-bin-win-vulkan-x64.zip |
55a378aa095b466979d85075234f66d7655c7a7483222af0c006c0e55b4d7bd6 |
MIT; Vulkan full build (default win build); ships LLVM libomp.dll + LICENSE-LLVM-OpenMP |
llama-b11146-bin-win-cpu-x64.zip |
14cf1303ca9ac3abd94816850532f9f9a69ac66fbaca3776fc6f9061c2fac1d1 |
MIT; pure-CPU safety net; same libomp.dll + licence file |
llama-b11146-bin-macos-arm64.tar.gz |
1ad3f9eff80edb9dbef4259ad564d1720612ef7eea48fa4afed0e54f5f3d5711 |
MIT; Metal (mac arm64) |
llama-b11146-bin-ubuntu-vulkan-x64.tar.gz |
d3ce40fce7403cc93bcf5718fc46c6efb61ed9709f8e5d9f10c86bf0e30e8fb3 |
MIT; Vulkan full build (default linux build) |
llama-b11146-bin-ubuntu-x64.tar.gz |
c150306eb16b5ab696f76a8bdf810c35fd98a24e82158742e6fa28f420ff8410 |
MIT; pure-CPU safety net |
The yaml is held to these records (#769). committed-catalog.test.ts needs, for every
runtime-sources.yaml build of llama_cpp, whisper_cpp and kiwix_tools and every kiwix
source tarball, a table row in that family's section of this file naming the asset with the same
SHA-256, and the same byte count where the yaml pins one. A pin bump is red until its record is
written. The historical tables below name their tag in every asset, so they never answer for the
current pin. The OCR table is held the same way, through OCR_PINS (ocr-pins.test.ts).
What these builds need from the host system (#530, read with objdump -T / readelf -d
and run in stock Ubuntu containers, 2026-10-01; architecture.md "Engine load failures"; re-read on
b12110 on 2026-11-07 for #729: unchanged, every line below holds for both pins):
- Both Linux builds need glibc ≥ 2.34, libstdc++ with
GLIBCXX_3.4.30(GCC 12), OpenSSL 3 (libssl.so.3/libcrypto.so.3) forllama-server, and the system's GCC OpenMP runtimelibgomp.so.1, which is not bundled: desktop images shiplibgomp1.libvulkan.so.1is needed for the GPU path only; the backend isdlopened. - Both Windows builds import the Microsoft Visual C++ 2015–2022 runtime (
msvcp140.dll,vcruntime140.dll,vcruntime140_1.dll), which is not bundled. The whisper.cpp and kiwix-tools Windows builds import it too.
Together that is the documented Linux minimum: Ubuntu 22.04, Debian 12, Fedora 36 and newer.
License-review record — llama.cpp b9849 runtime assets (HISTORICAL — the prior pin; status:
approved, reviewed 2026-07-01): the pin was bumped b9585 → b9849 (2026-06-30, upstream commit
799fcc0) as the Qwen3.5 compatibility gate. Licensing is unchanged from the b9585 review
below: all five pinned assets build from the same MIT-licensed ggml-org/llama.cpp source at
tag b9849, the Vulkan archives redistribute no Vulkan SDK/loader (it ships with the user's GPU
driver), and the win/win-cpu zips ship the same MS OpenMP redistributable as before — no new
license class enters the product. The SHA-256 values are the official GitHub Releases API
digest metadata for tag b9849 (cross-checked twice); fetch-runtime re-verifies every
archive against them before extraction, so the REQUIRED manual smoke (download + install on a real
drive) is also the hash confirmation — a wrong/changed digest fails the run, never installs a bad
binary.
| Asset | SHA-256 | Notes |
|---|---|---|
llama-b9849-bin-win-vulkan-x64.zip |
ed6156dec5303748fdf13d0056c5fb29aa504210e01d949e72ce20e3d680e4d6 |
MIT; Vulkan full build (default win build) |
llama-b9849-bin-win-cpu-x64.zip |
fa7d9d93fa86979c5b44ba176cadae1167b5b054d4c467d184d81def4d714352 |
MIT; pure-CPU safety net |
llama-b9849-bin-macos-arm64.tar.gz |
fccd749707c0fb0bbcee1682a0097f0d7a6e4adb6ce7fc8c6151d9e1d4b3c830 |
MIT; Metal (mac arm64) |
llama-b9849-bin-ubuntu-vulkan-x64.tar.gz |
0fb2491604cbc468321bcaaa56991cfbc27fb0ac58b9597fd290a81b86da06d4 |
MIT; Vulkan full build (default linux build) |
llama-b9849-bin-ubuntu-x64.tar.gz |
9ce3b4db4535fd68efb272b7159ffbe0748884c2db3525e68ae4315ba2df2a4d |
MIT; pure-CPU safety net |
License-review record — llama.cpp b9585 runtime assets (HISTORICAL — the prior pin; extends the
original b9585 review, commit 8bdeb2e; status: approved, reviewed 2026-06-10): all five pinned
assets build from the same MIT-licensed ggml-org/llama.cpp source at tag b9585. The two
later-added assets (Vulkan default + CPU safety net) are explicitly part of this record:
| Asset | SHA-256 | Notes |
|---|---|---|
llama-b9585-bin-win-vulkan-x64.zip |
af6b1b94377b9f78dbb2285b878fb696d36766391499d65e055ecd622b69018a |
MIT; ships libomp140.x86_64.dll (MS OpenMP redistributable — same file as the win-cpu zip, no new artifact class); embedded SPIR-V shaders compiled from llama.cpp source (MIT) |
llama-b9585-bin-ubuntu-vulkan-x64.tar.gz |
5f5467e5d9827b27eda17ee39b35fd2b7c8aa298f144e8836491ccec76160fdf |
MIT; no Vulkan SDK/loader content redistributed (the loader ships with the user's GPU driver) |
The win-cpu / ubuntu-cpu / macos-arm64 assets keep their hashes from the original b9585 review
(unchanged in runtime-sources.yaml). No new licenses enter the product.
✅ Pinned to a real release:
b12110(= upstream stable v0.9.0, bumped from b11146 under #729; the paragraph below is the b11146 bump's, kept as written. What #729 verified is in the issue and inarchitecture.mdGPU record §3 "PIN BUMPED 2026-11-07"). Previouslyb11146(= v0.5.0, bumped from b9849 under #512), with real per-OS URLs and SHA-256 checksums from the official GitHub Releases APIdigestmetadata, all five also confirmed by local download —fetch-runtimere-verifies before extracting (a wrong/changed hash fails the run). What was verified on the new build is in #512: Windows on the dev box, the Linux Vulkan asset on the 24 GB rig (the 27B MTP start and the qwen3.6/qwen3.8 cache restore, PR #524). The macOS asset was hash-checked but never run. Notes on the current release format:
- The Windows asset is a
.zipwith the binaries at the archive root; macOS/Linux assets are.tar.gznested underllama-<tag>/.fetch-runtimehandles both, flattens nested layouts sollama-server[.exe]lands atruntime/llama.cpp/<os>/, and materializes thelib*.so/.dylibversion symlinks as copies (exFAT drives and Windows hosts cannot hold symlinks).- To bump the release: pin ONLY a build that an upstream stable
vX.Y.Zrelease names (policy since #512, owner ruling 2026-09-27). Since August 2026 upstream's stable releases carry no assets and name a nightlybNNNNN(their notes andnightly-tag.txt), and everybNNNNNtag is markedprerelease: true, whichfetch-runtimeignores. Confirm the two tags resolve to one commit; a plain nightly needs an explicit exception recorded in the yaml header. Diff the archive file lists against the current pin's (#729): a new executable is either one the app needs (alsoRequired) or one it never keeps (neverInstalled, likellama-connect), never silently shipped. Then updateversion+ the per-OS asseturls (asset names vary per release) from the ggml-org/llama.cpp releases, download each asset, promote its real SHA-256 intosha256and its byte count intosize_bytes(#843: the GitHub Releases API assetsize, read in the same call as thedigest; the in-app engine dialog shows it, and the licence record's Bytes column repeats it), re-verify the llama.cpp facts the app depends on (architecture.mdGPU record "llama.cpp facts"), write the licence record above, re-check the dialog's licence line below against the new archives, and regenerateDRIVE-NOTICES.md— as a deliberate, reviewed change. A real-hash mismatch makesfetch-runtimedelete the archive and fail. Re-capture the SSE fixtures (apps/desktop/tests/fixtures/chat-sse-*-<pin>.txt,vision/vision-sse-<pin>.txt; TS-3(a)), and with them confirm that the new build still answersreturn_progresswith aprompt_progressevent per batch and still pings every ~30 s: the chat watchdog's prefill clocks rest on both (architecture.mdCB-5 "#598 amendment"). Re-read the host requirements too (#530):objdump -T/readelf -dthe new Linux binaries for their GLIBC / GLIBCXX / OpenSSL / libgomp needs, and the Windows DLL imports. If the floor moves, update the record above,known-limitations.mdand the user-facing minimum (README,user-guide.md§1,troubleshooting.md,launchers/READ ME FIRST.txt, themodels.engineProblem.systemTooOldLinuxcopy).
Download hosts (#769)
Every host a committed URL names. This is an inventory, not an allowlist (security-model.md
S4 declined a download-host allowlist). The scripts fetch from whatever host a drive's yaml names,
and so does the app for models and the OCR files; its engine downloads read the app's own
runtime-sources.yaml (#842). A download also follows redirects to hosts no file names (the Hugging
Face and GitHub storage CDNs, mirror.download.kiwix.org). committed-catalog.test.ts holds both
columns to the committed files exactly, so a new host is a deliberate edit of this table. A model
manifest's URLs are its download.url, mmproj.download.url and every files[].download.url,
withdrawn sources included; runtime-sources.yaml's are each build's url, each ocr: file's
url and each kiwix source_bundle file's url. Links nothing downloads (license_url,
recipe_url) are not listed.
| Host | Model manifests | runtime-sources.yaml |
|---|---|---|
huggingface.co |
every weight, projector and extra file | — |
github.com |
— | the llama.cpp and whisper.cpp builds |
download.kiwix.org |
— | the kiwix-tools builds; the kiwix-tools and libkiwix source tarballs |
cdn.jsdelivr.net |
— | the OCR language files |
download.openzim.org |
— | the libzim source tarball |
oligarchy.co.uk |
— | the xapian-core source tarball |
dev.kiwix.org |
— | the libmicrohttpd source tarball |
The source tarballs' URLs record where the maintainer's archive came from: no script downloads
them (install-kiwix-source-bundle.mjs copies a local archive), and SOURCES.md and
DRIVE-NOTICES.md print them.
The whisper.cpp transcriber family
runtime-sources.yaml additionally pins the whisper_cpp: block — the audio
transcriber CLI (whisper-cli), fetched with fetch-runtime --family whisper_cpp into
runtime/whisper.cpp/<os>/ with the same verify-before-trust + marker discipline.
License-review record — whisper.cpp v1.8.6 runtime asset (status: approved, reviewed
2026-06-11): whisper.cpp is MIT ("the ggml authors", verified in LICENSE at tag
v1.8.6). The upstream release ships prebuilt binaries for Windows only (R-W1); the
pinned asset:
| Asset | SHA-256 | Bytes | Notes |
|---|---|---|---|
whisper-bin-x64.zip (v1.8.6) |
b07ea0b1b4115a38e1a7b07debf581f0b77d999925f8acb8f39d322b0ba0a822 |
4,093,849 | MIT; plain-CPU build; binaries nest under Release/ (the fetch scripts flatten); ships SDL2.dll (zlib license — permissive, attribution-free; used only by the demo tools, redistributed as part of the upstream archive) |
mac/linux whisper builds are compiled from the same MIT source at the pinned tag by the
drive builder (no new licenses; see drive-layout.md).
What the in-app engine dialog states (#843). Installing, updating or reinstalling the engine
from the AI Model screen first shows each archive the job will fetch: its version, size (the pin's
size_bytes; both families' byte counts are the GitHub Releases API asset size, read
2026-11-18 in the same call as the digest), full download address and licence. The licence
line is code-side (SIDECAR_FAMILY_SPECS in assets.ts, never the drive's yaml) and follows
the records above: llama.cpp MIT, on Windows "MIT, includes Apache-2.0 WITH LLVM-exception
(libomp.dll)"; whisper.cpp MIT, on Windows "MIT, includes zlib (SDL2.dll)". Its link is the
upstream LICENSE at the pinned tag. Both are pre-reviewed, so the dialog asks for no
acknowledgement (the OCR pattern; the knowledge-pack tools' GPL consent is the exception). A pin
bump that changes what an archive bundles changes this line in the same PR. To bump the
whisper.cpp release: capture the new asset's sha256 and size_bytes the same way, and
re-run the checks the yaml header lists.
License-review record — Whisper model weights (status: approved, reviewed 2026-06-11):
OpenAI's Whisper models are MIT (github.com/openai/whisper LICENSE). The shipped
whisper-small-multilingual manifest (models/transcriber/ggml-small.bin,
1be3a9b2063867b937e64e2ec7483364a79917e157fa98c5d94b5c1fffea987b) uses the GGML
conversion from huggingface.co/ggerganov/whisper.cpp (declares MIT; mechanical format
conversion — the E5/reranker provenance posture). Full notes in the manifest's
license_review block. The weight rides the NORMAL manifest pipeline (fetch-models,
in-app downloader, verify-models).
License-review record — Silero VAD v5.1.2 GGML model (status: approved, reviewed
2026-09-21, #504): the whisper manifest's second required file
(models/transcriber/ggml-silero-v5.1.2.bin, 885,098 bytes,
29940d98d42b91fbd05ce489f3ecf7c72f0a42f027e4875919a28fb4c04ea2cf, fetched from
huggingface.co/ggml-org/whisper-vad). Silero VAD is MIT (github.com/snakers4/silero-vad
LICENSE, Copyright (c) 2020-present Silero Team); the GGML file is the whisper.cpp project's
mechanical format conversion of the v5.1.2 ONNX model — the same provenance posture as the
Whisper weights above. Commercial redistribution permitted with the copyright + license
notice, which DRIVE-NOTICES.md carries as its own line under the transcriber's entry. Used
by whisper-cli --vad for DICTATION only (audio imports stay VAD-free — timestamp remapping
unmeasured against citation time ranges). Rides the same manifest pipeline as the weight
(#310 files[]): fetched, verified and shown as part of the speech model.
The OCR asset class
runtime-sources.yaml additionally pins the ocr: block — the vendored OCR
language files, fetched with fetch-runtime --family ocr into ocr/ as plain
sha256-verified files (no extraction, no marker — the hash is the install state).
The OCR engine itself (tesseract.js + its WASM core) ships INSIDE the app as pinned
npm dependencies, not as drive assets.
In-app install (#410). The released app can fetch the same files itself — Download OCR
files on a failed scan/photo row in Documents, or the quiet row on the AI Model screen — behind a
facts-only confirmation (languages, size, Apache-2.0, source host; no acknowledgement, the licence
is approved) and the usual gates (policy ∧ allowNetwork). OCR is not an engine family: it
has its own narrow installer (services/ocr-install.ts). Its trust anchor is code-side: the
OCR_PINS table carries each language's sha256 and exact size, drift-tested against the table
below and the committed yaml (tests/unit/ocr-pins.test.ts); the yaml contributes only the
download URL (its dest is ignored — the destination is always ocr/<lang>.traineddata.gz), and
an entry whose sha256 differs from the pin is never used. Each file comes from the drive's yaml
when its entry matches the pin, else from the app's own copy; with no matching entry in either,
the install is refused (#841). Changing the pinned data version therefore
means editing three places together: the yaml ocr: block, this table, and OCR_PINS — the
drift test fails until they agree.
License-review record — tesseract.js 7.0.0 npm dependency (status: approved,
reviewed 2026-06-11): Apache-2.0 (npm + repo naptha/tesseract.js). Pure
JS/WASM, no native build. Pinned EXACT ("tesseract.js": "7.0.0" — the D-UI1/Radix
precedent). Its runtime CDN defaults (worker/core/langPath from cdn.jsdelivr.net) are
fully disabled in our wiring (R-O2; sentinel-tested) — the dependency never fetches at
runtime.
License-review record — tesseract.js-core 7.0.0 (status: approved, reviewed
2026-06-11): Apache-2.0 (the Emscripten/WASM build of the Apache-2.0 tesseract
engine; transitive dependency of tesseract.js, ships inside the app, asarUnpacked in
packaged builds).
License-review record — OCR traineddata (status: approved, reviewed 2026-06-11):
tesseract language data is Apache-2.0 (the tesseract-ocr project's tessdata
licensing). Shipped variant per R-O3: the integerized tessdata_best (best_int) —
the float tessdata_best cannot run on the WASM core, and best_int clearly beat
fast on degraded German scans (3 vs 7 misses of 104 words) at ~+1.6 MB. Pinned
artifacts (repackaged by the tesseract.js project as @tesseract.js-data/*@1.0.0,
4.0.0_best_int; the npm wrapper declares MIT, the data itself is Apache-2.0
upstream):
| Asset | SHA-256 | Size |
|---|---|---|
ocr/deu.traineddata.gz |
306c4280d0cbed46fbff727486bd43b92730181bae80f56941a091f363bdf28b |
1.27 MB (1,333,102 bytes) |
ocr/eng.traineddata.gz |
45b4cb346724ac1774f1c36f42f182b887bcdb28ebe63e6fff90ac41f3fcff91 |
2.82 MB (2,952,873 bytes) |
ocr/osd.traineddata.gz |
be028ddaac8b03402b92cbf526075c068ec39a9f1dbbcd7536dddb9b22209934 |
4.12 MB (4,320,130 bytes) |
The exact byte counts were measured on 2026-09-22 (deu, eng) and 2026-10-05 (osd) from fresh
downloads of the pinned URLs, whose sha256 matched this table (they are what OCR_PINS carries).
License-review record — OCR orientation data osd (status: approved, reviewed 2026-10-05,
#538): Tesseract's orientation-and-script-detection data, from the same tessdata source and
under the same Apache-2.0 licence as the language files (repackaged as
@tesseract.js-data/[email protected], taken from the same 4.0.0_best_int directory; the npm wrapper
declares MIT, the data is Apache-2.0 upstream). It is not a recognition language: the app runs it
with tesseract.js-core's legacy-capable WASM core (already shipped and asarUnpacked) in a
second worker, only to find which way up a page is. It holds a legacy-engine model only; the
4.0.0 and 4.0.0_best_int copies differ in bytes but gave identical verdicts on every test page.
The in-app installer offers it on a drive that already has deu + eng.
Sidecar binaries — kiwix-tools (knowledge packs, #301; family contract #339 P8-1)
Status: INVENTORY, not clearance (D5 part 1; plan §6.1). Nothing here authorizes shipping kiwix-tools inside a commercial Kit — the owner's review below is still open, and it (not this inventory) is what would confirm any conveyance.
runtime-sources.yaml pins the kiwix_tools: block — the THIRD sidecar family and the
first optional: true one: it is never part of the default engine-install selection and
never counted toward engineStatus().installed/missingFamilies — only an explicit
families: ['kiwix_tools'] request installs it. The consent surface that sends that request
landed at P8-2: the Knowledge-packs panel's tools-missing notice and a mirror row on the AI
Model screen, each requiring the user to accept the GPL-3.0-or-later license before the request
goes out, gated by the same policy.network.allowModelDownloads ∧ allowNetwork check as models
and the engine. EngineStatus.missingOptionalFamilies reports the family separately, additive
and optional so a pre-#339 renderer simply ignores it. The family also ships more than one
executable: executables: [kiwix-serve, kiwix-manage, kiwix-search], base names only
(sidecarBinaryName adds .exe on win; the first entry is the primary binary,
plan.binaryPath). Per build, runtime_files lists non-executable files the executables cannot
start without — on Windows, the five ICU DLLs the win zip ships flat beside the three exes (the
mac/linux tarballs are statically linked and declare no runtime_files). Validated by
shared/runtime-sources.ts exactly like llama_cpp/whisper_cpp (duplicate (os, arch, backend) triples rejected); the two macOS builds legitimately share one
extract_to: runtime/kiwix-tools/mac (the arch key tells them apart, and kiwixToolsDir
resolves exactly one directory per OS regardless). After extraction the installer checks every
declared file is present — kiwix-serve/kiwix-manage are a code-side floor a drive's yaml
cannot lower; kiwix-search and every runtime_files entry are required too, because the
archive's own verified hash already proves the bundle contains them — and writes a
.hilbertraum-runtime.json install marker recording a SHA-256 per executable and per ICU
DLL, all-or-nothing: a hashing failure leaves no binaries map at all rather than a partial
one, so the family falls back to the hashless skip-legacy verifier path instead of looking
"hashed" while one file is not.
The pinned release is kiwix-tools 3.8.1 (upstream build 2025-12-02). The kiwix download
server (download.kiwix.org, which 301s to mirror.download.kiwix.org) is the only binary
distribution for 3.8.1 — the GitHub release carries source archives only — and it publishes
MD5 sidecars only (<file>.md5; no .sha256). So, exactly like whisper_cpp above, every
SHA-256 below was computed from a fresh download on 2026-09-06 whose MD5 matched the
published upstream sidecar:
| Build (OS/arch) | URL | Bytes | Upstream MD5 | SHA-256 (computed) |
|---|---|---|---|---|
| win / x64 | https://download.kiwix.org/release/kiwix-tools/kiwix-tools_win-x86_64-3.8.1.zip |
18,301,924 | 95f953f726aac8f320c7038f85785df9 |
fcd01ed2b93e9a68632c7863c83b9f66bf64406a66357be1df7b8b75596f3e45 |
| mac / arm64 | https://download.kiwix.org/release/kiwix-tools/kiwix-tools_macos-arm64-3.8.1.tar.gz |
10,254,751 | 300d29d6ea02a9353092f29b8fabf76a |
222e8398ca50ac005a7e92cf0116e0c83e3c44c79cab0bb7f6537943d517e8d3 |
| mac / x64 | https://download.kiwix.org/release/kiwix-tools/kiwix-tools_macos-x86_64-3.8.1.tar.gz |
10,768,392 | 7032160e0c4dbabc11830e27f82a9c4f |
70219e56f7c274e1fc0db8487abdcc91bde9a6f2923958894c0c81ee24b06c01 |
| linux / x64 | https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-x86_64-3.8.1.tar.gz |
21,503,420 | ab0e372a814fde612ed79fd2a0b82d5a |
46557f9a3c3eaada2556a957cf5bc662c07dc6286e8924e04fa3a173f83ff6dd |
(The yaml's arch key is HilbertRaum's own — x64 for both win and the macOS x86_64 asset, to
match hostRuntimeArch() — while the filename keeps upstream's x86_64 spelling.) The win
build's own per-file inventory (Authenticode + per-file SHA-256, inspected 2026-09-06 on Windows
11 with Get-AuthenticodeSignature; residual R-4 answered for this build): kiwix-serve.exe,
kiwix-manage.exe and kiwix-search.exe are Valid, signer CN=Association Kiwix, O=Association Kiwix, L=Lausanne, S=Canton of Vaud, C=CH; the five ICU DLLs are NotSigned.
Per-file SHA-256: kiwix-serve.exe 619ECCC76C112A57538E3CEB001D75E71CAF5A040171B2C1399C4D19F8E9BC95,
kiwix-manage.exe 43E9A19D3BF66D6D158A187B1799AEE75B1797C06F8F17C6DD2BDEBAE56E177C,
kiwix-search.exe EBE683AB03D50BC6893E6D69D7F1753E5FD6EBDF89488ADFFD900574C24CDBB9,
icudt74.dll CE6F56B89F3C7163A166210977642559C87033B579FF129C61443DE57FBD771B,
icuin74.dll A80EFBE7966ECD99A86B9F1694BAD6995C8B43FEBC1B42FBFF5A3F5E9A6E36FF,
icuio74.dll FEBDA93002C9E70A2DEE1DA316A799B5416A6EC5430FA88AA9AF82BBA3ADA0A6,
icutu74.dll E533BD62973D215F5306B24C2BD473CC3B161C7F88819812284EE18132CA9560,
icuuc74.dll 0E3EC2D0D821B6244B78129334AED0E7EBE3CDE51F00D2FF77170C4900AF7F67. The mac/linux archives
carry no equivalent per-file inspection yet (their code-signing is R-4's remaining manual leg,
owner's).
The linux-x86_64 build's per-binary inventory is humaniser's measurement of 2026-09-06/07 on
Ubuntu 22.04 (#352), not re-measured by the maintainer; --version reported kiwix-tools
3.8.1, libkiwix 14.1.1, libzim 9.4.0, libxapian 1.4.23, libcurl 8.4.0, libmicrohttpd 0.9.76,
libz 1.3.1, libicu 73.2.0, libpugixml 1.15.0 (note: the Linux static build carries ICU 73.2
where the Windows zip ships the ICU 74 DLLs). Per-binary SHA-256:
kiwix-serve a4efa19354e52a2b4a3c6567d363897140d35fbec6b10b9843ee1f511434042c,
kiwix-manage d5ea144a87418d15245d73280ec92084f7878860a7d3d8e80252e83c3f709ccb,
kiwix-search 51941af707dc98c660e856178a5f4aa751b3ff8e9ceb53b6f74e78e2b56016d3.
These per-binary hashes, the win build's and the linux build's, exist only in this file: no yaml
field states them, so no test holds them. The archive and source-tarball tables are held to the
yaml (#769, above).
Transitive components, with grants read from the pinned source trees (COPYING files + the
per-file headers under src/, not assumed from upstream README prose):
| Component | Version | Grant, as the source tree states it |
|---|---|---|
| kiwix-tools | 3.8.1 | GPL-3.0-or-later (COPYING = GPL-3; every header "version 3 … or (at your option) any later version") |
| libkiwix | 14.1.1 | GPL-3.0-or-later, with one file GPL-2.0-or-later (COPYING = GPL-3; 43 headers v3-or-later, 1 header v2-or-later) |
| libzim | 9.4.0 | GPL-2.0-or-later, with GPL-3.0-or-later files (COPYING = GPL-2; 74 headers v2-or-later, 16 headers v3-or-later — never "all GPL-3") |
Xapian (xapian-core) |
1.4.23 | GPL-2.0-or-later |
| libmicrohttpd | 0.9.76 | LGPL-2.1-or-later, statically linked into kiwix-serve (version from the kiwix-build recipe's dependency pin — --version does not report it) |
| libcurl | 8.4.0 | the curl license (MIT-style) |
| ICU | 74 | the Unicode/ICU license (the five icu*74.dll in the win bundle) |
| docopt.cpp | 0.6.3 | MIT/Boost dual, taken under MIT |
| pugixml | 1.15 | MIT |
| zlib | 1.3.1 | the zlib license |
| Zstandard (zstd) | 1.5.7 | BSD-3-Clause/GPL-2 dual, taken under BSD-3 |
| xz / liblzma | 5.2.6 | public domain (the 5.2.6 COPYING; the 0BSD relicensing came in a later xz release) |
The five copyleft components — kiwix-tools, libkiwix, libzim, Xapian, libmicrohttpd — are also
the five whose corresponding source a preloaded Kit must carry. Their source tarballs, pinned
against the same kiwix-build recipe (github.com/kiwix/kiwix-build) that produced the 3.8.1
binaries:
| Tarball | Bytes | SHA-256 | Upstream URL |
|---|---|---|---|
kiwix-tools-3.8.1.tar.xz |
531,416 | dd769c9bd3d75b59ad9e451b128187b128da6a10b1241bb2d0325fe4aafe51a3 |
https://download.kiwix.org/release/kiwix-tools/kiwix-tools-3.8.1.tar.xz |
libkiwix-14.1.1.tar.xz |
1,123,600 | e232f42bba33561493e2d7318c3be60d8508e83a8891a8358135519dedc5ff5a |
https://download.kiwix.org/release/libkiwix/libkiwix-14.1.1.tar.xz |
libzim-9.4.0.tar.xz |
217,752 | 7fa374f4714b23c43afa3fb406d7e21c483d77e8218895e1408e2f037969b6ea |
https://download.openzim.org/release/libzim/libzim-9.4.0.tar.xz |
xapian-core-1.4.23.tar.xz |
3,024,644 | 30d3518172084f310dab86d262b512718a7f9a13635aaa1a188e61dc26b2288c |
https://oligarchy.co.uk/xapian/1.4.23/ |
libmicrohttpd-0.9.76.tar.gz |
2,199,858 | f0b1547b5a42a6c0f724e8e1c1cb5ce9c4c35fb495e7d780b9930d35011ceb4c |
https://dev.kiwix.org/kiwix-build/ (a GNU mirror carries the same release) |
All five are in hand, archived by the maintainer outside the repo. The on-drive bundle lands
at runtime/kiwix-tools/source/ (the owner's layout ruling, 2026-09-06, #339 P8-4):
scripts/install-kiwix-source-bundle.mjs copies, re-verifies and writes a generated SOURCES.md;
build-commercial-drive --kiwix-source-dir <archive dir> runs it, SOURCE FIRST, before fetching
the kiwix_tools binaries; and assertCommercialDrive's checkSourceBundle
(checks.kiwixSourceBundle) fails the sell gate when any kiwix_tools binary — a hand-placed,
marker-less one included — is present without a complete, hash-matching bundle.
License-review record — kiwix-tools 3.8.1 runtime assets (status: PENDING the owner's review;
nothing here authorizes conveyance): kiwix-tools is the product's first copyleft third-party
native binary — every prior sidecar (llama.cpp, whisper.cpp, the OCR traineddata) is permissive,
and both llama.cpp review records above say "no new license class enters the product"; that
sentence does not hold for kiwix-tools, and this record says so plainly rather than repeating it.
Five components above are copyleft; on a preloaded Kit their corresponding-source duty is
discharged by the P8-4 source bundle at runtime/kiwix-tools/source/ next to the binaries
(#339 P8-4 — scripts/install-kiwix-source-bundle.mjs + the checkSourceBundle sell-gate leg).
GPL-3.0-or-later text is proposed to be satisfied by cross-referencing the drive's own root
LICENSE (HilbertRaum is itself GPL-3.0-or-later) rather than inlining the ~35 KB text a second
time — owner confirmation pending on that cross-reference specifically; not settled here.
Open for the owner: the GPL-3.0-via-root-LICENSE cross-reference itself (confirmation pending);
the libmicrohttpd version-from-recipe pin (not observable from the binary, so it rests on
trusting the kiwix-build history); Authenticode/code-signing inspection of the mac/linux archives
(R-4's remaining leg — win is done, above); and the consent (P8-2) ruling that gates any
conveyance.
To bump the release: pick a new tag from the kiwix/kiwix-tools releases (the GitHub release ships source archives only; binaries still come from
download.kiwix.org), re-download all four platform archives, re-verify each against its upstream.md5sidecar, recompute each real SHA-256 and promote it intoruntime-sources.yaml, and re-read theCOPYINGfile plus the per-file headers of all five copyleft source trees (re-fetching the source tarballs too) before promoting any of it. A version bump here is a licence re-review, not a mechanical edit.
The user path is the in-app consent dialog (#339 P8-2, downloadEngine({ families: ['kiwix_tools'] })): the Knowledge-packs panel's tools-missing notice, or the mirror row on the
AI Model screen, states the size, the GPL-3.0-or-later license and the source, and installs the
family once accepted — writing the marker described above, so both kiwix-serve and
kiwix-manage verify normally. The builder/DIY path is fetch-runtime --family kiwix_tools
(#339 P8-3, same marker). Hand-placing the bundle under runtime/kiwix-tools/<os>/ remains a
last-resort fallback: it carries no install marker and resolves through the hashless
skip-legacy verifier path (residual R-1) rather than integrity verification, and is replaced
wholesale by the first in-app or scripted install.
The vision role + mmproj projector (image understanding, Phases V1–V5)
The vision role powers the Images screen (design record: architecture.md
"Image understanding — design record"). A vision model declares at least two files — the
language GGUF (the top-level local_path/sha256/download, like any model) plus a
multimodal mmproj projector that llama-server --mmproj loads; mmproj stays its own slot
(never folded into files:), and a sharded vision GGUF would add its remaining shards via the
files: list above (#310) — the declared file set, not necessarily exactly two. The schema
additions (shared/manifest.ts):
role: vision
input_modalities: [text, image] # informational only — capability comes from role + mmproj
local_path: models/vision/qwen2.5-vl-3b-instruct-q4.gguf
sha256: d02fe9b69ad8cadbbd228e387667af66612c44bed29ffc8eb1e7caf9ac486c12
mmproj: # REQUIRED iff role: vision
local_path: models/vision/mmproj-qwen2.5-vl-3b-instruct-f16.gguf
sha256: b9160fe9d814d1fadf68395677468534778b39ac33c2e7561b7b218626e60d5e
download: # same atomic single-file fetch as the GGUF (two jobs, one modelId)
url: https://huggingface.co/ggml-org/Qwen2.5-VL-3B-Instruct-GGUF/resolve/main/mmproj-Qwen2.5-VL-3B-Instruct-f16.gguf?download=true
sha256: b9160fe9d814d1fadf68395677468534778b39ac33c2e7561b7b218626e60d5e
size_bytes: 1338428128 # each file declares its own (#768)
download:
url: https://huggingface.co/ggml-org/Qwen2.5-VL-3B-Instruct-GGUF/resolve/main/Qwen2.5-VL-3B-Instruct-Q4_K_M.gguf?download=true
sha256: d02fe9b69ad8cadbbd228e387667af66612c44bed29ffc8eb1e7caf9ac486c12
size_bytes: 1929901056
Validator rules (added in shared/manifest.ts): mmproj is required iff role: vision;
mmproj.local_path non-empty; mmproj.sha256 a real lower-case hash or REPLACE_WITH_REAL_HASH;
a real mmproj.download.sha256 must equal a real mmproj.sha256 (same file);
download all-or-nothing (#752): a top-level download needs an mmproj.download
("mmproj.download" is required when the model declares a top-level "download" (a partial download plan would install a model that cannot start)) and the other way round ("download" is required when "mmproj" declares one (…)). The planner fetches only the blocks that exist, so half of them is
a clean multi-GB download of a model that stays missing. A refused manifest is skipped with a log
line, so a hand-made manifest that relies on a hand-placed projector leaves out both blocks. The
fetch-models scripts apply the same rule, to mmproj and to every files[N] (#767): they print
BLOCK <id>: <the validator's message>, fetch no file of that model whatever is on disk and whatever
--accept-license says, carry on with the next model and exit 1. Install state
(services/models.ts) requires every declared file — the GGUF, the mmproj, and any files:
entries — present + SHA-256-verified. The builds that predate the vision role reject such a
manifest, so it vanishes there (the claim that they show it as unsupported was never true); since
#847 a role a build does not know is listed as needing a newer HilbertRaum instead ("A manifest for a
newer HilbertRaum" above). The shard-completeness rule (#310)
applies to local_path, not to mmproj.local_path — a sharded projector is not (yet) a case the
validator enforces (the committed-catalog row "declares no shard-pattern path whose sibling series is
incomplete" covers it, and a control shows it firing).
RAM tiering (PROD-1). Min RAM is 12 GB for the model alone (4.6 GB peak RSS), but the
honest co-residency bar is higher: vision + a 12B chat (7 GB) + the E5 embedder = three
llama-server processes ⇒ >16 GB at peak. The idle teardown bounds the window, not the
active-use peak (model-benchmarks §8.4). So vision is realistically co-resident only with a small
chat model, or after the chat sidecar idles out; the recommended_min_ram_gb / RAM-best-fit gate
keeps it off machines that can't hold it. In the --with-assets default set (2026-07-01) — prepare-drive --with-assets pulls the
vision model's two files by default (it is in $DefaultModelIds/DEFAULT_MODEL_IDS), but it is
never auto-recommended in-app (recommended_profiles: [], rank 0) — availability-driven, used
on demand by the Images screen. On a hand-built drive, fetch-models --only <vision-id> or
--all-models pulls both files.
License-review record — Qwen2.5-VL-3B-Instruct (status: approved, reviewed 2026-06-20): the base
model Qwen/Qwen2.5-VL-3B-Instruct is Apache-2.0 (the all-permissive posture — same as the Qwen3
chat catalog and the E5/reranker entries). The shipped GGUF + f16 mmproj come from
ggml-org/Qwen2.5-VL-3B-Instruct-GGUF — the official llama.cpp org — which declares apache-2.0
via its HF card tag (mechanical GGUF/projector conversion, the same provenance posture as the E5 and
reranker GGUF entries). No new license class enters the product. Live-loaded on the pinned b9585
during the V1 gate (it read a real German invoice correctly); the runtime-arg resolution + the SSE
reuse are in the architecture design record §3. The reference mechanics-proof artifact SmolVLM-256M
(ggml-org, Apache-2.0) is recorded in BUILD_STATE V1 but is not a product candidate.
The translation role + TranslateGemma (TG wave, 2026-07-05)
The translation role powers HilbertRaum's dedicated translation model,
google/translategemma-12b-it served by its own llama-server sidecar — the same
availability-driven, opt-in posture as vision/reranker/transcriber, not a chat slot. This section is
the license + model-policy record for the role (license-review, architecture facts, the
--jinja research note); the full engineering design record — sidecar, doc-task reroute, Translate
view, and the TG-6 measurements — lives in architecture.md "Translation sidecar
— design record" and model-benchmarks.md §11. The TG wave plan was folded
into those and deleted at TG-6 (git history keeps it).
The schema addition is minimal — translation is a single-file GGUF (shared/manifest.ts
ModelRole + ROLES), no mmproj — the current TranslateGemma manifest declares no files:
either. A sharded translation weight would use the same files: list as any other role (#310);
resolveSidecarSelection already checks every one of ResolvedModel.requiredPaths for
availability, existence-only, so this role needs no change to support one:
role: translation
input_modalities: [text] # TEXT-ONLY: the model is image-text→text and the repo ships
# mmproj projectors, but we deliberately reference only the GGUF
local_path: models/translation/translategemma-12b-it.Q4_K_M.gguf
sha256: b7aac4b4be7ab0c49b6556c29c4467e74313df7f1e95d9f9676bb2adf0afa528
recommended_context_tokens: 4096 # the sidecar's --ctx-size (2K input budget + output), NOT a chat window
download:
url: https://huggingface.co/mradermacher/translategemma-12b-it-GGUF/resolve/main/translategemma-12b-it.Q4_K_M.gguf?download=true
sha256: b7aac4b4be7ab0c49b6556c29c4467e74313df7f1e95d9f9676bb2adf0afa528
size_bytes: 7300794112
license_url: https://ai.google.dev/gemma/terms
Everything else rides the existing schema. Install state (services/models.ts) is role-agnostic
(present + SHA-256-verified ⇒ installed); selectModel refuses it ("used automatically") — it
activates by presence via resolveModelByRole('translation') once the weight is on the drive,
exactly like reranker/vision. Nothing hashes it at its start; a weight a check found damaged is refused
there with its own message (#913). The builds that predate the role reject such a manifest, so it vanishes there;
since #847 a role a build does not know is listed as needing a newer HilbertRaum instead. On the Models
screen it renders as an
automatic-role card (no Select/Start), downloadable behind the license-acknowledgement gate below.
Architecture facts this rests on (verified 2026-07-05). TranslateGemma is plain Gemma 3
(Gemma3ForConditionalGeneration, model_type: gemma3) — no new architecture string, so the pinned
b9849 runtime (which has loaded gemma3 since 2025) loads it with no pin bump. The model card
states a 2K-token input budget (the fine-tune's trained window, though the arch supports 128K) →
document translation must chunk to ≤~2K tokens (enforced structurally at TG-3). The GGUF is from
mradermacher/translategemma-12b-it-GGUF — the de-facto standard community quant (no Google QAT
or Apache-2.0 variant exists; unsloth/bartowski/ggml-org/lmstudio-community/QuantFactory published
nothing, verified via author-scoped HF API queries). The Q4_K_M file is 7,300,794,112 bytes;
its git-LFS OID = the file SHA-256 (b7aac4b4…a528), cross-checked against the resolve endpoint's
X-Linked-ETag + X-Linked-Size, and the repo is public (tree API + resolve both readable
unauthenticated, though Google's base repo is gated).
Research note — the --jinja regression (why the sidecar is prompt-in-app, not template-driven).
llama.cpp's dedicated TranslateGemma support (request-level chat_template_kwargs) merged 2026-01-24,
inside the pin — but a later chat-parsing rework (PR #19419) regressed the --jinja
embedded-template path for this template ("Unable to generate parser … std::bad_alloc", issue
#20305; fix PR #20956 re-verified STILL OPEN at TG-2, 2026-07-05 — the PR adds a
--skip-chat-parsing flag + extra content-part fields, but a commenter reported it did not resolve
the user-role template error, so it stands unmerged). Therefore the translation sidecar must NOT
use --jinja: it formats the trained single-turn prompt in app code (services/translation/prompt.ts)
and calls the raw /completion endpoint (the endorsed workaround, services/translation/completion.ts).
This also rules out running TranslateGemma as a role: chat model (the chat sidecar hard-codes
--jinja). The design is built at TG-2 (plan §2 D2); the no-jinja choice is simpler and deterministic
and stands even if a future pin lands the #20305 fix (V5 re-checks this on each pin bump).
TG-2 smoke finding (2026-07-05) — #20305 crashes at STARTUP, not just per-request. On the real
b9849 pin the server CRASHES during init (Windows 0xC0000409/std::bad_alloc) even with no
--jinja: it validates the model's embedded chat template at startup, and TranslateGemma's
template (typed {source_lang_code,target_lang_code} content) crashes the probe
(render_message_to_json: Neither string content nor typed content is supported by the template).
Fix: the sidecar launches with --chat-template gemma (the built-in legacy, non-jinja template)
so the startup probe has something renderable — SAFE because the raw /completion path never applies
the chat template (/props then reports chat_template: "gemma"). With that override the model
loads + translates cleanly (DE↔EN, injection-resistant, ~4 tok/s CPU, ~9.5 GiB peak RSS). Drop the
override if a future pin lands the #20305 fix — the smoke re-decides.
License-review record — TranslateGemma 12B (O1 in-app review CLOSED — approved 2026-07-10;
manifest status stays pending). The base model google/translategemma-{4b,12b,27b}-it is
under the Gemma Terms of Use (https://ai.google.dev/gemma/terms) — a non-permissive
license, the same class that kept Gemma 3 parked (only Gemma 4 moved to Apache-2.0; see
"Disqualified / parked candidates" above). The owner review of the in-app, license-gated download
path closed as APPROVED on 2026-07-10, resting on four verified provisions of the Terms:
the §3.1 distribution flow-down binds the distributor of the weights (for the in-app path that is
Hugging Face → the user; the app is the conduit behind the explicit license-acknowledgement
checkbox, license_url = the Gemma Terms, not bundled, not auto-recommended); commercial use
is allowed; outputs are unencumbered (§3.3 — a user's translated document is theirs); and the
Prohibited Use Policy is incorporated by reference and updateable by Google. Commercial-drive
preloading remains a separate open review — preloading is redistribution, so it carries a
four-point flow-down checklist before any drive bundles this model: a copy of the Gemma Terms on
the drive, the verbatim Gemma NOTICE line, an enforceable use-restriction clause in the sale terms,
and the quantization-provenance notice. The manifest's license_review.status deliberately stays
pending: in the manifest schema approved expresses the redistribution review. Since #766 the
sell gate (assertCommercialDrive + the build-commercial-drive scripts) requires approved for
every model a Kit ships (bundled, or with any file on the drive), and lists the rest as the
in-app catalog. TranslateGemma is not bundled, so a Kit carries it as catalog, and the pending
status is the mechanical guard that refuses any drive with its weight preloaded. Flipping it would
also remove the in-app acknowledgement checkbox (ModelDownloadInfo.licenseApproved). It flips to
approved only together with the flow-down artifacts and a license-class acknowledgement gate.
Third-party quantizer provenance: the GGUF is a community requant (mradermacher) inheriting the
Gemma license — the same established-quantizer posture as the unsloth entries; the hash is pinned
via the LFS OID and re-verified with verify-models --generate after the first fetch.