What are you looking for ?
VergeIO
RAIDON

Xinnor Demonstrates Scaling On-Premises AI Coding with Shared NVMe KV Cache

Wishing to move up in the IO stack

Xinnor has developed and validated an inference architecture for demanding AI coding workloads in on-premises environments. On-premises AI inference helps create a secure environment for AI agents while keeping corporate data and costs under the company’s control.Our validation demonstrates how an optimized KV cache architecture can substantially reduce the cost of local inference, cutting GPU costs by nearly 3x.

By adapting the open-source Mooncake KV cache management system and integrating it with shared NVMe storage powered by xiRAID Opus, Xinnor reduced inference replay time by up to 65% on recorded real-world coding-agent workloads, while eliminating the need for an additional 1 TiB reusable host-RAM cache or buying additional GPU nodes.

AI coding agents repeatedly send language models long histories of source code, previous interactions and tool output. When many agents run concurrently, useful KV cache data can be evicted from GPU memory and even large RAM caches, forcing the GPUs to process the same context again. The cached prefix must also be recomputed when a session moves to another GPU node, unless its KV cache can be transferred or accessed through shared storage.

Xinnor addressed this problem by using xiRAID Opus to build a shared NVMe storage pool from disaggregated SSDs and adapting Mooncake, a widely used open-source KV cache management system developed by Moonshot AI, to retain and restore this data.

Xinnor extended Mooncake with parallel SSD writes, 16 KiB aligned I/O, data-integrity checks and a GPUDirect Storage (GDS) path. Together, these capabilities help optimize the QLC-based KV cache architecture. Xinnor also modified vLLM to enable offloading of hybrid model state. The resulting solution used xiRAID Opus to combine eight 30.72 TB Solidigm D5-P5336 QLC SSDs into a shared NVMe storage pool, connected to the GPU server over a 400 Gb/s RDMA network.

Rather than using synthetic prompts, Xinnor validated the solution with 512 recorded Codex-agent sessions from SWE-bench Pro, totaling 8,192 requests per configuration. The workloads ran on eight NVIDIA B200 GPUs using Qwen3-Coder-480B-A35B-Instruct and the newer NVFP4-quantized Qwen3.8 model, with prompt histories reaching nearly 200,000 tokens.

The results showed why retaining previously computed context matters more than simply adding RAM. For both Qwen3-Coder and Qwen3.8, adding a 1 TiB RAM cache without SSD backing provided virtually no throughput improvement over GPU-only caching. SSD-backed configurations, by contrast, substantially increased throughput, while the GDS path delivered comparable performance without the additional reusable host-RAM cache.

Inference throughput with four KV cache configurations

Across the full replay, SSD-backed caching based on xiRAID Opus and Xinnor’s optimized Mooncake reduced processing time by approximately 38% for Qwen3-Coder and 65% for Qwen3.8, equivalent to throughput improvements of about 1.6× and 2.8×. For Qwen3.8 with GDS, the 99th-percentile time to first token was approximately 7x lower than in the GPU-only baseline. By the final replay turn, 96% of Qwen3.8 input prompt tokens were served through cache reuse rather than recomputation.

“We wanted to understand how to serve many coding agents efficiently on a local GPU cluster, using the kind of long, repeated workloads they actually generate,” said Dmitry Livshits, CEO, Xinnor. “We adapted Mooncake to use a shared NVMe storage pool built with xiRAID Opus and tested it with two large Qwen models. The interesting part is that adding a terabyte of RAM alone barely helped, while keeping the cache on SSDs managed by xiRAID Opus reduced processing time by up to 65%. We could then remove that RAM cache using GDS and keep essentially the same performance.”

The read-heavy KV cache workload was a natural fit for high-capacity Solidigm QLC SSDs. The D5-P5336 drives provided the capacity and read performance needed to retain and restore reusable cache data, helping avoid repeated GPU computation. As agent histories grew, reads increasingly dominated storage activity, while writes declined. Measured write amplification remained close to 1.02 across the tested configurations, aided by 16 KiB-aligned object packing and large sequential writes preserved through xiRAID Opus striping. This indicates little additional physical writing beyond the data submitted to the drives.

The results demonstrate how adapting Mooncake to work with shared NVMe storage can help serve demanding on-premises AI coding workloads, reducing repeated GPU computation and the need for large host-RAM caches.

The full technical article is available here.

Read also :
Articles_bottom
AIC