A comparison against current systems (llm-d, NVIDIA Dynamo, vLLM + NIXL/LMCache, Mooncake, DistServe/Splitwise, HexGen-2/Helix/ThunderServe) found one thing nobody else ships: prefill/decode serving across NPUs from different vendors, with an explicit KV contract (layout, precision, ownership). It also found seven gaps. This page tracks the plan for each.
Engine work belongs to Optimus Prime (aicomp) and is tracked there as feature requests. Everything else is done in the ai-rm repositories.
| Gap | Where the field is | ai-rm side | Engine side (aicomp) | |
|---|---|---|---|---|
| W1 | Serving surface: no streaming, completions only, greedy, fixed length | vLLM/SGLang: OpenAI-compatible streaming, sampling, cancel | rm-bench --api chat, GuideLLM and MLPerf result import |
#41 streaming + chat · #42 sampling · #43 cancel on disconnect |
| W2 | Scale and maturity: one node, B≤8, S=512, one model, cards pinned by site values | Production stacks run multi-node, continuous batching, long context | node-daemon image, umbrella chart, kind-based sim cluster in CI, multi-node and multi-pool placement, pods use their assigned card | #44 multi-lane batched decode · #51 S=2048+ |
| W3 | KV transport standards: own transport, not reachable from NIXL / vLLM | NIXL is the common KV transfer layer (Dynamo, llm-d, vLLM) | NIXL backend plugin for RNGD↔ATOM in hetero-npu-p2p, vLLM KV connector in rngd-pd, 0.1–4 GB transfer curves | #47 layer-wise transfer · #48 NIXL transport hook |
| W4 | Cache reuse: every request prefills from scratch | llm-d / Dynamo route by KV-cache hits; LMCache and Mooncake Store tier KV | EPP prefix-cache scorer config, LMCache / Mooncake Store evaluation, host-DRAM KV tier (rm-core MemoryTier) |
#46 KV block events + prefix reuse · #52 host-DRAM KV tier |
| W5 | Control loop: static deployments, placement recorded but not enforced, no failure handling | Dynamo Planner rebalances P:D on SLOs; KEDA/HPA on queue metrics | rm-controller applies placements, P:D rebalancer, re-placement on node or card failure, KEDA autoscaling | #45 /metrics · #49 recovery from quarantine |
| W6 | Formal scheduling: rule-based placement | HexGen-2 (graph partition + max-flow), Helix (MILP), ThunderServe — all GPU-only | optimal placement policy over card types and KV link cost, placement format in the rm-core protocol |
#50 FASOP inference cost model + NPU profiles |
| W7 | Evidence: no baselines yet | Papers report goodput per card and SLO attainment against DistServe/vLLM | Same-budget baselines (same-vendor PD, vendor PD, replication), tok/J in every run, two paper drafts | — |
| Acceptance | |
|---|---|
| W1 | rm-bench run pd-smoke --api chat passes and GuideLLM reports TTFT on the PD path |
| W2 | B≥8 decode and S≥2048 cover ≥85 % of the Azure conversation trace; pools span two nodes; helm install reproduces the stack; sim e2e runs on every PR |
| W3 | RNGD→ATOM transfer through a NIXL client, token-exact; transfer-time curve to 4 GB |
| W4 | Mooncake tool-agent replay: prefix hit rate > 0 and lower TTFT than no cache |
| W5 | Pods land where airm-placement says; P:D ratio follows the trace mix; a killed decode pod recovers within an error-rate bound |
| W6 | optimal beats topology on goodput per card under the same budget, compared with a GPU-only baseline |
| W7 | Result tables per trace against the three baselines, with tok/J |
| Done on the ai-rm side | Waiting for | |
|---|---|---|
| W1 | rm-bench streaming client (TTFT/TPOT/ITL from SSE), GuideLLM and MLPerf import, compare |
engine #41–#43 |
| W2 | node-daemon image ghcr.io/ai-computing/rm-accel, umbrella chart charts/ai-rm, kind sim e2e on every PR, rngd-pd uses its allocated card; multi-model pools placed and moved live (PD + aggregated serve, baselines); cross-node KV tcp (rngd-pd #9) byte- and token-exact through a CPU relay node, measured 0.08 GB/s on 1 GbE (baselines); NPU-to-NPU PD across two NPU nodes (RNGD prefill on one, RNGD decode on the other, tcp server beside decode): byte- and token-exact, KV load at admission 242 ms instead of 816 ms through a relay, Azure conversation ×0.5 at 96.7 % SLO attainment (baselines) |
engine #44, #51; a ≥ 2.5 GbE link for two-node pools to pay off; a node for cross-node runs with the runtimes installed (they were copied in for the run); placing a pool's roles on given nodes from rm-controller |
| W3 | HETERO_NPU NIXL backend (hetero-npu-p2p #3): RNGD→ATOM DMA-BUF at ~41.5 GB/s flat from 0.1 to 4 GiB, byte-verified; 32-layer split costs nothing extra |
engine #47, #48 (serving pods stay on shm until the ATOM decode graph accepts a device-resident cache); rngd-pd nixl KV transport done (rngd-pd #8: 1.6 ms per request RNGD→ATOM, token-exact) |
| W4 | EPP profiles measured on 2× A100 (hetero-llm-d #5): approx-prefix-gpu TTFT p50 0.225 → 0.127 s on shared prefixes; precise prefix works with the corrected event contract; KV tier evaluation |
engine #46, #52 |
| W5 | rm-controller placed and moved the live PD pods (--apply); KEDA on A100: 1→2 in 21 s, cold start 110–121 s; rngd-pd decode survives backlogs (rngd-pd #6: 1,153 requests, 0 failed) |
engine #45, #49; live predictive --rebalance done (baselines W5: moves to decode when conversation dominates, holds under code, 77–81 % vs 45 % before) |
| W6 | optimal with mixed types per role, profiles calibrated from live runs, DistServe/HexGen-2-style baselines in the simulator; placement document normative (rm-core v0.1.2, §5.4) |
engine #50 |
| W7 | same-budget baselines: replication best goodput/card at 2 cards, PD best tok/J (1.17), calibrated optimal 1P+2D 100 % SLO at 3 cards; RNGD→ATOM limited by the ATOM decode graph (108 ms/token) |
furiosa-llm vendor baseline done (same goodput/card and tok/J as solo, lower latency; furiosa-llm has no PD); conversation ×1 repeated 3–5 times per layout (repeated runs: the ordering holds, PD 1P+1D tok/J 1.06 in every run, but its attainment ranges 25.5–98.0 %); A100 same-budget row measured (A100: vLLM on one A100 meets the SLO at 1.51 req/s per card, 0.67 tok/J, below every 2-card RNGD row on tok/J) |
| Item | Blocked by | Ready on the software side | What unblocks it |
|---|---|---|---|
| Cross-node KV over RDMA (#46) | The NPU nodes have no RDMA device. Their NICs are Intel X550/X710 10GBASE-T with no RDMA. The 10G ports have no link, so all traffic goes over one 1 GbE port: 0.117 GB/s per direction, ~0.8 s per 67 MB request. | rngd-pd nixl-ucx transport (rngd-pd#13): NIXL READ over UCX between registered host buffers. RDMA is a UCX_TLS change. Cross-node over UCX-TCP: byte-exact, link-bound like tcp (0.085 GB/s one request). |
(a) RoCE v2 / InfiniBand NICs on both NPU nodes plus switch configuration (25 GbE ~2.9 GB/s). (b) Cable the existing 10G ports: ~1.1 GB/s, no RDMA, the cheapest step past the simulator's 0.15–0.25 GB/s break-even. (c) Soft-RoCE rdma link add by an admin, for a functional check of the verbs path only. |
Progress is tracked in the hub's Plane project (modules W1–W7) and summarized in status.