AI Wikis / Agentic Web
The Evolution of AI Runtimes: From Monolithic Inference Engines to Heterogeneous, Stateful Operating Systems
Report summary
The traditional conceptualization of an Artificial Intelligence (AI) runtime—a static software layer responsible for loading a model, executing a tensor graph, and returning an output—is undergoing a radical transformation. As large language models (LLMs), multimodal foundation models, and autonomou
Key topics
- AI Wikis / Agentic Web
- AI Wikis
- Agentic Web
- AI
- AI Memory
- .NET
- Python
- Runtime
- Rust
Research provenance
For citation, use the report title and canonical URL. Archival presence does not establish authorship or promote report statements into portfolio evidence.
This page renders the archived Markdown as safe, formatted HTML. It is background research and does not become a portfolio claim without evidence review.
Full report
On this page
The traditional conceptualization of an Artificial Intelligence (AI) runtime—a static software layer responsible for loading a model, executing a tensor graph, and returning an output—is undergoing a radical transformation. As large language models (LLMs), multimodal foundation models, and autonomous agents scale in complexity, the hardware and software systems required to serve them have fundamentally fractured. The monolithic inference engine is being replaced by a highly segmented, distributed, and stateful execution architecture. Modern AI runtimes must now dynamically partition workloads across heterogeneous processors, manage colossal memory states across distributed Compute Express Link (CXL) clusters, maintain persistent agentic reasoning loops over extended temporal horizons, and guarantee cryptographic confidentiality for data in use. The runtime interface is shifting from a simple function of model \+ input \+ device \= output to a complex orchestration of task \+ context \+ policy \+ service-level objective, wherein the runtime autonomously selects models, tools, memory placement, precisions, and security boundaries to yield an audited result and an updated state.
1. Defining the AI Runtime Stack and Current Typologies
An AI runtime is the foundational software layer that executes AI workloads. Depending on its specific scope within the deployment pipeline, a runtime may be tasked with model loading and compilation, tensor and kernel execution, processor selection (CPU, GPU, NPU), memory and Key-Value (KV) cache management, token scheduling, or the enforcement of agent state permissions and guardrails. Because the term "runtime" is heavily overloaded in systems engineering, it is most accurately understood through a layered architectural view:
| Architectural Layer | Functional Responsibility |
|---|---|
| Application / Agent Runtime | Manages stateful control loops, tool invocation, long-term memory, and reasoning guardrails. |
| Serving / Distributed Scheduling Runtime | Orchestrates batching, request routing, scaling, and disaggregated execution across clusters. |
| Model Execution Runtime | Handles the generation of tokens, tensor parallel execution, and KV-cache allocation. |
| Compiler / Intermediate Representation | Translates high-level model graphs into hardware-specific optimized representations. |
| Hardware Driver / Accelerator Runtime | Maximizes physical silicon performance via operation fusion, quantization, and memory planning. |
A robust production system rarely relies on a single runtime; rather, it composes several types simultaneously to bridge the gap from application logic to silicon execution. The current ecosystem is dominated by eight primary runtime families, each tailored to specific operational requirements.
| Runtime Family | Primary Responsibility | Common Examples |
|---|---|---|
| Framework-Native | Flexible model development, automatic differentiation, training, and dynamic experimentation. | PyTorch eager/compiled, TensorFlow, JAX/XLA |
| Distributed Training | Coordinating massive training jobs via tensor, pipeline, sequence, and optimizer-state parallelism. | DeepSpeed, PyTorch FSDP, Megatron |
| Portable Inference | Executing hardware-independent exported models across heterogeneous hardware backends. | ONNX Runtime, IREE |
| Hardware-Optimized | Maximizing throughput via vendor-specific kernel selection, graph optimization, and fusion. | TensorRT, Core ML, OpenVINO |
| Generative-Model | Scheduling token generation, continuous batching, and managing dynamic KV-cache contexts. | vLLM, TensorRT-LLM, LiteRT-LM |
| Model-Serving | Exposing execution engines as production services with load balancing, routing, and scaling. | Triton Inference Server, KServe |
| Edge, Mobile, and Tiny | Ensuring low-power, low-memory, privacy-preserving offline execution on local silicon. | ExecuTorch, LiteRT, WebNN |
| Agent | Executing model–tool loops featuring state memory, handoffs, and resumable execution. | OpenAI Agents SDK, LangGraph |
While these existing families form the bedrock of AI deployment, the rapid expansion of model context windows, agentic autonomy, and heterogeneous hardware constraints are forcing the development of entirely new runtime paradigms. Future runtimes will not discard these categories but will instead synthesize model engines, workflow engines, and operating-system concepts into unified platforms.
2. Datacenter-Scale Disaggregated Inference Operating Systems
The conventional approach to LLM serving colocates two fundamentally distinct computational phases—prompt prefill and token decoding—on the same hardware instance1. The prefill phase processes the entire input prompt in a single, highly parallel forward pass. This phase saturates tensor cores and is heavily compute-bound2. Conversely, the decoding phase generates output tokens sequentially. It is severely bottlenecked by memory bandwidth, as it must repeatedly read the accumulated KV cache while leaving arithmetic logic units largely idle2. Colocating these phases introduces a destructive phenomenon known as head-of-line blocking or compute interference. A long prompt arriving for prefill will monopolize the GPU's compute resources, stalling the memory-bound decode operations of all other requests residing in the continuous batch. This interference directly degrades the Time Per Output Token (TPOT) and induces severe token jitter, undermining strict Service Level Objectives (SLOs)1.
2.1 The Mechanics of Prefill-Decode Disaggregation
To resolve this interference, modern distributed runtimes such as DistServe and Splitwise physically separate these phases across distinct GPU pools, treating the entire accelerator cluster as one logical machine1. Disaggregation allows prefill nodes to be optimized for compute density—potentially utilizing hardware architectures with less expensive memory, such as GDDR7, or differing accelerator classes entirely—while decode nodes are exclusively optimized for memory capacity and bandwidth, requiring high-tier HBM3e3. The decoupling of these phases introduces a novel scheduling challenge: the extensive KV cache generated by the prefill worker must be transmitted across the network to the decode worker before autoregressive generation can commence1. In production environments, this requires a sophisticated orchestration layer. Systems like NVIDIA Dynamo treat prefill and decode workers as elastically scalable entities, unifying them through a KV-aware router, an event plane, and a high-speed transport plane8.
2.2 KV-Aware Routing and Workload Placement
The performance of a disaggregated architecture hinges heavily on intelligent, cache-aware request routing. The Dynamo router evaluates incoming requests using a precise cost function that balances cache locality against immediate worker load10. When a request arrives, the router queries the event plane to determine which decode workers already possess fragments of the prompt's KV cache. The selection logic calculates a routing score based on the formula: [Figure omitted from source export]2. If a worker already caches 90% of the required prompt, its prefill block penalty approaches zero, and the router prioritizes it for execution2. For continuous multi-turn agentic workflows, requests are routed based on prefix novelty6. Entirely novel prompts are directed to compute-heavy prefill nodes. However, continuation requests—where the vast majority of the context is already established—are routed directly to the decode nodes holding the prior state, bypassing the prefill pool entirely6. Furthermore, runtimes must execute network-aware placement algorithms; to minimize the latency of KV cache transfer, planners frequently force prefill and decode segments of the same request to colocate on a single physical node, allowing the transfer to ride high-speed intra-node NVLink interconnects rather than slower Ethernet fabrics2.
2.3 The Transfer Bottleneck and KVCache-Centric Architectures
While disaggregation eliminates compute interference, it transforms the architecture into a network-bound system. Transferring a 128K-token context's KV cache can consume tens of gigabytes, overwhelming standard data center fabrics and severely inflating the Time to First Token (TTFT)6. To mitigate this, architectures like Mooncake have pioneered the "KVCache-centric" serving model. Mooncake utilizes the underexploited CPU, DRAM, and NVMe SSD resources distributed across a GPU cluster to establish a massive, hierarchical, disaggregated KV cache pool8. By acting as a global shared memory layer, Mooncake allows any prefill worker to hand off state to any decode worker seamlessly. It relies on a specialized Transfer Engine utilizing RDMA (Remote Direct Memory Access) for zero-copy GPU-to-GPU transfers, which also successfully decouples compute-intensive multimodal encoders (like Vision Transformers) from the core LLM inference nodes13. In this framework, the static binding of KV caches to specific GPU workers is broken, unlocking global cache reuse and elastic expert parallelism for Mixture-of-Experts (MoE) architectures15.
2.4 Lossless KV Compression and Adaptive Transport Optimization
Even with RDMA, inter-cluster bandwidth limitations necessitate profound data compression. Frameworks have emerged to shrink the KV cache payload prior to network transit, drastically reducing the required transport time:
- SplitZip: A GPU-friendly lossless compressor that exploits the extreme mathematical redundancy found in the BF16 exponent field of KV activations16. Analysis reveals that the exponent entropy of common LLMs is remarkably low, ranging only from 2.89 to 3.59 bits16. SplitZip uses a pre-calibrated Top-16 fixed-length codebook to encode frequent exponents into 4-bit codes, routing rare exponents to a sparse escape stream16. By utilizing a regular dense path and avoiding the sequential CPU overhead of traditional Huffman coding, SplitZip achieves compression throughputs of 613.3 GB/s and decompression throughputs of 2181.8 GB/s directly on the GPU17.
- KVServe: Recognizing that static compression configurations fail to adapt to fluctuating network bandwidths, changing Service Level Objectives, and variable workload mixes, KVServe introduces an adaptive, service-aware framework20. Utilizing a Bayesian Profiling Engine, it dynamically searches and recomposes compression strategies at runtime. This modular approach optimizes the transport payload dynamically, yielding up to a 9.13× speedup in Job Completion Time (JCT) under heavily contested network conditions20.
| Characteristic | Monolithic Serving | Network-Disaggregated Serving | KVCache-Centric Disaggregation |
|---|---|---|---|
| Compute Interference | High (Prefill blocks decode) | Eliminated (Phases physically isolated) | Eliminated (Phases physically isolated) |
| Scaling Granularity | Symmetrical (GPU bound) | Asymmetrical (Prefill vs. Decode pools) | Highly Asymmetrical \+ Storage Tiers |
| KV Cache Locality | Bound strictly to local GPU | Transferred Point-to-Point (RDMA/TCP) | Pooled across hierarchical remote storage |
| Primary Bottleneck | GPU HBM Capacity | Network Bandwidth & Latency | Fabric Latency & Cache Misses |
3. Memory-Centric AI Runtimes and CXL Architecture
The exponential growth of LLM context windows—rapidly scaling toward millions of tokens—has triggered a critical hardware crisis known as the "Memory Wall"12. At a 1M-token context length, a single user's KV cache can easily consume over 335 GB of state, exceeding the combined VRAM of four high-end H100 80GB SXM GPUs dedicated to nothing but working memory21. Traditional distributed computing circumvents this capacity limit by passing data over network fabrics, but the serialization, protocol overhead, and latency of network-attached memory fundamentally stifle real-time generative AI throughput22. The Compute Express Link (CXL) protocol, built upon the PCIe physical layer, presents a paradigm-shifting alternative. CXL establishes cache-coherent, byte-addressable shared memory pools across multiple host systems with near-DRAM latency profiles (200-500 nanoseconds)12. The introduction of the CXL 4.0 specification—featuring PCIe 7.0 signaling at 128 GT/s, PAM4 encoding, and bundled ports aggregating multiple physical connections into logical attachments delivering up to 1.5 TB/s of bandwidth—makes rack-scale, multi-terabyte AI memory pooling physically and economically viable12.
3.1 Overcoming Software Limitations for CXL-Enabled KV Cache
By migrating the KV cache out of local GPU VRAM and into a CXL-attached shared memory pool, AI runtimes are transitioning from network-centric routing algorithms to memory-centric sharing protocols. Systems like TraCT (Rack-Scale CXL Shared Memory KV Cache) prove the profound utility of this hardware4. In a CXL-backed disaggregated setup, a prefill GPU writes the newly computed KV cache directly into the global CXL memory pool using standard vectorized load/store semantics via GPU-CXL DMA (Direct Memory Access)4. A decode GPU on an entirely different host can immediately read that memory as if it were local DRAM, completely bypassing the Network Interface Card (NIC), the TCP/IP stack, and intermediary host bounce buffers4. However, realizing this vision requires complex runtime software engineering because current CXL Type-3 devices lack native cross-host atomic operations and full-device hardware cache coherence22. TraCT rebuilds these synchronization guarantees from scratch in software. It implements a two-tiered lock mechanism utilizing local DRAM locks and global shared-memory lock arrays to bound contention, executes fine-grained software-managed coherence disciplines, and introduces a shared object directory that functions without relying on non-portable shared pointers4. Through these mechanisms, TraCT reduces average TTFT by up to 2.6× and improves peak goodput by 1.9× compared to optimized RDMA-based baselines on real-world conversational workloads22.
3.2 Sparse Attention and Processing-Near-Memory (PNM)
The CXL architecture enables extraordinary optimizations for next-generation sparse attention models (e.g., DeepSeek-V3, GLM-5). Traditional RDMA systems suffer from the "Local Memory Wasting" problem: the entire massive KV cache must be prefetched into local GPU memory, even though sparse attention actively utilizes only a tiny fraction (the top-k entries) of the cache per layer, severely limiting request batch sizes23. The SAC (Sparse Attention on CXL) runtime architecture capitalizes on CXL's fine-grained, cache-line-granularity access. In this model, the full KV cache remains strictly within the disaggregated CXL pool. During token decoding, custom swap-in kernels dynamically execute lightweight memory reads to fetch only the required top-k entries on demand, bypassing complex buffer management23. By leveraging a locality-transparent, layer-first memory layout, SAC reduces TTFT by 9.7× and achieves 2.1× higher throughput compared to RDMA baselines23. Taking this paradigm to its ultimate conclusion, the Processing-Near-Memory (PNM-KV) architecture actively inverts the Von Neumann bottleneck. Instead of moving massive blocks of token data across the PCIe bus to the GPU to calculate attention scores, PNM systems offload the token page selection and attention calculations to specialized accelerators embedded directly within the CXL memory controller24. By processing the data exactly where it resides, hybrid GPU-PNM architectures (PnG-KV) reduce energy per token by up to 60× and elevate total throughput by 21.9× for extreme million-token context windows, establishing a new scalability standard for non-eviction LLM frameworks27.
4. Persistent Agent Operating Systems
While disaggregated inference engines and CXL memory pools are designed to efficiently execute stateless tensor graphs, the application layer of AI is rapidly evolving toward stateful, autonomous agents. These agents require runtimes that govern long-term memory, capability-based tool permissions, human approval boundaries, and workflow recovery. The transition from simplistic sequential prompts to cyclical, non-deterministic agent control loops necessitates the adoption of Persistent Agent Operating Systems29.
4.1 The Agent OS Abstraction: Letta versus Evermind
Frameworks like Letta (derived from the MemGPT research project) conceptualize the LLM context window as analogous to a CPU's working memory (RAM), orchestrating system calls to page critical information in and out of external storage30. Under this OS-inspired architecture, the agent actively manages its own state through three hierarchical memory tiers:
- Core Memory: A highly curated, in-context block representing immediate working memory. The agent reads and explicitly rewrites this block via tool calls to dynamically update its persona, its objectives, or specific user preferences30.
- Recall Memory: A time-series database of conversational history, accessible via semantic or temporal search tools, functioning similarly to a disk cache31.
- Archival Memory: Boundless external cold storage (such as vector or graph databases) that the agent must query via explicit tool invocation31.
Because Letta delegates memory storage decisions directly to the LLM's reasoning loop (active memory extraction), the agent can theoretically curate highly relevant, self-determined relationships. However, this self-editing mechanism presents a reliability gap; if the model hallucinates, becomes distracted, or simply fails to invoke a memory-save tool, the context is permanently lost30. Furthermore, the system burns significant inference tokens merely to operate its own memory management33. Conversely, systems like Evermind (EverOS) and Mem0 employ a passive, background perception loop. They act as independent memory layers that ingest conversation streams, automatically extract facts, and consolidate them into structured semantic themes (MemScenes) without consuming the primary agent's limited tool-calling budget30. This separation of concerns ensures that state consistency is maintained independently of the LLM's transient reasoning quality33.
4.2 Durable Execution and Workflow Orchestration: Kitaru and LangGraph
Agent reasoning is inherently unreliable, prone to crashing, API rate limits, pod evictions, or getting trapped in infinite tool-use loops. Therefore, the runtime layer must provide durable execution—the ability to freeze, resume, and replay states without re-executing completed operations. LangGraph implements short-term memory via checkpointers (saving graph state snapshots per thread) and long-term memory via key-value stores34. Production deployments require robust persistence layers, such as DynamoDBSaver, which securely persist workflow snapshots to Amazon DynamoDB, enabling time-travel debugging, failure resumption, and safe pauses for human-in-the-loop review29. General-purpose durable runtimes like Kitaru elevate this by acting as an orchestration layer specifically shaped for Python AI agents35. Kitaru draws a strict architectural boundary: the "harness" (e.g., Pydantic AI, LangChain, Claude Agent SDK) governs how the agent behaves and prompts, while the "runtime" governs how the agent survives and recovers37. Through simple decorators like @flow and @checkpoint, Kitaru isolates the "runner" (the durable brain recording checkpoint order and handling state) from the "execution target" (the hands running the actual code in a Kubernetes job or sandbox)37. If an execution target dies mid-process, the runner retains the state. Upon restart, the runtime replays the sequence, returning cached artifacts for completed checkpoints rather than triggering redundant, expensive LLM inferences37. Furthermore, Kitaru intercepts LangGraph interrupt() commands, converting graph-local pauses into durable, infrastructure-level wait states (kitaru.wait()) that release physical compute resources entirely while waiting for asynchronous human authorization or webhook triggers35.
| Architectural Layer | Letta (Agent OS) | LangGraph (DynamoDB) | Kitaru Runtime |
|---|---|---|---|
| State Persistence | Core, Recall, Archival paging | Graph state & thread checkpointers | Checkpoint artifacts & replay logs |
| Memory Extraction | Active self-editing via tool calls | Developer-defined routing | Automatic per-checkpoint capture |
| Fault Recovery | Framework internal loops | Resumes from last graph node | Resumes from last @checkpoint |
| Human-in-the-Loop | Handled via message queues | Pauses graph state locally | Releases compute infrastructure fully |
| Framework Lock-in | High (Requires complete runtime rewrite) | High (Requires graph formulation) | Low (Wraps existing SDKs via decorators) |
5. Universal Heterogeneous Runtimes and Retargetable Compilers
As AI runtimes seek to route tasks seamlessly across highly heterogeneous hardware topologies (spanning CPUs, GPUs, TPUs, NPUs, DSPs, and FPGAs), the bottleneck shifts from the inference code itself to the underlying compiler infrastructure. A monolithic, vendor-locked compiler (e.g., targeting exclusively CUDA) fractures the deployment ecosystem and fails to capitalize on available low-power edge accelerators39. The industry is rapidly converging around the Multi-Level Intermediate Representation (MLIR), an extensible compiler infrastructure housed within the LLVM project39. MLIR abandons the rigid, one-size-fits-all intermediate representation in favor of a dialect-driven abstraction approach40. Models authored in PyTorch or JAX are imported into high-level dialects (e.g., torch, tfl), lowered into middle-end mathematical representations (e.g., Linalg for linear algebra, TOSA for standard operations), and progressively optimized through hardware-specific backends42.
5.1 IREE and the Stream Dialect for Dynamic Partitioning
The IREE (Intermediate Representation Execution Environment) leverages MLIR to deliver a retargetable runtime spanning from embedded microcontrollers to datacenter clusters42. Rather than forcing developers to manually partition workloads across discrete devices, IREE utilizes the stream dialect to model asynchronous execution sequences45. During ahead-of-time (AOT) compilation, IREE assigns execution affinities, mapping logical operations to hardware queues based on resource configuration flags45. Because the compiler retains visibility over the entire program graph, it seamlessly performs aggressive cross-boundary optimizations like operator fusion, memory hoisting, constant evaluation, and data-tiling across disaggregated physical devices using mechanisms like the LayoutMaterializerAttr interface44. At runtime, the Hardware Abstraction Layer (HAL) dispatches these streams to the appropriate processing units, achieving dynamic partitioning without requiring hardcoded, brittle synchronization logic from the user43. This retargetable architecture is foundational for highly constrained edge scenarios. Frameworks like ExecuTorch and Roofline's SDK use similar progressive lowering techniques to convert dynamic PyTorch graphs into strictly bounded, AOT memory-planned FlatBuffers executed by tiny runtimes on DSPs and wearables, ensuring energy-efficient edge deployment without rewriting the underlying application42.
6. Embodied AI and Real-Time Robotics Runtimes
Transitioning AI from the datacenter into the physical world—into autonomous mobile robots (AMRs), drones, and humanoid systems—introduces what is known as the "Deployment Gauntlet"46. Cloud inference systems are heavily optimized for massive batch sizes and high average throughput. Conversely, embodied AI operates inherently at a batch size of one, prioritizing worst-case execution time, safety validation, and hard real-time deadlines under strict Size, Weight, and Power (SWaP) constraints46.
6.1 The Unified Memory Bottleneck and the Limits of PagedAttention
On heterogeneous edge System-on-Chips (SoCs) like the NVIDIA Jetson AGX Orin or Apple M-series, the CPUs, GPUs, NPUs, and direct memory access (DMA) engines share a unified memory architecture (LPDDR channels)46. When a multi-billion-parameter Vision-Language-Action (VLA) policy continually streams weights for inference, it directly contends with high-frequency, uncompressed sensor streams (e.g., 4K cameras, LiDAR voxelization) for limited memory bandwidth46. This unified memory contention is exacerbated by the execution granularity of mobile GPUs. Transformer decoding decomposes into hundreds of fine-grained kernels. On embedded systems, the CPU-side kernel launch overhead can exceed the actual execution time, accounting for up to 60% of end-to-end latency during autoregressive decoding46. Mainstream LLM serving infrastructures (e.g., vLLM, SGLang) attempt to mitigate state management via PagedAttention or RadixAttention, which rely on dynamic block-table indirection to manage KV memory48. However, this block-table indirection causes memory fragmentation and prevents the entire forward pass from being treated as a single, self-contained, rapidly freezable execution state48.
6.2 Execution-State Capsules and FlashRT
To circumvent the kernel launch overhead and indirection of traditional serving frameworks, specialized latency-first robotics runtimes like FlashRT treat the entire forward computation (including attention, recurrent folds, and convolution states) as a single compiled graph plan operating over a closed set of contiguous, static, and named device buffers48. This contiguous buffer design enables the creation of Execution-State Capsules48. FlashRT snapshots the complete execution boundary—freezing the positional KV cache, the recurrent state (essential for hybrid state-space models to prevent immediate divergence), the Multi-Token Prediction (MTP) states, and all related metadata into a singular binary capsule48. When a robot resets an episode, branches a reasoning tree to evaluate multiple future states, or hands off a plan to a low-level actor, FlashRT restores this capsule via a highly optimized, bandwidth-bound memory copy48. Re-entering a complex environmental state requires merely copying the capsule bytes and replaying the captured graph, bypassing the compute-bound prompt re-evaluation phase entirely48. This structural exactness yields TTFT speedups of up to 27× over cold prefill on an RTX 5090, establishing a necessary low-latency execution floor for responsive physical-AI48.
6.3 Zero-Copy Dataflow and Deterministic Middleware
Surrounding the neural inference engine, the broader robotics stack must execute deterministic control and perception. Standard middleware such as the Robot Operating System 2 (ROS 2\) often introduces unpredictable latency through serialization, priority inversion, and callback interference during inter-process communication46. To eliminate this, modern dataflow-oriented architectures like dora-rs implement true zero-copy shared memory communication using the Rust programming language and the Apache Arrow format52. By sharing memory pointers rather than serializing and copying payloads across boundaries, dora-rs connects AI inference nodes, camera drivers, and actuation controllers with sub-microsecond latency52. It maintains a bidirectional bridge with ROS 2 (via rosrust or r2r), allowing legacy node ecosystems to interoperate seamlessly with modern, high-speed neural dataflows55. Furthermore, real-time remote telemetry, dataset recording, and human-in-the-loop teleoperation are handled by low-overhead networking crates like XoQ, which bypass standard TCP constraints by streaming data directly into the browser or cloud training clusters using WebTransport, QUIC, and fragmented MP4 (CMAF) formats56.
7. Confidential and Attested Execution Runtimes
The deployment of LLMs in highly regulated sectors (finance, healthcare, defense) introduces severe data privacy risks. Standard cloud environments expose sensitive prompts, proprietary model weights, and intermediate KV states to the host operating system, the hypervisor, and potentially malicious cloud infrastructure operators57. Confidential Computing addresses this by migrating AI execution into hardware-backed Trusted Execution Environments (TEEs)57. A TEE utilizes a dedicated memory encryption engine within the processor. Data is encrypted while in transit and at rest, and is decrypted exclusively within the silicon boundary of the CPU or GPU core during actual computation, shielding it from administrative access57.
7.1 The Architecture of OpenPcc and Cryptographic Attestation
OpenPcc represents a breakthrough in open-source, confidential Cloud Inference Services (CIS), establishing a secure runtime leveraging commodity hardware such as Intel TDX (Trust Domain Extensions) for CPUs and NVIDIA's Confidential Computing (CC) mode for H100 GPUs60. The OpenPcc architecture is designed around three strict privacy guarantees: end-to-end encryption, absolute non-retention of intermediate data, and remote attestation verifiable by the end-user independently of the cloud provider60. The execution flow proceeds through rigorous cryptographic stages:
- Hardware-Rooted Attestation: When a client initiates a session, a stateless confidential gateway routes the request to an inference node60. The node queries the CPU and GPU for cryptographic evidence of their secure state, including firmware digests, measurement roots, and debug flags62.
- Public Key Committing: Crucially, the inference node generates an Elliptic-Curve Diffie-Hellman (ECDH) key pair inside its isolated Confidential Virtual Machine (CVM). It embeds its public key directly into a user-definable field in the CPU TEE's measurement report (specifically, the tdx.tdx\_report\_data field for Intel TDX). A third-party composite verifier hashes this data along with a freshness nonce, and issues a signed JSON Web Token (JWT)60.
- Client Verification and Cryptographic Binding: The client verifies the JWT signature against the silicon vendor's root certificate. Because the public key is hashed into the hardware attestation, the client performs a key-binding check. It is mathematically guaranteed that the key belongs to an untampered, genuine TEE, thwarting any hypervisor-level Man-in-the-Middle (MitM) attacks62.
- Secure Execution and Wiping: The client derives a secure session key via HKDF-SHA384 and encrypts the prompt using AES-256-GCM62. Inside the TEE, the AI runtime processes the data, taking specific operational precautions (such as running vLLM with the \--enforce-eager flag to bypass CUDA graph pre-capture sequences that conflict with the hardware's memory encryption initialization on NVIDIA CC nodes)63. Once the response is generated, all decrypted prompts, per-request session keys, and plaintext KV-cache entries are securely wiped from memory to guarantee data non-retention60.
By intertwining the inference runtime with cryptographic attestation, OpenPcc shifts the root of trust entirely away from cloud infrastructure operators, ensuring data confidentiality while introducing only a single-digit percentage latency overhead to the GPU forward pass60.
8. Continuous Learning and LLMOps Orchestration
As AI models are deployed into dynamic production environments, their static nature becomes a distinct liability. Over time, models suffer from concept drift (when real-world operating conditions diverge from training distributions), data drift, tone inconsistency, and an increasing rate of factual hallucinations64. Maintaining deployment accuracy necessitates integrating the AI runtime into a broader LLMOps (Large Language Model Operations) and AgentOps ecosystem designed for continuous evaluation and adaptation66.
8.1 Managing Compound AI Systems and Drift Detection
In 2026, production AI is rarely a solitary model; it is a "Compound AI System" comprising foundation models, fine-tuned adapters, routing logic, retrieval-augmented generation (RAG) vector stores, specific toolchains, and safety guardrails67. LLMOps runtimes monitor the health of this entire composite lifecycle. Unlike traditional MLOps—which evaluates predictive accuracy against explicit labels—LLMOps must track open-ended, non-deterministic generative outputs. Advanced systems utilize Bayesian methods, statistical variance tracking, and automated LLM-as-a-judge pipelines to score outputs based on factual consistency, structural integrity, hallucination rates, and semantic context relevance64. When drift is detected via vector embedding shifts or plunging relevance scores, the orchestration pipeline triggers automated remediation loops64. This includes invoking Continuous Integration/Continuous Deployment (CI/CD) workflows that dynamically retrain domain-specific adapters (LoRA) or feature stores on the freshest data window, without waiting for manual human intervention68.
8.2 Automated Rollbacks and Execution Tracing
Safety and reliability remain paramount in continuous deployment. If a newly deployed prompt template, system instruction, or fine-tuned adapter degrades performance, the orchestration layer utilizes A/B testing, canary releases, and shadow deployments to limit the operational blast radius69. Should the error rate cross a critical threshold, the runtime executes an automated rollback to the last verified, stable checkpoint69. Within an AgentOps framework, execution tracing provides granular visibility into an agent's multi-step planning, capturing exactly where an agent became trapped in a reasoning loop, selected an inappropriate tool, or suffered an unparseable response, facilitating rapid iterative debugging67.
9. Sparse, Modular, and Neuromorphic Execution
The future of AI execution extends beyond monolithic dense tensors. Runtimes are increasingly adapting to sparse, modular, and fundamentally novel hardware architectures to maximize efficiency. Instead of loading one colossal model, modular-model runtimes dynamically select and route requests through specific Mixture-of-Experts (MoE) components, domain-specific adapters, and small specialist models. This expert parallelism, already an early feature in frameworks like TensorRT-LLM and managed effectively by KVCache-centric systems like Mooncake, ensures that only the minimal required parameters are activated for any given task, drastically reducing compute overhead15. At the bleeding edge of efficiency, event-driven and neuromorphic runtimes represent a radical departure from conventional processing. Instead of repeatedly executing dense matrix multiplications on clock cycles, neuromorphic runtimes process asynchronous events or "spikes" only when relevant activity occurs in the data stream. While still an experimental category, applications powered by Intel's Loihi architecture and the Lava software abstraction layer show profound potential for always-on sensing, adaptive robotic control, and ultra-low-power edge intelligence.
Conclusion and Practical Selection Guide
The era of static, monolithic AI inference has definitively ended. The architecture of modern AI execution is diversifying rapidly, shaped by the distinct physical, computational, and security realities of its deployment environments. In the datacenter, runtimes are evolving into distributed, memory-centric systems where prefill-decode disaggregation, CXL-backed shared memory pools, and lossless KV-cache compression completely bypass the limits of single-GPU capacities. At the application layer, stateful operating systems like Letta and Kitaru are taming the chaotic, non-deterministic nature of LLM reasoning by imposing durable execution, pausing, and structural memory persistence. In regulated sectors, OpenPcc and hardware TEEs ensure cryptographic confidentiality, shifting the root of trust back to the user. Meanwhile, at the edge, runtimes like FlashRT trade the high-throughput batching of the cloud for sub-millisecond, graph-bound state capsules, enabling the deterministic, real-time control necessary for embodied robotics. The most consequential future AI runtime is therefore not simply a faster inference engine; it is a stateful, distributed, policy-aware execution environment. To navigate this complex landscape, engineers must map their specific operational requirements to the appropriate runtime abstraction.
| Requirement | Runtime Category to Prioritize | Key Technologies & Frameworks |
|---|---|---|
| High-Throughput Generative APIs | Generative runtime \+ Serving runtime | vLLM, TensorRT-LLM, Triton |
| Multi-Node Generative Inference | Distributed Disaggregated Inference | Dynamo, DistServe, SGLang, Mooncake |
| Long-Running Tool-Based Automation | Agent runtime \+ Durable workflow engine | Letta, Kitaru, LangGraph, Temporal |
| Offline, Real-Time, or Private Edge | Edge/Mobile runtime \+ Latency-First | ExecuTorch, FlashRT, dora-rs |
| Highly Sensitive Models & Prompts | Confidential & Attested runtime | OpenPcc, Intel TDX, NVIDIA CC-GPU |
| Cross-Platform Heterogeneous Deployment | Portable Retargetable Compiler | IREE, MLIR, ONNX Runtime |
| Continuous Production Adaptation | LLMOps / AgentOps Pipeline | MLflow, CI/CD Retraining, Drift Monitors |
By synthesizing hardware acceleration, memory disaggregation, execution durability, and continuous adaptation, modern AI runtimes provide the comprehensive operating systems required to manage the increasingly autonomous and complex nature of artificial intelligence.
Works cited
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving \- arXiv, https://arxiv.org/html/2401.09670v2
- Disaggregated Inference, Part 1: When & Where to Route \- Momento Cache, https://www.gomomento.com/blog/disaggregated-inference-part-1-when-and-where-to-route/
- Disaggregated Inference: How NVIDIA, AWS, and Cerebras Are Rethinking LLM Inference, https://www.amcompute.com/blog/disaggregated-inference
- TraCT: Disaggregated LLM Serving with CXL Shared Memory KV Cache at Rack-Scale \- arXiv, https://arxiv.org/pdf/2512.18194
- Splitting LLM inference across different hardware platforms \- Gimlet Labs, https://gimletlabs.ai/blog/multivendor-prefill-decode-disaggregation
- Prefill-Decode Disaggregation on GPU Cloud: Split LLM Inference for 2x Throughput (2026 Guide) | Spheron Blog, https://www.spheron.network/blog/prefill-decode-disaggregation-gpu-cloud/
- Why RDMA KV Cache Transfer Broke in Kubernetes | by Owumi Festus \- Medium, https://medium.com/@owumifestus/why-rdma-kv-cache-transfer-broke-in-kubernetes-dd31fd66fe9a
- Disaggregated Inference: 18 Months Later | Hao AI Lab @ UCSD, https://haoailab.com/blogs/distserve-retro/
- Overall Architecture | NVIDIA Dynamo Documentation, https://docs.nvidia.com/dynamo/design-docs/overall-architecture
- Scaling multi-node LLM inference with NVIDIA Dynamo and NVIDIA GPUs on AKS (Part 3), https://blog.aks.azure.com/2026/03/16/dynamo-on-aks-part-3
- Disaggregated Prefill-Decode: The Architecture Behind Meta's LLM Serving \- Jarvis Labs, https://jarvislabs.ai/blog/llm-optimization-disaggregated-prefill-decode
- CXL 4.0 Infrastructure Planning Guide: Memory Pooling for AI at Scale \- Introl, https://introl.com/blog/cxl-4-0-infrastructure-planning-guide-memory-pooling-2025
- Welcome to Mooncake, https://kvcache-ai.github.io/Mooncake/
- Disaggregation | NVIDIA Dynamo Documentation, https://docs.nvidia.com/dynamo/dev/backends/sg-lang/disaggregation
- Mooncake Joins PyTorch Ecosystem, https://pytorch.org/blog/mooncake-joins-pytorch-ecosystem/
- SplitZip: Ultra Fast Lossless KV Compression for Disaggregated LLM Serving \- arXiv, https://arxiv.org/html/2605.01708v2
- SplitZip: Ultra Fast Lossless KV Compression for Disaggregated LLM Serving \- arXiv, https://arxiv.org/pdf/2605.01708
- SplitZip: Ultra Fast Lossless KV Compression for Disaggregated LLM Serving \- arXiv, https://arxiv.org/html/2605.01708v1
- \[2605.01708\] SplitZip: Ultra Fast Lossless KV Compression for Disaggregated LLM Serving, https://arxiv.org/abs/2605.01708
- KVServe: Service-Aware KV Cache Compression for Communication-Efficient Disaggregated LLM Serving \- Hugging Face, https://huggingface.co/papers/2605.13734
- The KV Cache Is Killing Your LLM at Scale — Here's the Low-Level Physics Nobody Talks About \- Medium, https://medium.com/@adityaj5400/the-kv-cache-is-killing-your-llm-at-scale-heres-the-low-level-physics-nobody-talks-about-b577c4c7549e
- Disaggregated LLM Serving with CXL Shared Memory KV Cache at Rack-Scale \- VTechWorks, https://vtechworks.lib.vt.edu/bitstreams/fb5697b4-124d-4dca-be49-dab91e3e0c2a/download
- SAC: Disaggregated KV Cache System for Sparse Attention LLMs with CXL \- arXiv, https://arxiv.org/html/2606.19746
- CXL 4.0 Infrastructure Planning Guide: Memory Pooling for AI at Scale \- Introl, https://introl.com/blog/cxl-4-0-infrastructure-planning-guide-ai-memory-pooling-2025
- Disaggregated LLM Serving with CXL Shared Memory KV Cache at Rack-Scale, https://vtechworks.lib.vt.edu/items/8facd7f3-67eb-46e4-82bc-95395de06350
- TraCT: Disaggregated LLM Serving with CXL Shared Memory KV Cache at Rack-Scale, https://www.semanticscholar.org/paper/TraCT%3A-Disaggregated-LLM-Serving-with-CXL-Shared-KV-Yoon-Min/249dc64f1049cd60727cce237b8aff4bcb4e5d6d
- Scalable Processing-Near-Memory for 1M-Token LLM Inference: CXL-Enabled KV-Cache Management Beyond GPU Limits \- IEEE Computer Society, https://www.computer.org/csdl/proceedings-article/pact/2025/829500a001/2cuFAqQ8avm
- \[2511.00321\] Scalable Processing-Near-Memory for 1M-Token LLM Inference: CXL-Enabled KV-Cache Management Beyond GPU Limits \- arXiv, https://arxiv.org/abs/2511.00321
- Build durable AI agents with LangGraph and Amazon DynamoDB | AWS Database Blog, https://aws.amazon.com/blogs/database/build-durable-ai-agents-with-langgraph-and-amazon-dynamodb/
- Mem0 vs Letta (MemGPT): AI Agent Memory Compared (2026) \- Vectorize, https://vectorize.io/articles/mem0-vs-letta
- Hindsight vs Letta (MemGPT): Agent Memory Compared (2026) \- Vectorize, https://vectorize.io/articles/hindsight-vs-letta
- Agent Memory: How to Build Agents That Learn and Remember \- Letta, https://www.letta.com/blog/agent-memory/
- Best Letta Alternatives for AI Agent Memory in 2026: A Comprehensive Comparison, https://evermind.ai/blogs/letta-alternative
- Persistence \- Docs by LangChain, https://docs.langchain.com/oss/python/langgraph/persistence
- Your LangGraph agent works. Now make the workflow durable. \- ZenML Blog, https://www.zenml.io/blog/langgraph-durable-runtime
- Kitaru vs Temporal: Durable execution, built for AI agents \- ZenML, https://www.zenml.io/compare/kitaru-vs-temporal
- Durable Runtime for Pydantic AI Agents, https://pydantic.dev/articles/runtime-layer-pydantic-ai-kitaru
- GitHub \- zenml-io/kitaru: Open-source platform layer for AI agents in production, https://github.com/zenml-io/kitaru
- Integrating Quantum Software Tools with(in) MLIR \- arXiv, https://arxiv.org/html/2601.02062v1
- An MLIR-based Compilation Framework for CGRA Application Deployment \- Infoscience \- EPFL, https://infoscience.epfl.ch/server/api/core/bitstreams/60b6cc4e-5ad5-4197-bf65-8af66d731894/content
- A MLIR Dialect for Quantum Assembly Languages \- OSTI, https://www.osti.gov/servlets/purl/1862113
- Compiling AI Workloads for On-Device Inference on Heterogeneous Systems using MLIR | DVCon Proceedings, https://dvcon-proceedings.org/wp-content/uploads/134-Compiling-AI-Workloads-for-On-Device-Inference-on-Heterogeneous-Systems-using-MLIR.pdf
- MLIR CodeGen Dialects for Machine Learning Compilers \- Lei.Chat(), https://www.lei.chat/posts/mlir-codegen-dialects-for-machine-learning-compilers/
- Data-Tiling in IREE: Achieving High Performance Through Compiler Design \- LLVM, https://llvm.org/devmtg/2025-06/slides/technical-talk/wang-data-tilling.pdf
- Implement initial affinity support for multiple queues. · Issue \#10765 · iree-org/iree \- GitHub, https://github.com/openxla/iree/issues/10765
- Embodied Foundation Models at the Edge: A Survey of Deployment Constraints and Mitigation Strategies \- arXiv, https://arxiv.org/html/2603.16952
- FlashRT: realtime small-batch inference for VLA / embodied AI models, https://discuss.huggingface.co/t/flashrt-realtime-small-batch-inference-for-vla-embodied-ai-models/176212
- Execution-State Capsules Graph-Bound Execution-State Checkpoint and Restore for Low-Latency, Small-Batch, On-Device Physical-AI Serving \- arXiv, https://arxiv.org/html/2606.20537
- \[Literature Review\] Execution-State Capsules: Graph-Bound Execution-State Checkpoint and Restore for Low-Latency, Small-Batch, On-Device Physical-AI Serving \- Moonlight, https://www.themoonlight.io/en/review/execution-state-capsules-graph-bound-execution-state-checkpoint-and-restore-for-low-latency-small-batch-on-device-physical-ai-serving
- FlashRT: Execution State for Latency-First AI | StartupHub.ai, https://www.startuphub.ai/ai-news/ai-research/2026/flashrt-execution-state-for-latency-first-ai
- LLM inference & training breakthroughs \- Scouts by Yutori, https://scouts.yutori.com/90682481-7a5e-4099-a9ab-7520bb83921a
- List of AI tools for robotics \- Grokipedia, https://grokipedia.com/page/List\_of\_AI\_tools\_for\_robotics
- Fosdem 26: Future of Gazebo, https://fosdem.org/2026/events/attachments/8HTRVV-a\_core\_developers\_insights\_on\_gazebos\_future/slides/266796/fosdem\_26\_ycnlven.pdf
- Rust is for Robotics | robotics.rs, https://robotics.rs/
- ROS Message Format Compatibility Layer · Issue \#1231 · dora-rs/dora \- GitHub, https://github.com/dora-rs/dora/issues/1231
- XoQ — Rust utility // Lib.rs, https://lib.rs/crates/xoq
- Confidential Computing, Secure Enclaves, and Attestation \- RAND, https://www.rand.org/pubs/tools/TLA4174-1/ai-security/appendixes/appendix-a/confidential-computing-etc.html
- OpenPCC: Open and Confidential LLM Serving on Commodity TEEs \- arXiv, https://arxiv.org/pdf/2606.11145
- What Is Confidential Computing? TEEs, Attestation & AI Security | Ultraviolet, https://www.ultraviolet.rs/solutions/confidential-computing
- OpenPcc: Open and Confidential LLM Serving on Commodity TEEs \- arXiv, https://arxiv.org/html/2606.11145v1
- Build a measured LLM inference environment on a heterogeneous confidential instance, https://help.aliyun.com/en/egs/use-cases/build-a-secure-deepseek-inference-environment-on-gn8v-tee-related-instances
- \[Literature Review\] OpenPCC: Open and Confidential LLM Serving on Commodity TEEs, https://www.themoonlight.io/en/review/openpcc-open-and-confidential-llm-serving-on-commodity-tees
- Confidential GPU Computing on Cloud: Deploy LLMs with NVIDIA TEE and Encrypted VRAM for Regulated Workloads (2026 Guide) | Spheron Blog, https://www.spheron.network/blog/confidential-gpu-computing-nvidia-tee-encrypted-vram/
- LLM Monitoring & Drift Detection Guide | Metrics, Tools & Examples \- Leanware, https://leanware.co/insights/llm-monitoring-drift-detection-guide
- AI Model Drift Monitoring: Enterprise Guide to Continuous Evaluation \- Agility at Scale, https://agility-at-scale.com/ai/generative/continuous-evaluation-and-drift-monitoring/
- MLOps Roadmap \[2026\]: A Complete MLOps Career Guide \- Scaler, https://www.scaler.com/blog/mlops-roadmap/
- The Complete MLOps/LLMOps Roadmap for 2026: Building Production-Grade AI Systems, https://medium.com/@sanjeebmeister/the-complete-mlops-llmops-roadmap-for-2026-building-production-grade-ai-systems-bdcca5ed2771
- ML Lifecycle Management Explained for Engineers \- MLflow, https://mlflow.org/articles/ml-lifecycle-management-explained-for-engineers/
- What Is MLOps, How to Implement It, Examples \- Dysnix, https://dysnix.com/blog/what-is-mlops
- Achieve generative AI operational excellence with the LLMOps maturity model | Microsoft Azure Blog, https://azure.microsoft.com/en-us/blog/achieve-generative-ai-operational-excellence-with-the-llmops-maturity-model/
- The Complete Guide to MLOps, AIOps, LLMOps, and AgentOps | by NJ Raman \- Medium, https://medium.com/@nraman.n6/the-complete-guide-to-mlops-aiops-llmops-and-agentops-544ff89e5ee1