Local judge for AutoMiner: models, llama-server API, binaries, CPU speed
Researched 2026-11-23. Sources are primary: Hugging Face model cards and the HF API, the llama.cpp repo at master commit 1f8baae28d096624bd47d33d2d179ec479d47720, the GitHub Releases API, and license texts. Abbreviations used below:
README= https://github.com/ggml-org/llama.cpp/blob/1f8baae28d096624bd47d33d2d179ec479d47720/tools/server/README.mdSRC= https://github.com/ggml-org/llama.cpp/blob/1f8baae28d096624bd47d33d2d179ec479d47720/HFAPI(repo)=https://huggingface.co/api/models/<repo>?blobs=true, the source for file names, byte sizes, SHA-256 hashes, params and license tags. All GGUF sizes below come from it, in MB (10^6 bytes).
Items marked UNVERIFIED were not confirmed against a primary source in this session.
0. The main finding: llama-server already serves Jev’s API
Section titled “0. The main finding: llama-server already serves Jev’s API”The question assumed a general instruct model with a logprob readout. A better fit has shipped since then.
- llama-server has a
POST /v1/systemoneendpoint. The README calls it “TypeSafe-compatible System One API”: it “Answers typed questions about astatewith a decision model”, and “Follows the TypeSafe API” (READMEL1916-L2058). Question types arechoice,scoreandnoul. Anoulanswer is “The probability that the answer is true”. Achoiceanswer returnschoice,probabilities(which “sum to 1”) andconfidence.output_tokensis always 0, because no token is generated. - AutoMiner’s client already speaks this API.
core/autominer/jev.pyposts toENDPOINT = "/v1/systemone"(line 12) at a base URL read from theTYPESAFE_API_BASEsetting (lines 9 and 11). It sendsstate,modelandquestions(lines 104-109). PointingTYPESAFE_API_BASEathttp://127.0.0.1:<port>should therefore work without any new judge protocol (repo file, read locally).- Caveat:
ask()raisesno_jev_keywhenTYPESAFE_API_KEYis empty (jev.py line 146), so a local mode needs a dummy key or a code change. - The server handler does not read
model(SRC/tools/server/server-context.cpp L6475-L6520), so"model": "jev-latest"should be harmless in single-model mode. UNVERIFIED for router mode.
- Caveat:
- The endpoint only works with native decision models: GGUFs that carry
<arch>.decision.*metadata (SRC/tools/server/server-decision.h). The README says “A language model that classifies with prompts does not getdecisions. Only native decision models do.” It also says “A model that is not a decision model returns the error501” (READMEL1384, L2058). A plain Qwen or Gemma instruct GGUF therefore needs the hand-built logprob readout in section 2B. - Decision model families llama.cpp supports today include: openjev, granite-switch, laya, clef, pplx-decider, vllm-decision2, vllm-d3, lfm2-d1, lfm2-d1-omni, lfm3-d1, lfm3-d1-omni, h2o-lightning and minicpm-ocr-jev (
READMEL1941-L1945).
So there are two candidate paths:
- Path A: a small native decision GGUF behind
/v1/systemone. This is a drop-in replacement for Jev. - Path B: a small instruct GGUF, read through
/completiontoken probabilities. This is what the question originally described.
Sections 1A and 2A cover Path A. Sections 1B and 2B cover Path B.
1A. Small native decision models (Path A)
Section titled “1A. Small native decision models (Path A)”| Model (GGUF repo) | Q4 file (size) | Params (GGUF) | Base | License | Japanese evidence | Published decision scores |
|---|---|---|---|---|---|---|
| LiquidAI/d1-2B-GGUF | d1-2B-Q4_K_M.gguf (1100 MB); also d1-2B-Q4_0.gguf (1050), d1-2B-Q8_0.gguf (1846). The mmproj-* files are only needed for images. |
1.73B (HFAPI); the card says 1.92B with vision | LFM3-VL-2B | LFM Open License v1.0 | Japanese is one of the 16 listed languages. No Japanese-specific decision benchmark is published. | JevBench v1.4.1 77.9; Decision Index public v0.3 51.1; DecisionBench v1 77.1. It “leads the open d1 models” (card) |
| LiquidAI/d1-omni-600M-GGUF | Q8_0 only: d1-omni-600M-Q8_0.gguf (407 MB) |
0.38B | LFM2 | LFM Open License v1.0 | ja is in the language tags |
JevBench v1.4.1 58.0; Decision Index 18.3 (from the d1-2B card table) |
| vllm-sr/Decision-2.0-Kai-0.6B-GGUF | Decision-2.0-Kai-0.6B-Q4_K_M.gguf (401 MB) |
0.60B | Qwen/Qwen3-0.6B-Base | Apache-2.0 | None stated; the card lists no languages. UNVERIFIED | JevArena 48.6; Jev Decision Index 16.3 (card) |
| vllm-sr/Decision-2.0-Eos-0.8B-GGUF | Decision-2.0-Eos-0.8B-Q4_K_M.gguf (534 MB) |
0.75B | arch qwen35 |
Apache-2.0 | None stated. UNVERIFIED | see card |
| vllm-sr/Decision-2.0-Sol-2B-GGUF | Decision-2.0-Sol-2B-Q4_K_M.gguf (1283 MB) |
1.88B | arch qwen35 |
Apache-2.0 | None stated. UNVERIFIED | JevArena 52.1; Jev Decision Index 29.5 (card) |
| h2oai/h2o-lightning-4b-gguf | h2o-lightning-4b-Q4_K_M.gguf (2709 MB) |
4.21B | Qwen/Qwen3.5-4B | Apache-2.0 | None found in the card. UNVERIFIED | “#2 of 170 — Composite” on the JevBench board (card) |
| perplexity-ai/pplx-decider-flash-gguf-v1.2 | Q8_0 only: decider-flash-v1.2-q8_0.gguf (5158 MB) |
4.84B | Qwen3.5-4B | Apache-2.0 | None found | — |
| openjev/openjev-GGUF | OpenJev-Q4_K_M.gguf (16547 MB) |
26.9B | qwen35 | CC-BY-NC-4.0 | MASSIVE intent in de/fr/hi/ja: 85.8% (card) | 84.0% against hosted Jev’s 85.4% on 10,000 text questions (card) |
| ggml-org/Laya-GGUF | Laya-Q8_0.gguf (449 MB) |
0.42B (English ModernBERT) | convaiinnovations/laya | Apache-2.0 | The English checkpoint “collapses on non-Latin scripts” (laya card). laya-multilingual has no ggml-org GGUF. | The card says “Base checkpoints are near chance on typed-decisions zero-shot” (laya card) |
Notes on the decision models:
- llama.cpp support for d1-2B. The GGUF card says it is “Supported in llama.cpp b11960 (v0.8.0) and newer”. It answers
noul,choiceandscore; “Multiple choice ("multiple": true), extraction, estimates and boxes are not supported yet”. Its sample launch isllama-server -hf LiquidAI/d1-2B-GGUF:Q8_0 -b 8192 -ub 8192, because “A question is read in one batch, so-band-ubmust hold its state and media” (d1-2B-GGUF card). - d1-2B architecture. It has 24 layers: “13 gated short convolutions, 5 sliding-window attention, 6 global attention”. Its context length is 128K and its vocabulary is 128,000 tokens (card). Few attention layers should make prefill cheap on CPU, but that is UNVERIFIED for CPU.
- Question packing for lfm3-d1. The model reads “up to 16 questions after the state in one pass, as the models were trained” (
READMEL1941). The packing is inset_size()(SRC/tools/server/server-decision.cpp L1458). This suits sentence quality: four checks on one sentence state take one pass. - d1-3B has MLX builds only. No official GGUF was found (HF search, 2026-11-23).
- Calibration. The README warns: “The probabilities are scaled with the temperatures stored in the model file. They are not guaranteed to be calibrated for your data” (
READMEL1980).
Licenses for Path A
Section titled “Licenses for Path A”- LFM Open License v1.0 (d1-2B LICENSE) is Apache-style:
- Section 4 allows redistribution, if “You must give any other recipients … a copy of this License” and modified files carry notices.
- Section 5 limits commercial use: “Any Commercial Use of the Work or a Derivative Work by a Legal Entity that exceeds the Threshold is not licensed”. The Threshold is “annual revenue of 10 million United States dollars ($10,000,000) or more”.
- Auto-downloading and redistribution are therefore allowed below the threshold, as long as the license text ships with the app (for example in
THIRD_PARTY_NOTICES.md).
- Apache-2.0 (vllm-sr Decision-2.0, h2o-lightning, pplx-decider): free redistribution, with the license and notices kept.
- CC-BY-NC-4.0 (OpenJev): non-commercial only, and too large anyway.
1B. Small instruct models (Path B)
Section titled “1B. Small instruct models (Path B)”Sizes are Q4_K_M unless noted. “RAM” is roughly the file size plus the KV cache plus about 0.3-1 GB of buffers. That rule of thumb is an estimate; measure with llama-server on the target.
| Model | GGUF repo / file | Size | Params | License / redistribution | Japanese evidence | Thinking mode |
|---|---|---|---|---|---|---|
| LFM2.5-1.2B-JP-202606 | LiquidAI/LFM2.5-1.2B-JP-202606-GGUF LFM2.5-1.2B-JP-202606-Q4_K_M.gguf (also -Q4_0, 696) |
731 | 1.17B | LFM Open License v1.0 (see 1A) | Best published sub-2B Japanese scores (vendor table below) | none documented |
| LFM2.5-1.2B-JP (older) | LiquidAI/LFM2.5-1.2B-JP-GGUF LFM2.5-1.2B-JP-Q4_K_M.gguf |
731 | 1.17B | LFM1.0 | JMMLU 50.7, M-IFEval(ja) 58.1, GSM8K(ja) 56.0 (card) | — |
| LFM2.5-1.2B-Instruct | LiquidAI/LFM2.5-1.2B-Instruct-GGUF LFM2.5-1.2B-Instruct-Q4_K_M.gguf |
731 | 1.17B | LFM1.0 | Japanese is a listed language (card) | — |
| LFM3-1.7B | LiquidAI/LFM3-1.7B-GGUF LFM3-1.7B-Q4_K_M.gguf (also LFM3-1.7B-QAD-Q4_0.gguf, 1050) |
1100 | 1.73B | LFM1.0 | Japanese listed (card) | — |
| LFM2-1.2B / LFM2-2.6B | LFM2-1.2B-GGUF LFM2-1.2B-Q4_K_M.gguf (731); LFM2-2.6B-GGUF LFM2-2.6B-Q4_K_M.gguf (1564) |
— | 1.17B / 2.57B | LFM1.0 | Japanese listed; 2.6B MMMLU 55.39 (card) | 2.6B uses “dynamic hybrid reasoning … for complex or multilingual prompts” (card) |
| Qwen3-1.7B | official Qwen/Qwen3-1.7B-GGUF ships only Qwen3-1.7B-Q8_0.gguf (1834); Q4: unsloth/Qwen3-1.7B-GGUF Qwen3-1.7B-Q4_K_M.gguf |
1107 | 1.72B | Apache-2.0 | JMMLU 47.67 in Liquid’s table; “100+ languages” (card) | On by default: pass enable_thinking=False (see 2B) |
| Qwen3-0.6B | official Q8_0 only, Qwen3-0.6B-Q8_0.gguf (639) (repo); Q4: unsloth/Qwen3-0.6B-GGUF Qwen3-0.6B-Q4_K_M.gguf |
397 | 0.60B | Apache-2.0 | — | same as Qwen3-1.7B |
| Qwen3-4B-Instruct-2507 | unsloth/Qwen3-4B-Instruct-2507-GGUF Qwen3-4B-Instruct-2507-Q4_K_M.gguf (also -Q4_0, 2376) |
2497 | 4.02B | Apache-2.0 | MMMLU 64.9, non-thinking (from the Qwen3.5-2B card comparison table) | “supports only non-thinking mode” (card) |
| Qwen3.5-2B | unsloth/Qwen3.5-2B-GGUF Qwen3.5-2B-Q4_K_M.gguf (also -Q4_0, 1215) |
1281 | 1.88B | Apache-2.0 | MMMLU 56.9, non-thinking (the same table gives Qwen3-1.7B 46.7). “201 languages and dialects” (card) | “operates in non-thinking mode by default”; Qwen3.5 “does not officially support the soft switch … /think and /nothink” (card) |
| Qwen3.5-0.8B | ggml-org/Qwen3.5-0.8B-GGUF Qwen3.5-0.8B-Q4_0.gguf |
563 | 0.77B | Apache-2.0 | MMMLU 34.1, non-thinking (same table) | non-thinking by default (card) |
| Qwen3.5-4B | unsloth/Qwen3.5-4B-GGUF Qwen3.5-4B-Q4_K_M.gguf |
2741 | 4.21B | Apache-2.0 | — | thinking on by default (card) |
| Qwen2.5-1.5B / 3B | Qwen/Qwen2.5-1.5B-Instruct-GGUF qwen2.5-1.5b-instruct-q4_k_m.gguf (1117); Qwen/Qwen2.5-3B-Instruct-GGUF qwen2.5-3b-instruct-q4_k_m.gguf (2105) |
— | 1.78B / 3.40B | 1.5B Apache-2.0; 3B qwen-research (non-commercial) (HFAPI license tag) |
Japanese MT-Bench: 1.5B 4.06, 3B 5.68 (Sarashina2.2 card) | none |
| Gemma 4 E2B / E4B | google/gemma-4-E2B-it-qat-q4_0-gguf gemma-4-E2B_q4_0-it.gguf (3350); ggml-org/gemma-4-E2B-it-GGUF gemma-4-E2B-it-Q4_0.gguf (2841); E4B: google/gemma-4-E4B-it-qat-q4_0-gguf gemma-4-E4B_q4_0-it.gguf (5155) |
— | 4.6B / 7.5B total, including per-layer embeddings | Apache-2.0: the card’s license link points to the Apache 2.0 page (card, gemma.ai/resources/apache-2). Not gated (HFAPI). | MMMLU E2B 67.4%, E4B 76.6%; “35+ languages” (card) | thinking is turned on by a control token in the system prompt; with thinking off, E2B/E4B emit no thought block (card) |
| Gemma 3 1B / 4B | ggml-org/gemma-3-1b-it-GGUF gemma-3-1b-it-Q4_K_M.gguf (806); ggml-org/gemma-3-4b-it-GGUF gemma-3-4b-it-Q4_K_M.gguf (2490); QAT: google/gemma-3-1b-it-qat-q4_0-gguf (gated: manual) |
— | 1.00B / 3.88B | Gemma Terms of Use (see below) | 1B: JMMLU 34.45 (Liquid’s table); weak | none |
| Gemma 3n E2B / E4B | ggml-org/gemma-3n-E2B-it-GGUF Q8_0 only (4788); unsloth/gemma-3n-E4B-it-GGUF gemma-3n-E4B-it-Q4_K_M.gguf (4539) |
— | 4.46B / 6.87B total | Gemma Terms | — | none |
| Llama 3.2 1B / 3B | hugging-quants/Llama-3.2-1B-Instruct-Q4_K_M-GGUF llama-3.2-1b-instruct-q4_k_m.gguf (808); hugging-quants/Llama-3.2-3B-Instruct-Q4_K_M-GGUF llama-3.2-3b-instruct-q4_k_m.gguf (2019) |
— | 1.24B / 3.21B | Llama 3.2 Community License (see below) | Japanese is not a listed language (tags: en, de, fr, it, pt, hi, es, th); 1B JMMLU 33.97 (Liquid’s table) | none |
| Phi-4-mini-instruct | bartowski/microsoft_Phi-4-mini-instruct-GGUF microsoft_Phi-4-mini-instruct-Q4_K_M.gguf |
2492 | 3.84B | MIT (card) | Multilingual MMLU 49.3. The card warns “Languages other than English will experience worse performance” | none |
| TinySwallow-1.5B-Instruct | SakanaAI/TinySwallow-1.5B-Instruct-GGUF has Q5_K_M and Q8_0 only: tinyswallow-1.5b-instruct-q5_k_m.gguf (1125) |
— | 1.54B | Apache-2.0 plus Gemma Terms: “derived from Qwen (Apache 2.0) and trained on Gemma data (Gemma Terms, Prohibited Use)” (card) | JMMLU 47.98 (Liquid’s table); Japanese MT-Bench 5.24 (Sarashina card) | none |
| llm-jp-3.1-1.8b-instruct4 | mmnga/llm-jp-3.1-1.8b-instruct4-gguf llm-jp-3.1-1.8b-instruct4-Q4_K_M.gguf (third-party quant) |
1164 | 1.87B | Apache-2.0 (card) | JMMLU 43.05 (Liquid’s table) | none; context 4096 (HFAPI) |
| Sarashina2.2-3B-instruct | mmnga/sarashina2.2-3b-instruct-v0.1-gguf sarashina2.2-3b-instruct-v0.1-Q4_K_M.gguf (third-party quant) |
2066 | 3.36B | MIT (card) | Japanese MT-Bench 6.51, Elyza-tasks-100 3.75 (own card); the 1B variant has JMMLU 40.24 (Liquid’s table) | none |
| Gemma-2-Llama-Swallow-2b-it | mmnga/Gemma-2-Llama-Swallow-2b-it-v0.1-gguf Gemma-2-Llama-Swallow-2b-it-v0.1-Q4_K_M.gguf |
1709 | 2.61B | Gemma + Llama 3.3 terms (HFAPI tags) | JMMLU 48.1, M-IFEval(ja) 33.4 (LFM2.5-1.2B-JP card) | none |
| ELYZA Llama-3-ELYZA-JP-8B | elyza/Llama-3-ELYZA-JP-8B-GGUF Llama-3-ELYZA-JP-8B-q4_k_m.gguf |
4921 | 8.03B | Llama 3 license | — | Too large for this CPU budget. Newer ELYZA releases are 32B (org) |
Japanese benchmark evidence
Section titled “Japanese benchmark evidence”Vendor table: LFM2.5-1.2B-JP-202606 card. The card does not state the decoding mode, but the older LFM2.5-1.2B-JP card says it used zero-shot greedy decoding.
| Model | JMMLU | Knowledge avg (JMMLU-ProX, JMMLU, JCulture, JGPQA) | Instruction following avg (J-MIFEval, JFBench) | Domain avg |
|---|---|---|---|---|
| LFM2.5-1.2B-JP-202606 | 54.19 | 38.72 | 66.93 | 53.11 |
| LFM2.5-1.2B-Instruct | 47.61 | 34.79 | 38.56 | 39.68 |
| Qwen3-1.7B (Instruct) | 47.67 | 34.51 | 38.45 | 44.83 |
| TinySwallow-1.5B-Instruct | 47.98 | 32.49 | 35.40 | 28.24 |
| llm-jp-3.1-1.8b-instruct4 | 43.05 | 26.40 | 32.35 | 28.16 |
| sarashina2.2-1b-instruct-v0.1 | 40.24 | 27.58 | 24.66 | 24.53 |
| Gemma-3-1B-it | 34.45 | 24.06 | 28.73 | 23.93 |
| Llama-3.2-1B-Instruct | 33.97 | 26.18 | 22.94 | 21.23 |
From the Sarashina2.2 card, Japanese MT-Bench scores: sarashina2.2-3B 6.51, Qwen2.5-3B 5.68, TinySwallow-1.5B 5.24, gemma-2-2b-jpn-it 5.19, llm-jp-3-1.8b-instruct3 4.62, Qwen2.5-1.5B 4.06.
UNVERIFIED: no source found scores any of these models, or any decision model, on AutoMiner-like tasks such as judging ASR-versus-subtitle match or classifying sung versus spoken speech. Only a replay against Jev’s recorded answers can settle that.
Licenses for Path B
Section titled “Licenses for Path B”-
Gemma 3 / 3n: Gemma Terms of Use, last modified April 1, 2026 (gemma.ai/resources/terms). Section 3.1 requires that redistributors:
- “include the use restrictions referenced in Section 3.2 as an enforceable provision”
- “provide all third party recipients … a copy of this Agreement”
- include a “Notice” file
The page says Gemma 4 is governed by the separate Gemma 4 license. Google’s own Gemma 3 GGUF repos are gated (
gated: manual, HFAPI), so an unattended download needs an HF token and an accepted license, or the ungated ggml-org copies. -
Llama 3.2 Community License (dev.meta.ai/llama/llama3_2/license). Redistribution requires:
- “provide a copy of this Agreement”
- “prominently display ‘Built with Llama’”
- a Notice line
- including “Llama” at the start of any derived model name
Companies with more than 700M monthly active users must request a license.
-
Apache-2.0 (Qwen3, Qwen3.5, Qwen2.5-1.5B, Gemma 4, llm-jp-3.1) and MIT (Phi-4-mini, Sarashina2.2) permit redistribution with the license and notice kept.
-
Not legal advice, UNVERIFIED: downloading from the publisher’s own HF repo at first run is arguably distribution by the publisher. Mirroring or bundling the file is redistribution by AutoMiner. Either way, ship the license text.
2A. llama-server for Path A (/v1/systemone)
Section titled “2A. llama-server for Path A (/v1/systemone)”- Request:
{"state": <string|object|array>, "questions": {"<id>": {"type": "noul"|"choice"|"score", "instructions": ..., "criteria": ...}}}. Forchoice, the criteria map each option to a description ornull. Fornoul, criteria are optional{"true": ..., "false": ...}descriptions (READMEL1926-L1939). - Response:
answers.<id>.noul(P(true));answers.<id>.choiceplusprobabilitiesandconfidence;usage.input_tokens(READMEL1964-L1980). - Shared state within one request. Questions after the same state share its prefix through parent and child slots (
SRC/tools/server/server-decision.cpp L1819-L1849). The test says “the first question evaluates the shared prefix, the 2 others start from it”, and it setsn_slots = len(questions)(test_systemone.py L138-L186). Set-npto at least the number of questions that share a state. lfm3-d1 packs up to 16 questions into one pass instead. - Reuse across requests is opt-in. The flag is
-cram, --cache-ram N(default “8192, 0 for decision models”;READMEL169). The test says “the prompt cache is opt-in for decision models” (test_systemone.py L189-L212). - Batch size. For laya, clef, vllm-d3, lfm2-d1-omni, lfm3-d1 and lfm3-d1-omni, “the whole prompt is evaluated in one batch: it must fit in
--ubatch-size”. For vllm-decision2, “the options of a question and the end of the prompt must fit in one batch” (READMEL1945). The default-ubis 512 (READMEL53). - Option-order bias. Only the
levtype evaluates two option orders (“to cancel the preference for the first label”; server-decision.cpp L952-L958). Other types read each question once. - Model capability check.
GET /v1/modelsreportsoutput_modalitiescontaining"decisions"for native decision models (READMEL1372-L1395). Use it to confirm the downloaded GGUF is one.
Example launch (the flags are documented in README L38-L241; the values are suggestions):
llama-server -m d1-2B-Q4_K_M.gguf -c 8192 -b 4096 -ub 4096 -np 4 -t 4 --cache-ram 256 --host 127.0.0.1 --port 99312B. llama-server for Path B (instruct model plus a token-probability readout)
Section titled “2B. llama-server for Path B (instruct model plus a token-probability readout)”Endpoints and flags
Section titled “Endpoints and flags”All of these are in README at the line numbers given.
GET /health(also/v1/health) is public, with no API key. It returns 503 with"Loading model"while loading, and 200{"status":"ok"}when ready (L486-L497).POST /completion(L499):n_probs: “If greater than 0, the response also contains the probabilities of top N tokens for each generated token” (L595).post_sampling_probs: “Returns the probabilities of topn_probstokens after applying sampling chain”; values come back asprobandtop_probsinstead oflogprobandtop_logprobs, and “Number of elements intop_probsmay be less thann_probs” (L615, L666-L673).- The response carries
completion_probabilities[i].top_logprobs[] = {id, token, bytes, logprob}(L625-L664). cache_prompt: defaulttrue; “the common prefix does not have to be re-processed”. It “can cause nondeterministic results” because logits differ between batch sizes (L603).grammar(GBNF, L585),json_schema(L587), andlogit_biasas[[id, bias]],[["text", bias]]or an OpenAI-style object, wherefalsebans a token (L593).id_slot(L601) andn_cache_reuse(L548).
POST /v1/chat/completions(L1458):logprobs: trueplustop_logprobs: Nmaps ton_probs(default 20).top_logprobswithoutlogprobsis a 400 error (server-common.cpp L1689-L1698). The source carries a TODO saying the response format “is not yet OAI-compatible”.response_formattakes a json_schema (L1466).chat_template_kwargs, for example{"enable_thinking": false}(L1468).reasoning_effort: "none"disables thinking (L1470).
POST /tokenizewithwith_pieces: truechecks how labels tokenize (L693-L736).POST /apply-templaterenders the chat template so/completioncan continue from an exact prefix (L744).- Server flags:
-t/--threadsand-tb/--threads-batch(L38-L39)-c/--ctx-size(default 0, “loaded from model”, L50)-b2048 and-ub512 (L52-L53)-np/--parallel(default -1, auto, L178)-kvuunified KV (L170)--port(default 9931, L195)--api-key(L218)-rea/--reasoning on|off|auto(L241)
Getting a reliable P(yes)
Section titled “Getting a reliable P(yes)”- Render the chat prompt with thinking off, ending at the start of the assistant turn. Request one token:
n_predict: 1,n_probs: 20or more, and the defaultpost_sampling_probs: false. - Read
completion_probabilities[0].top_logprobs. Sumexp(logprob)over every spelling of each label, such asyes/Yes/yesorはい. Then renormalize over the labels: P(yes) = p_yes / (p_yes + p_no). - For
choicewith 2-4 options, present the options as single-token letters (A/B/C/D) and read the letter probabilities the same way. Check with/tokenizethat each label is one token and that no two labels share a first token.
Pitfalls, from the source code
Section titled “Pitfalls, from the source code”- The default readout is the raw-logit softmax. It is computed over the whole vocabulary, before any sampler, grammar or logit_bias. In
get_token_probabilities(), logits come fromllama_get_logits_ithand are softmaxed (server-common.cpp L1819-L1860). The README says the same: with greedy sampling, “token probabilities are still being calculated via a simple softmax of the logits without considering any other sampler settings” (L595). This is what you want for P(yes), but it meansgrammarandlogit_biasforce the generated token without changing the reported probabilities. Renormalize over the labels yourself. - Top-N truncation. Only the top
n_probstokens are returned (server-context.cpp L2244-L2266). A label outside the top N has an unknown probability. Raisen_probs, or treat the missing label as at most the smallest reported probability. post_sampling_probs: trueis unreliable for this. Those probabilities come after the sampler chain, so temperature, top-k, top-p and min-p distort them (the default chain is inREADMEL607L609). The grammar is also applied only by rejection:grammar_firstdefaults tofalse, and a grammar-violating sample triggers a resample (common/sampling.h L62-L68, common/sampling.cpp L614-L680). The candidate list can therefore include tokens the grammar forbids. Do not read P(yes) frompost_sampling_probs.- Multi-token labels.
spoken_dialogue,sung_lyricsandnot_japanesewill each tokenize into several tokens, and the first token may not identify the label. Map them to letters, or score every full label sequence, which costs one forward pass per option. - Thinking mode.
- Qwen3 has “thinking capabilities enabled” by default.
enable_thinking=Falsedisables it. The/no_thinksoft switch still emits a<think>block: “the model will always output a block wrapped in<think>...</think>” (Qwen3-1.7B card). That breaks a first-token readout, so usechat_template_kwargs: {"enable_thinking": false}(READMEL1468), or--reasoning off/reasoning_effort: "none", and confirm with/apply-templatethat the prompt ends after an empty think block. - Qwen3.5-0.8B and 2B default to non-thinking. Qwen3.5-4B defaults to thinking. Qwen3.5 does not support the soft switch (Qwen3.5-2B card).
- Gemma 4 thinking is triggered by a token in the system prompt (card).
- Qwen3 has “thinking capabilities enabled” by default.
- Context size and RAM.
-c 0uses the model’s training context (READMEL50): 40,960 for Qwen3 and 128K-262K for LFM, Qwen3.5 and Gemma 4 (HFAPIgguf.context_length). On an 8 GB machine, set-cexplicitly, for example 4096 ×-np. My own estimate, UNVERIFIED: Qwen3-1.7B (28 layers, 8 KV heads × 128 dims, f16) would need about 4.7 GB of KV at 40,960 tokens.
3. llama.cpp prebuilt binaries
Section titled “3. llama.cpp prebuilt binaries”Release scheme
Section titled “Release scheme”The repo has two kinds of release:
-
Nightly builds
bNNNNNare marked as prereleases and are very frequent. 100 builds appeared between 2026-11-18T01:14Z and 2026-11-23T06:55Z, about 19 a day (Releases API,GET /repos/ggml-org/llama.cpp/releases?per_page=100). Old builds are retained: b5242 from 2025-05-01 is still listed. -
Semver releases
vX.Y.Z“point to a respective nightly build” that “has all the corresponding assets”, via anightly-tag.txtfile (ggml discussion #1579). Recent ones:Tag Date Points to v0.7.0 2026-10-15 v0.8.0 2026-10-28 v0.9.0 2026-11-04 v1.0.0 2026-11-13 b12359 The cadence is roughly one to two weeks. The policy states no fixed cadence, only a “slow-paced, steady release cycle” (#1579).
-
Recommendation: pin a
vX.Y.Zand download its nightly’s assets. v1.0.0 → b12359.
Asset names and sizes
Section titled “Asset names and sizes”From the GitHub API for b12359, the build v1.0.0 points to:
| Platform | Asset | Bytes | sha256 (GitHub digest) |
|---|---|---|---|
| Windows x64 CPU | llama-b12359-bin-win-cpu-x64.zip |
25,097,509 | 837c1655e87df3b66989f4be33a792a1399c785bf259038dc75c900096683e69 |
| Linux x64 CPU | llama-b12359-bin-ubuntu-x64.tar.gz |
23,311,084 | 0bc1f091e8916102b6d8f2cf944233a620e90a0f856c72d0ce41150c65c2e72e |
| Linux arm64 CPU | llama-b12359-bin-ubuntu-arm64.tar.gz |
18,949,862 | dc7aa17a67884619b7223870aca9fd6addbc01717713b04a714add1c31137359 |
| macOS arm64 | llama-b12359-bin-macos-arm64.tar.gz |
16,907,811 | 82b00abc740160e1b9980e6cc79c117345fa34af058c80e6c0a69aa8ddccde75 |
| macOS x64 | llama-b12359-bin-macos-x64.tar.gz |
12,661,621 | 25320d529077ef5a3d16e7b5da26438f221d88c8c0930a32b0c79457f5eede56 |
Optional GPU builds, from the b12649 asset list:
- Vulkan:
llama-bNNNNN-bin-win-vulkan-x64.zip(about 39 MB) and-bin-ubuntu-vulkan-x64.tar.gz(about 37 MB). - CUDA:
-bin-win-cuda-13.5-x64.zip(about 226 MB) pluscudart-llama-bin-win-cuda-13.5-x64.zip(about 426 MB).
Build details that matter for distribution
Section titled “Build details that matter for distribution”- CPU variants are picked at runtime. The Windows x64 and Linux CPU builds use
-DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON(release.yml L171-L243, L874-L937). The b12649 Windows zip containsggml-cpu-{sse42,x64,sandybridge,ivybridge,piledriver,haswell,skylakex,cannonlake,cascadelake,icelake,cooperlake,alderlake,sapphirerapids,zen4}.dll, so one archive covers AVX2 and AVX-512 machines. The arm64 tarball carrieslibggml-cpu-armv8.0_1througharmv9.2_2(I listed both archives’ contents). - Windows runtime DLLs. The Windows binaries import
msvcp140.dll,vcruntime140.dllandvcruntime140_1.dll; the zip shipslibomp.dllbut not those three (string scan of the b12649 zip). The installer must provide the VC++ 2015-2022 runtime or bundle those DLLs. Whether the bundled standalone Python already shipsmsvcp140.dllis UNVERIFIED. - Linux glibc floor. The x64 build runs on
ubuntu-22.04and needs at mostGLIBC_2.34andGLIBCXX_3.4.30. The arm64 build runs onubuntu-24.04-armand needsGLIBC_2.38andGLIBCXX_3.4.32(release.yml matrix; symbol scan of the b12649 tarballs). - Checksums and pinning.
- The repo publishes no checksum file.
- GitHub computes SHA-256 per asset and exposes it as
digest: "sha256:..."in the Releases REST API (GitHub changelog 2025-06-03). I confirmed the field on these releases, and the hashes of my b12649 downloads matched it. - Each release body links build attestations, for example https://github.com/ggml-org/llama.cpp/attestations/70965633.
GET /repos/ggml-org/llama.cpp/attestations/sha256:<digest>returns SLSA provenance v1 from.github/workflows/release-publish.yml, sogh attestation verify <file> --repo ggml-org/llama.cppcan verify a pinned asset. - Pin by hard-coding tag, asset name and sha256 in AutoMiner.
- Models can be pinned the same way. Download from
https://huggingface.co/<repo>/resolve/<commit sha>/<file>(the standard HF resolve URL; not re-verified this session) and check againstsiblings[].lfs.sha256from HFAPI. For example,d1-2B-Q4_K_M.ggufhas sha256adca5789ad30ae6027e8e936749bb9f19673097492ab26fa1c5b69643ca50b4bat repo sha4a181094d1b6addfaa3a0956f78e7ab2aa406a0c.
4. Expected CPU speed
Section titled “4. Expected CPU speed”The judge workload is almost entirely prompt processing (pp). Path A generates no tokens at all; Path B generates one token per question. Throughput therefore tracks pp t/s, which is compute-bound, so batching sequences barely helps on CPU and only fewer tokens or a smaller model do.
Published measurements (x86, 4 threads)
Section titled “Published measurements (x86, 4 threads)”From mgroeber.de: llama-bench -p 512 -n 128 -t 4, llama-2 7B Q4_0 (6.74B params), llama.cpp build 6878.
| CPU | pp512 (t/s) | tg128 (t/s) |
|---|---|---|
| Core i7-8550U (2018, AVX2 build) | 13.40 | 5.64 |
| Ryzen AI 7 350 (2025) | 31.37 | 10.49 |
| Core i5-3470T (AVX only) | 2.31 | 2.46 |
Supporting data:
- Quant choice on x86. Q4_0 runs prompt processing faster than Q4_K. On a Ryzen 7950X with 16 threads and an 8B model, pp512 was 153.52 for Q4_0 against 108.40 for Q4_K_S (mainline build 4384, ik_llama.cpp discussion #164).
- Relative speed of small models (llama.cpp Q4_0 on CPU, 1K prefill, Snapdragon 8 Gen4 phone): LFM2.5-1.2B prefilled at 335 t/s and decoded at 70; Qwen3-1.7B prefilled at 181 and decoded at 40 (LFM2.5-1.2B-Instruct card).
- I found no published llama.cpp numbers for 0.6-2B models on a 4-core x86 desktop.
Extrapolation (my estimate, UNVERIFIED)
Section titled “Extrapolation (my estimate, UNVERIFIED)”Assumption: pp scales with 1/params from the 7B rows above, which slightly flatters small models.
| Model size | Old 4-core (i7-8550U class) | Modern 4-core (Ryzen AI 350 class) |
|---|---|---|
| about 0.6-0.8B | 110-150 t/s | 260-350 t/s |
| about 1.2B | about 75 t/s | about 180 t/s; the hybrid LFM architecture likely does better |
| about 1.7-2B | 45-55 t/s | 105-125 t/s |
| about 4B | about 22 t/s | about 50 t/s |
Against the budgets
Section titled “Against the budgets”- Per episode (≤5 min, excluding sentence quality and cue verify): about 25 window-kind, 24 timeline-match and roughly 50 line joins make about 100 questions. Each has its own state of about 300 tokens, so little prefix is shared, giving about 30k prompt tokens. That needs at least 100 t/s sustained, which points to:
- a modern 4-core with a model of 2B or less, or
- an old 4-core with a model under 1B.
- Sentence quality (≤1 s per sentence): about 60 tokens of sentence plus 4 checks of about 40 tokens each comes to about 220 tokens. Questions share the state (Path A, packed or with
-np 4; Path B, withcache_prompt). That needs about 220 t/s, so likely only models under 1B, and only on modern CPUs. Shorter check wording, or one choice question covering all four checks, would help. - Measure before deciding. On each target, run
llama-bench -m <file>.gguf -p 64,256,512 -n 1 -t 4 -r 3, then replay real/v1/systemonebodies and readusage.input_tokensand timings.
5. Recommendation: benchmark these first
Section titled “5. Recommendation: benchmark these first”- LiquidAI d1-2B,
d1-2B-Q4_K_M.gguf(1.10 GB), via/v1/systemone.- It is a native decision model behind the exact API AutoMiner already calls, so it needs no prompt or logprob plumbing; only the base URL and the key check change.
- Japanese is a listed language. It has the best open-d1 decision scores (JevBench v1.4.1 77.9).
- It packs up to 16 questions per state in one pass, which fits sentence quality.
- Its license is free below $10M annual revenue, provided the license text ships with the app.
- Risks: no Japanese decision benchmark is published, and CPU speed is unmeasured. At about 1.7B, it probably meets the per-episode budget on modern 4-core CPUs but not the ≤1 s per sentence target.
- vllm-sr Decision-2.0-Kai-0.6B Q4_K_M (401 MB) or Eos-0.8B Q4_K_M (534 MB), Apache-2.0, same endpoint.
- This is the speed tier: the most plausible way to reach ≤1 s per sentence and to run on older 4-core machines.
- Japanese ability is undocumented, although the Qwen3/Qwen3.5 bases are multilingual. Treat it as UNVERIFIED and measure it against Jev’s answers.
- Generative control: LFM2.5-1.2B-JP-202606 Q4_K_M (731 MB) via
/completionwithn_probs.- It has the strongest published Japanese numbers at 2B or less (JMMLU 54.19 against Qwen3-1.7B’s 47.67; Japanese instruction following 66.93 against 38.45).
- The Apache-licensed alternative is Qwen3.5-2B (non-thinking by default) or Qwen3-1.7B with
enable_thinking: false. - Use this path if the decision models turn out weak on Japanese ASR text, because prompt wording can then be tuned per task.
Deprioritize the following:
- 4B models (Qwen3.5-4B, h2o-lightning-4b, Phi-4-mini, Gemma 3 4B, Gemma 4 E2B/E4B at 2.8-5.2 GB): likely too slow on 4 cores.
- Llama 3.2: Japanese is not a supported language, and its Japanese scores are weak.
- Gemma 3 1B: weak Japanese.
- OpenJev: 27B and non-commercial.
- Laya: the English checkpoint fails on non-Latin scripts, and there is no ggml-org multilingual GGUF.
- ELYZA 8B: too large.
Any model change must pass a no-degradation replay against Jev’s recorded answers before it ships, per AutoMiner’s rule that 判定 changes are replay-validated.
6. Prototype results (2026-11-23)
Section titled “6. Prototype results (2026-11-23)”A throwaway prototype (branch prototype/local-judge-d1, bench/prototypes/local-judge/) answered
the first recommendation on a Windows desktop at -t 4, against a copy of the real library. The
summary is from #1490.
- llama.cpp’s server already speaks Jev’s API.
POST /v1/systemoneon a native decision model answers AutoMiner’snoulandchoicerequest bodies unchanged, sojev.py’s request and answer code works againsthttp://127.0.0.1:<port>. A plain instruct GGUF returns 501. - Pin llama.cpp nightly
b12529, which includes d1-2B packing (ggml-org/llama.cpp#32553). v1.0.0 /b12359predates it. - Pin
LiquidAI/d1-2B-GGUF@4a181094d1b6addfaa3a0956f78e7ab2aa406a0c,d1-2B-Q4_K_M.gguf(1,099,629,888 bytes, sha256adca5789ad30ae6027e8e936749bb9f19673097492ab26fa1c5b69643ca50b4b). It is under the LFM Open License v1.0, so its license text ships with it. - The server ran with
-c 32768 -kvu -b 8192 -ub 8192 -np 16 -t 4 --cache-ram 1024. It was healthy after about 3 s, andGET /v1/modelsreportsoutput_modalities: ["decisions"]. - The local backend must put one row per state. In a 12-sentence state, sentence quality agreed with Jev 35% of the time; with one sentence per state it agreed 81%.
| Task | Sample | Agreement with Jev | Speed |
|---|---|---|---|
| Line joins (no before/after context sent) | 24 | 15 (62%) | 1.0 s/question |
| Cue verify (Jev’s batched state) | 48 | 40 (83%) | 2.5 s/question |
| Sentence quality, 12 sentences in one state | 48 checks | 17 (35%) | 4.7 s/sentence |
| Sentence quality, one sentence per state | 16 checks | 13 (81%) | not timed |
Line-join agreement is understated, because the stored rows keep no before/after lines. Window kind, timeline match and line joins fit the 5-minute episode budget. Sentence quality and cue verify do not yet meet the ADR-0002 speed bar. The full test run is #1491.