Deterministic headroom
Account for persistent non-expert weights, context and active-request memory, hidden and residual state, temporary GPU work, in-flight uploads or evictions, and allocator/driver safety margin.
Technical overview
MER is a Rust execution engine for routed Mixture-of-Experts models. Its target architecture separates accelerator-owned transformer compute, managed expert residency across VRAM/RAM/NVMe, and a CPU control plane that services misses without owning the normal warm loop.
Each plane has a different ownership boundary. The capability labels distinguish hardware-validated components from current integration work and later architecture stages.
State, weights, embedding, GEMV, norms, Q/K/V projection, RoPE, F32 KV append
Causal attention scores, softmax, value aggregation, output projection
GPU routing, Q4 expert execution, weighted combine
SSD/NVMe expert store, RAM cache/staging, prediction machinery
VRAM expert arena, safe budget controller, tier-aware predictive movement
Demand and predicted movement through NVMe → RAM → VRAM
Startup, loading, storage work, orchestration, telemetry, status
CPU reference and GPU-expert output qualification
No warm hidden-state host re-entry after GPU integration
These capability labels separate validated components from integration work; the complete GPU-native generation loop is not finished.
VRAM budget policy
Account for persistent non-expert weights, context and active-request memory, hidden and residual state, temporary GPU work, in-flight uploads or evictions, and allocator/driver safety margin.
Give essentially the entire remaining safe budget to layer-qualified expert residency. The objective is maximum safe occupancy, not literal 100% allocation.
RAM stages and caches expert payloads while NVMe/SSD provides the larger backing capacity. Demand and eviction determine what remains hot in VRAM.
I/O path
Expert blobs use page-aligned layouts and buffers. On Linux, MER supports O_DIRECT-oriented positional reads; an optional io_uring backend uses registered fixed buffers and batched submission. Portable development paths can fall back when direct I/O is unavailable.
Routed inference is shaped by random expert access, queue contention, filesystem behavior, storage virtualization, and concurrent prefetch. A drive’s sequential specification does not predict the latency of this access pattern by itself.
Residency integration
MER already contains predictor, speculator, and admission-control machinery for expert prefetch. As GPU residency is reconnected, that machinery will be adapted so predicted experts can move through NVMe → RAM → VRAM before demand arrives. Admission must respect prediction confidence, memory headroom, and I/O contention, with foreground inference taking priority. The final GPU-tier path is not production qualified today.
Validated GPU foundation
Capability status
| Status | Capability | Meaning |
|---|---|---|
| Validated output qualification | Reference execution compared with GPU-routed expert execution | Deterministic generated output agreed across the fixed corpus; no TPS claim. |
| Measured diagnostic | Controlled earlier warm-path batching on NVIDIA L4 | Measured decode improvement and fewer host synchronizations; not current GPU-native throughput. |
| Validated GPU foundation | State, weights, dense operations, norms, Q/K/V, RoPE, F32 KV append | NVIDIA-L4 validated without intermediate production host readbacks. |
| Currently being integrated | Causal attention, softmax, value aggregation, output projection | Required before attention is complete in the GPU-owned loop. |
| Next architecture stage | GPU routing and Q4 experts; residency, budgeting, and predictive movement | Required to reconnect MER’s virtualized expert memory to GPU execution. |
| Engineering target | Complete GPU-owned generation at ≥10 real generated tokens/s | Not achieved; oversized-model proof must include measurable tier movement. |