Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Engine reference — generated from the canonical engineering source. Do not edit this page by hand.

Local Inference Lanes

Status: LIVE. This catalog is rendered from the lane/engine registry (server/config/sys.config, sys.prod.config, sys.test.config), the engine manifests under engines/, and the benchmark artifact local-inference-benchmark.csv (docs/local-inference-benchmark.csv) (gated by ci/lane_benchmark_claims_lint.py). Numbers marked expected are registry expectations, not measurements; every measured number below is a claim token backed by an artifact row. Ghost provenance for every pin is frozen in plan/fixtures/ghost-p7-standard-b0454f2.md (ghost P7 tag p7-strata-b11639-2026-10-18); the superseded e7032b9 export remains the b11011-era provenance record.

Purpose

Which model serves which use case, on which engine class, with which capabilities, and what is actually validated. Sol owns every local lane (llama.cpp via erlexec); Luna consumes a Sol-issued lane grant — a worker never defines or probes a lane endpoint. See local-inference-runbook.md for operations.

The use_case facet

use_case is one atom per lane — the one-per-lane rule mandated by the engine interface (sol_lane_registry USE_CASES; a list or an unknown atom is a boot refusal). The enum is fim, agentic, fast_bulk, docs_long, vision, strict_json, story, cpu_cron, escalate. The facet is a routing/selection hint, not a capability replacement: caps still carries the boolean capability facts. The GSQ-RCO Coder’s primary facet is agentic; the engine interface’s enum has no separate coding atom this release, so coding stays a capability + role fact. The sanitized inventory (GET /api/v1/inference/lanes) joins the facet from the registry onto each row as a single use_case string; a row whose lane has no facet is returned unchanged (absence tolerance for older peer configs).

Lane catalog

modes = lifecycle modes the lane accepts (on_demand lanes idle-release after 15 min by default; attended follows the same lane idle policy and extends on traffic unless an explicit TTL/duration is supplied; cron/duration are scheduled/fixed shapes). Caps: tools = tool calls, json = strict JSON requires the parser engine (upstream PR #28682 — see the engine matrix), vision = image input, mtp = in-file/external multi-token prediction.

Laneuse_caseRoleModel pin (repo / file)EngineConfigCapsModesMeasured evidence
qwen38_atxagenticGeneral default + vision + strict JSON (primary); FIM fallbackjakeatx/Qwen3.8-27B-ATX-IQ4_XS-M-GGUF / Qwen3.8-27B-ATX-4-XS.gguf (sha256 5cf05ad9…8d963b, apache-2.0)cuda_sm86_mainctx 229376 text / 163840 vision, KV q4_0, full offload, MTP d3 in-file, temp 1.0tools, json, vision, mtp, fimon_demand, attended, durationqwen38_atx eval_tps=93.2, qwen38_atx needle_decode_tps=64.4, qwen38_atx vram_mib=23849; FIM 18/40 accept@1 (0.45), 44.9 decode t/s — FIM round (benchmarks/fim-round-2026-10-18.md)
qwen38_ud_iq3sdocs_longFull-context fallback + automatic failover targetunsloth/Qwen3.8-27B-GGUF / Qwen3.8-27B-UD-IQ3_S.gguf (+ mmproj-F16.gguf, external drafter)cuda_sm86_mainctx 262144 vision, KV q4_0, full offload, MTP d2 externaltools, vision, mtpon_demand, attended, durationexpected — no imported row; validation pending
ling_tinyfast_bulkHigh-volume text / multi-agent (small MoE)inclusionAI/Ling-3.0-tiny-GGUF / Ling-3.0-tiny-Q4_K_M.gguf (MIT)cuda_sm86_mainctx 131072, up to 5 slots, MTP offtoolson_demand, cron, attended, durationling_tiny eval_tps=231.3, ling_tiny vram_mib=9397
ling_flashdocs_longCapacity / long documents (expert offload)bloomer010/Ling-3.0-flash-GGUF / Ling-3.0-flash-IQ3_XXS.gguf (MIT)cuda_sm86_mainctx 262144, -ncmoe 28, 2 slotstoolson_demand, attended, durationling_flash eval_tps=41.1, ling_flash vram_mib=21401
ling_reap288docs_longPruned capacity (better tokens/VRAM than flash)bloomer010/Ling-3.0-flash-REAP288-73B-A5B-GGUF / Ling-3.0-flash-REAP288-71B-A5B-Q3_K_M.gguf (MIT)cuda_sm86_mainctx 262144, 2 slotstoolson_demand, attended, durationling_reap288 eval_tps=44.8, ling_reap288 vram_mib=18361
qwen38_flashnextdocs_longHeadroom capacity / long context (full production lane)unsloth/Qwen3.8-Flash-Next-GGUF / Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00003.gguf (license unknown — license_ack recorded)cuda_sm86_mainctx 131072 (green host override), 2 slotstoolson_demand, attendedexpected — vram_mib 23347 unbacked; validation pending
glm47_storystoryCreative / story (opt-in, uncensored)DavidAU/GLM-4.7-Flash-Uncensored-Heretic-NEO-CODE-Imatrix-MAX-GGUF / GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-IQ3_M.gguf (MIT)cuda_sm86_mainctx 131072, KV q8_0, MTP d5tools, mtpon_demand, attendedexpected — no imported row; validation pending
glm47_fimfimPrimary FIM / inline completion (same pin, 16k FIM context)same GLM pin / GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-IQ3_M.gguf (MIT)cuda_sm86_main (b11639)ctx 16384, KV q4_0, no MTP, one slot, native /infillfimon_demand, attendedFIM round (benchmarks/fim-round-2026-10-18.md): 26/40 accept@1 (0.65), 120.8 decode t/s, 2525 prefill t/s, 96-token 0.80 s warm-cache @1k, 14.1 GB
huihui35b_story_vlmstoryCreative + vision (opt-in)huihui-ai/Huihui-Qwen3.6-35B-A3B-Claude-4.7-Opus-abliterated-MTP-GGUF / …-Q3_K.gguf + mmproj-model-f16.gguf (apache-2.0)cuda_sm86_mainctx 65536, single slottools, vision, mtpon_demand, attendedexpected — no imported row; validation pending
ling_tiny_cpucpu_cronScheduled / CPU-only (always-available fallback)bloomer010/Ling-3.0-tiny-GGUF / Ling-3.0-tiny-Q4_0.gguf (MIT)cpu_zen1ctx 131072, 16 threads, single sessiontoolson_demand, cron, attendedexpected — no imported row; validation pending
api_tierescalateDeep reasoning (hosted models)remote plane — no local weights, engine or pin—external gateway; local weights retired 2026-08-31tools, jsonon_demand, attendedexternal service
llama_agentic_stagedstrict_jsonStrict-JSON validation only — never a serving laneinclusionAI/Ling-3.0-tiny-GGUF / Ling-3.0-tiny-Q4_K_M.ggufllama_agentic_staged (#28682 + #28724 staged build)ctx 131072; production => falsetools, jsonon_demandstrict-JSON 0/2 → 2/2 with the staged parser (historical, pre-ZERG run)
qwen38_gsq_coderagenticStaged multi-engine Coder — Strata primary, validation-only untilISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF@5348543e… / Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf (+ shard 2, + mmproj-Qwen3.8-Flash-Next-BF16.gguf; apache-2.0)strata_sm86 (0.1.44.1)ctx 262144, KV int8, 2 Sol slots (the engine template carries batch4), standardized 256k/MTP; production => falsecoding, agentic, vision, json, toolson_demand, attended, durationqwen38_gsq_coder eval_tps=113.8, qwen38_gsq_coder vram_mib=23887, 518k needle PASS on red — ghost evidence only; zerg validation pending
qwen38_gsq_coder_llamaagenticStaged llama.cpp b11639 fallback for the same pin (--moe-cache-mib 4096, fit-target 256); production => falsesame GSQ-RCO shards + mmprojcuda_sm86_main (b11639)ctx 262144, KV q4_0, --fit on --fit-target 256, 2 slotscoding, agentic, vision, json, toolson_demand, attended, durationqwen38_gsq_coder_llama eval_tps=45.7 (128k), qwen38_gsq_coder_llama eval_tps=48.9 (256k), qwen38_gsq_coder_llama needle_decode_tps=28.8, qwen38_gsq_coder_llama vram_mib=23545 — ghost evidence only; zerg validation pending; FIM 16/40 accept@1 (0.40), not a FIM candidate

The fixture lanes fixture_sse (use_case => agentic) and fixture_fim (use_case => fim, caps.fim => true, the POST /v1/completions e2e vehicle) share the fixture_openai engine and exist only in the test configuration; they never serve production traffic and never enter the artifact.

Catalog cross-check

Every serving lane above is mirrored as a wire: local row in contract/model_catalog.yaml (contract/model_catalog.yaml) — serving: {register: local, lane: <lane>, engine: <engine>} with the registry filename slug as an alias (for example qwen38_atx ↔ qwen3.8-27b-atx-4-xs). ci/model_catalog_lint.py cross-checks the catalog against the adapter/declarative/Luna surfaces; the lane lifecycle and validation remain owned by sol_lane_registry / sol_lane_orchestrator, not by the catalog. A Sol request naming a lane id or its filename slug still resolves to the local lane; an unknown non-lane model is typed-refused and answers 404 (see catalog.md). The two new GSQ-RCO lanes are registry/inventory rows only — they are not serving-catalog rows until the Validation lands.

Unbacked registry expectations are visible on purpose: ling_flash (vram_mib=18534), ling_reap288 (vram_mib=18534) and qwen38_flashnext (vram_mib=23347) have no matching artifact row yet. They stay on the residual list until a ZERG run lands.

Engine matrix

EngineClassRefBuildFlags / requirementsCertification
cuda_sm86_mainCUDA (GPU worker)ggml-org/llama.cpp@a0e6dc7384edb8f5d927155e1d26c10b4a310e6db11639flash-attention on, GGML_CUDA_FA_ALL_QUANTS=ONproduction engine; per-lane validation gates placement
cpu_zen1CPU — Zen 1 safe (blue coordinator)same source as aboveb11639AVX2/FMA/F16C, -march=znver1, no AVX512; min_microarch=x86-64-v3production engine; the installer refuses a wrong-target artifact (host_class=zen1-avx2); CPU lane validated by the needle gate
cpu_epycCPU — znver4/AVX512 (Zen 4 CPU hosts only)same source as aboveb11639-march=znver4, AVX512; min_microarch=x86-64-v4production target — never install on blue (Zen 1); host_class=epyc-znver4; validated by the needle gate
strata_sm86Strata specialist (GPU)Niko1221/Strata@296b59d2f73c8f04a805df29c2fa97655adace780.1.44.1Flash-Next specialist (MIT, built on llama.cpp/ggml parts); 256k/batch4/MTP standardproduction => false — validation-only until the run, never a default
llama_agentic_stagedexperimental (GPU)llama.cpp aa39d7a3e #pr28682+pr28724staged at /usr/src/llama-agenticstrict-JSON parser PRsproduction => false — validation only; never serves
fork_turboquantexperimental (GPU)JakeATX/llamAmpere@b63729488—llama.cpp fork experimentsnot adopted (no-fork posture); needle-gated experiments only

The strict-JSON capability (json above) requires the parser fix upstream PR #28682; on the stock b11639 engine the registry records that requirement per lane and the router refuses a strict-JSON request on a lane whose engine cannot honor it. Never claim strict-JSON from stock evidence.

Multi-engine note (GSQ-RCO Coder)

The GSQ-RCO Coder pin is deliberately served by two engines, benchmarked side by side on the same 3090 + weights:

Strata 0.1.44.1 — the standardized 256k/batch4/MTP engine config on both hosts (the Sol lane declares slots_max 2 under the registry big-lane cap); ghost measured 2.2-2.9x decode and 5x+ prefill versus the llama.cpp lane (113.8 LuaJIT on red; 518k needle PASS @71 t/s depth). The 512k mode is a red-only experimental escape. Llama.cpp b11639 — the no-fork/general-engine path with --moe-cache-mib 4096 and fit-target 256 (45.7 tok/s @128k, 48.9 @256k; needle PASS). The recipe is recorded in the lane notes; the current schema exposes fit/load_mode but not fit_target/moe_cache_mib so the staged row does not yet render those two flags.

Both registry rows are production=false and staged. The two open ghost gates — the mmproj formal caption A/B and the Code/agentic tool-call JSON spot-check versus the full model — plus the ZERG-side needle/parity run must close before any default flip. No default changed in.

FIM/completion survey

The completion plane has a separate capability survey: ../benchmarks/fim-survey.md (benchmarks/fim-survey.md) records the candidate × engine FIM matrix and the measured token/parity probes; the requirements are in ../plan/completion-lane-requirements.md. Measured 2026-10-18 on b11639 (red 3090): glm47_fim is the primary (GLM-4.7-Flash Uncensored NEO-CODE MAX IQ3_M, native GLM <|code_prefix|>/<|code_suffix|>/<|code_middle|>): 26/40 accept@1 (0.65), 120.8 decode t/s, 2525 prefill t/s, 96-token 0.80 s warm-cache at 1k. qwen38_atx is the fallback (18/40, 44.9 t/s, 15.5 GB). ling_tiny was rejected for FIM: 0/40 in both --override-kv mappings; the tokens exist but the GGUF has no FIM template and the model card claims no FIM training. GSQ-RCO measured 16/40 but stays the staged coding/agentic lane (24 GB resident, 576 prefill t/s). Strata still has no /infill and its chat path defuses FIM control tokens. Full method, grid, cache and caveats: ../benchmarks/fim-round-2026-10-18.md (benchmarks/fim-round-2026-10-18.md).

Landed in: Sol serves POST /v1/completions (OpenAI legacy text-completion shape, non-streaming) and routes it to a lane that declares caps.fim => true through its internal /infill. The endpoint requests the attended mode so an active editor session keeps the lane resident (a cold lane answers the typed lane_warming + Retry-After). glm47_fim is the declared FIM primary (production => false until a zerg validation record exists — see the cold-start section); qwen38_atx is the fallback and is a production lane, so its own validation verdict must permit serving before fallback selection. On a clean tree with no records neither lane serves: /v1/completions answers the typed 503 lane_unvalidated instead of bypassing the gate. The test config adds fixture_fim (a fixture_openai lane with the mock /infill) for the e2e; /infill is never client-facing. The lane validation probe carries a fim section with template-parity/quality/ latency fields; the zerg-side measured values are above; the ghost P7 cross-repo rows remain the external gate.

FIM cold start and validation

glm47_fim is the declared primary but ships production => false until a zerg-side validation record exists (a clean tree has no record, so a production flag would answer 503 lane_unvalidated/no_record). The measured round row (origin=zerg) is in local-inference-benchmark.csv (docs/local-inference-benchmark.csv); the validation record still needs the lane’s exact-recall needle row.

Cold start the lane (admin token), then exercise the real endpoint:

curl -s -X POST http://127.0.0.1:21434/api/v1/start \
  -H "Authorization: Bearer $SOL_TOKEN" -H 'content-type: application/json' \
  -d '{"lane":"glm47_fim","model":"glm-4.7-flash","mode":"attended"}'

curl -s -X POST http://127.0.0.1:21434/v1/completions \
  -H "Authorization: Bearer $SOL_TOKEN" -H 'content-type: application/json' \
  -d '{"prompt":"def add(a, b):","suffix":"\n    pass\n","max_tokens":32}'

Probe, append the returned row_ref row to the configured lane_benchmark_csv, then commit:

curl -s -X POST http://127.0.0.1:21434/api/v1/inference/lanes/glm47_fim/validate \
  -H "Authorization: Bearer $SOL_TOKEN" -H 'content-type: application/json' \
  -d '{"mode":"probe"}'
# append the probe row to /opt/sol/data/local-inference-benchmark.csv
curl -s -X POST http://127.0.0.1:21434/api/v1/inference/lanes/glm47_fim/validate \
  -H "Authorization: Bearer $SOL_TOKEN" -H 'content-type: application/json' \
  -d '{"mode":"commit"}'

Only after the commit should the lane be flipped to production => true. /v1/completions also pins the declared fallback (qwen38_atx) when the primary lane’s derived verdict is engine_unvalidated and the fallback’s verdict permits serving; the typed inference_lane_fallback event records the reason and sol_inference_lane_fallback_total{reason} counts the selection. A fallback that is itself unvalidated is never substituted.

Host roles

The registry binds node labels to two classes (node_classes); placement enforces the class facts (lane_host_policy):

CPU coordinator (single session). Large-memory headless box, no GPU. Serves the CPU lane and the remote API tier; one inference session at a time; no GPU lanes. GPU worker (24 GB). Continuous-batching GPU box with 5 session slots; serves all GPU lanes. A lower-RAM variant caps qwen38_flashnext at 131072 ctx (the 256k mode needs ~42 GB host RAM and is deferred until the parity row lands). Exclusions: big lanes are single- or two-slot by design (slots_max), and a lane is only placement-eligible when its (lane, engine, host) combination has a fresh validation record.

Admission control is per-node. The per-model concurrent-pipeline admission (max_active_requests, counted inside each model’s gen_statem) is node-local — and semantically right: a lane+model instance lives on exactly ONE node (its lease is held there), so per-node admission IS per-instance admission. The only visible multiplier: the same MODEL prepared on two nodes doubles the model-level budget, because they are two independent llama servers. This is recorded, not accidental; a cluster-global admission budget is out of scope until lanes share instances.

Validation status

Validation is derived at read time from a record that is compared against the live engine ref/build, the installed engine manifest hash (receipt — production lanes refuse no_receipt/unverified_manifest without a ZERG install receipt), the model pin (file + sha256 + receipt byte size), the 30-day TTL, and the parity verdict — any mismatch makes the lane unvalidated and placement refuses with {engine_unvalidated, Lane, Reason}.

Certification is granted from ZERG-produced evidence only: the commit route requires origin=zerg, membership of the claimed row_ref in the configured artifact CSV, an engine install receipt with a real manifest hash, and a parity verdict (pass, or single_host only with the explicit allow_single_host ack). See engine-provenance.md for the supply-chain contract and the runbook §6 for the typed refusals.

At this release the artifact carries 24 rows — 23 origin=ghost and one origin=zerg (measured on the source sibling fleet and imported with per-row provenance): the original b11011-era lanes, the P7 b11639 / Strata/GSQ-RCO rows for qwen38_gsq_coder and qwen38_gsq_coder_llama, and the zerg FIM evidence row for glm47_fim. The zerg row is a quality/latency measurement, not a needle/parity validation record, so no lane is advertised as ZERG-validated yet; every production placement still requires an operator validation run first. qwen38_atx is a production lane (production => true) and therefore also refuses on a clean tree until that run lands. The two GSQ-RCO lanes are production=false and remain staged validation-only rows until records the ZERG needle + parity rows (the ghost rows are hypothesis provenance, never a substitute). Run scripts/lane-certify.sh --plan to see the lane × engine × host matrix, then the real run through POST /api/v1/inference/lanes/:lane/validate (needle gate + parity + record commit) before serving. The full matrix is summarized in local-inference-benchmark.md.

Revision 2 scope (recorded, not silent)

Embeddings, reranking and LoRA serving are out of scope for this revision. The extension points are reserved: lane kind (a future non-generative kind), registry schema (new pin/engine fields), and the provider surface (Sol-issued grants already carry wire_format + caps). See the runbook’s “Requesting a lane” section for the operator-facing story.

See also

local-inference-runbook.md — start/stop, validate, failover, engine install/rollback, weight provisioning. local-inference-benchmark.md — the machine ledger, parity bands, invalidation semantics.