Darkwood / local inference infrastructure
Thesis
Agenda
models.dev · modalities · cost · context.
Ollama as HTTP surface · future adapters.
Compare · benchmark · export.
Embedded inference - not “better Ollama”.
Ports, traces, reproducibility.
Orchestration & embedded edge.
Part 1 - Catalog plane
Live - models.dev
Comparator plane
Live - modles
Analogy - shipping vs inference
LocalModelRuntimeInterfacePart 2 - Process-local HTTP runtime
/api/tags - what’s pulled, which quant.
/api/generate - non-stream MVP in NoLife.
Load time, eval counts, wall clock - rudimentary SRE signals.
Live - NoLife Models
Live - NoLife Models
Part 3 - Reference app
LocalModelRuntimeInterface, exporters, session-backed results.Catalog explorer (Live Component) - filters without round-trips.
Fast morphing between compare / results.
Hexagonal slice
flowchart TB
subgraph UI["UserInterface"]
TW["Twig + Forms"]
LC["LiveComponent"]
end
subgraph APP["Application"]
RC["Compare handler"]
RB["Benchmark handler"]
end
subgraph DOM["Domain"]
LR(("LocalModelRuntime"))
CR(("CatalogRepository"))
EX(("Exporter"))
end
subgraph INF["Infrastructure"]
OL["Ollama runtime"]
MD["models.dev cache"]
SE["Session + files"]
end
TW --> RC
LC --> RC
RC --> LR
RC --> CR
RB --> LR
RB --> CR
OL -.-> LR
MD -.-> CR
SE -.-> EX
Runtime port
LocalModelRuntimeInterfaceinterface LocalModelRuntimeInterface
{
/** @return list<LocalModel> */
public function listLocalModels(): array;
public function generate(GeneratePromptCommand $command): ModelInferenceResult;
}
Live - NoLife Models
Evaluation plane
Duration, load, eval counts - reproducible numbers.
Side-by-side text for human triage.
Structured rubrics · model grading pipelines.
Live - NoLife Models
Orchestration
flowchart LR S[Suite definition] --> M[Model A / Model B] M --> P[Prompt cases] P --> R[Runtime generate] R --> T[Timing + text capture] T --> X[Matrix + exports]
Live - NoLife Models
Governance
Exports + session IDs - what ran, when, with which tags.
Policies on top of the same port: quotas, routing, kill switches.
Part 4 - Embedded inference
Embedded stack
Single-file weights - ship like any binary asset.
CPU/GPU inference core - predictable foot-print.
Token deltas - UX + back-pressure aware servers.
Interchange clients - ecosystem leverage without cloud lock-in.
End-to-end
flowchart LR C[Catalog plane] --> R[Runtime plane] R --> E[Evaluation plane] E --> O[Observability plane]
Part 5 - Outlook
Closing