Expand description
Multi-mode inference — keep parallel approaches, do not dump one pipeline.
Timothy (2026-07-09): different modes rather than replacing the portable resident path. Modes are selected by env / API; each has a honest role:
| Mode | Role |
|---|---|
| Portable | wgpu resident decode/prefill (DX12/Vulkan/Metal) — default product path |
| CudaTc | Prefer forge CUDA WMMA / TC GEMM when dims allow; fall back to Portable |
| QuantGraph | Aggressive INT4/INT8 + mid hybrid hints + post graph repair |
| FastVerify | Ollama-like full-speed decode (no mid-token Sentinel tax) → post-turn CML/graph self-heal + HTML |
Modes compose toggles already in inference_bench; they do not invent a
second engine. Graph-hybrid quality recovery is neuro-symbolic: LLM proposes,
graph + Logic VM grounds, domain engines compute exact subproblems.
Enums§
- Inference
Mode - Active inference approach for this process.
Functions§
- active_
inference_ mode - Resolve mode from
QUALIA_INFERENCE_MODEat the cold configuration boundary. - apply_
mode_ toggles - Apply mode-specific defaults without changing the mode atom (used at first infer).
- bootstrap_
inference_ mode - One-shot: resolve env, apply toggles, return mode (call from agent entry).
- fast_
verify_ html_ default - FastVerify defaults to returning plain healed text; HTML when this is true.
- post_
turn_ verify_ enabled - Post-turn verify + self-heal (graph/CML/HTML) before finalising the turn.
- prefer_
tensor_ core_ gemm - True when dense forge GEMM should try tensor-core path first.
- quant_
graph_ grounding_ enabled - True when agent should run graph / Webizen grounding after proposals.
FastVerify also grounds — but only post-turn (see
post_turn_verify_enabled). - rights_
mode_ enabled - True when operator asked for rights-grade defaults (
QUALIA_RIGHTS_MODE). - sentinel_
mid_ decode_ enabled - Mid-decode Webizen Sentinel / logit-ring governance active? Off in FastVerify so decode matches Ollama-style uninterrupted generation.
- set_
inference_ mode - Set process mode and apply associated toggles. Env still wins on next read if set.