Skip to content

AI, fully local on your computer.

3.6 KB
Raw Blame

Model manifests

Each YAML file here describes one model. Manifests are committed to git; model weights are not (weights live under models/ on the drive). The app reads these manifests to discover, verify (SHA-256), recommend, and select models without code changes.

  • chat/ — chat/instruct models (Qwen3 4B / 8B / 14B Q4 + 30B-A3B MoE, Qwen3-4B-2507, the Qwen3.5 wave, the Qwen3.6 27B pair, the Qwen3.8 27B family (three withdrawn static K-quants and their UD-* successors), Granite 4.1 8B, Ministral 8B, Gemma 4 12B + the Gemma 4 QAT wave E2B / E4B / 26B-A4B / 31B, and two user-added local-test stubs, gemma-4-26b-q4 and gemma4-coding-q8)
  • embeddings/ — embedding models (Multilingual E5 Small, F16; the manifest id/local_path keep a -q8 suffix for historical stability — it tags stored vectors and is referenced across tests/docs, not a quant claim. Q8 is not the shipping quant — its q8_0 conversion crashes the pinned runtime; see ../docs/model-policy.md.)
  • reranker/ — reranker models (BGE Reranker v2 m3)
  • transcriber/ — speech-to-text models (Whisper Small multilingual; whisper_cpp/ggml)
  • translation/ — document-translation models (TranslateGemma 12B Instruct Q4_K_M; drives the Translate screen's sidecar)
  • vision/ — vision models (Qwen2.5-VL 3B Instruct Q4; GGUF + mmproj projector)
  • runtime-sources.yaml — the sidecar/asset download manifest (Phase 12): the llama-server (llama_cpp), whisper_cpp, and optional kiwix_tools sidecar families, plus the OCR language-file block. Not a model manifest (it is excluded from model discovery); validated by shared/runtime-sources.ts.

Manifests are YAML, discovered recursively and validated at startup (invalid files are skipped and logged, not fatal). See ../docs/model-policy.md for the field reference, the model-state model, and the license-review gate.

Key points when authoring a manifest:

  • local_path is relative to the drive root (e.g. models/chat/qwen3-4b-instruct-q4.gguf).
  • sha256 is lower-case hex; leave the REPLACE_WITH_REAL_HASH placeholder during development and set the real GGUF hash before bundling on a commercial drive (a placeholder hash is only usable in developer mode).
  • recommended_profiles (optional) lists the hardware profiles the model is recommended for (TINY/LITE/BALANCED/PRO/UNKNOWN) and drives the recommendation badge on the Models screen. id must be unique across all manifests.
  • download (optional, Phase 12) — { url, sha256, size_bytes?, license_url?, withdrawn? }. When present, the fetch-models scripts download + SHA-256-verify the weight. A real download.sha256 must equal a real top-level sha256. withdrawn (#196) is a dated note that the publisher deleted the file (no " #" in it): the fetch scripts and the app skip the download, an installed copy keeps verifying, and the manifest carries recommendation_rank: 0. See ../docs/model-policy.md "Withdrawn upstream sources".
  • files (optional, #310) — the ADDITIONAL required files of this model's weight beyond local_path/sha256 (which stay the primary — shard 1). A list of { local_path, sha256, download? }, same shapes/rules as above. Must come after local_path/sha256/download/mmproj (other keys may follow it) — verify-models/ fetch-models read the top-level keys by file order. See "Manifest fields (required)" in ../docs/model-policy.md for the full validator rules (download all-or-nothing, the shard-completeness rule).