Back to Blog
July 8, 2026Netpreme Team

Accelerating SGLang HiCache with Netpreme X-Mem™ MPU

Netpreme X-Mem™ Memory Processing Unit (MPU) makes SGLang HiCache faster and more scalable by augmenting the slower Host DRAM offload tier with a purpose-built high-bandwidth KV memory tier.

Figure 1 - Netpreme X-Mem as a dedicated KV memory tier for SGLang HiCache
Netpreme X-Mem Fast Memory Tier architecture with GPUs prefetching KV cache from an X-Mem MPU

TL;DR

  • Prefix caching is becoming critical for long-context, agentic, and recommendation-style LLM workloads.
  • SGLang HiCache provides the software foundation for scalable prefix reuse by extending RadixAttention into a hierarchical KV cache with HBM, Host DRAM, and external storage.
  • Netpreme X-Mem™ integrates with SGLang HiCache as a dedicated TB/s KV memory tier.
  • Netpreme X-Mem™ improves Time-to-First-Token (TTFT) by 6.7x compared with Host DRAM-based SGLang HiCache on prefix-heavy workloads.

Why Prefix Caching Needs a Fast Memory Tier

Prefix caching is designed to reduce expensive prefill compute for workloads where requests repeatedly share long, token-identical prompts that only differ in the short last part. SGLang has already built a strong software foundation for prefix reuse with RadixAttention and HiCache. RadixAttention enables efficient prefix caching in GPU memory, while HiCache extends it into a hierarchy beyond GPU HBM.

However, as GPUs become faster, the speed of loading KV cache into the HBM becomes important. To estimate the bandwidth requirement for KV-cache offloading, we model a long-context coding-agent workload with 64K-token prompts and prefill concurrency of 8. As the prefix hit rate increases, residual computation drops quickly, but the amount of KV data fetched from secondary memory grows. When hit rate exceeds 95%, scaling the bandwidth of KV-cache tiering can significantly reduce TTFT.

Figure 2 - High prefix-hit-rate workloads shift the bottleneck toward KV movement
Qwen3-235B-A22B-Thinking-2507 TTFT across KV cache hit rates and aggregate bandwidths

Coding Agents Push Prefix Reuse Above 95%

But is 95% of prefix cache hit rate really practical? Let us look at KV-cache reuse in coding agents, the largest market for AI applications as of today.

To quantify this, we measure prefix-cache hit ratio using traces collected from Claude Code agent while running multi-turn coding workflows on SWE-bench. We observe that the cache-hit ratio consistently exceeds 95% in subsequent rounds for the same session, with the mean hit ratio being around 98%. In this regime, scaling KV-caching bandwidth beyond what is achievable with Host CPU offloading results in a 3x performance boost.

Figure 3 - Subsequent coding-agent turns show high prefix-cache reuse
Cache hit rate across turn index for coding-agent tasks with different difficulty levels

Netpreme X-Mem: A Dedicated KV Tier for SGLang HiCache

Netpreme X-Mem™ MPU is a purpose-built solution to expand GPU memory by tens of TB over fast network fabrics. Conceptually, X-Mem™ is a dedicated memory node in the AI rack, peer-to-peer to all other GPUs. A single memory node comes with up to 24 TB of memory accessible by all GPUs in the same rack at 4 TB/s. There is no limit on how many memory nodes can be provisioned in the rack, and the aggregate bandwidth is multiplied if several MPU nodes are used. On the software side, X-Mem™'s address space is exposed as a part of the unified virtual memory, and semantically it is not any different from accessing a local HBM or remote GPU's memory.

When integrating with SGLang HiCache, Netpreme X-Mem™ performs as a dedicated memory tier for KV cache offload. Instead of using Host DRAM or RDMA as the primary L2 KV cache tier, MPU provides a purpose-built, accelerator-oriented memory tier optimized for KV movement.

This makes X-Mem™ especially useful for workloads with:

  • strict SLO requirements on TTFT;
  • long shared prefixes and high-concurrency sessions;
  • repeated prefill-heavy requests.

Netpreme X-Mem™ integrates SGLang via CUDA- and PyTorch-compatible APIs. These APIs allow any ML application to tap into the high-bandwidth memory tier transparently and with minimal modification of the application code.

If you would like to try it out yourself, contact us to get access to our X-Mem™ pilot.

Benchmarking SGLang + Netpreme X-Mem

We run two experiments, one is a micro-benchmark that measures TTFT of a single request and the other is an end-to-end LLM inference experiment with agentic workloads. Throughout benchmarking, we compare three configurations:

ConfigurationDescription
GPU-only RadixAttentionPrefix caching is disabled. This requires re-computation.
SGLang HiCache + Host DRAMHierarchical cache using Host DRAM as the offload tier.
SGLang HiCache + Netpreme X-Mem™Hierarchical cache using Netpreme MPU, in a 350 GB/s configuration bounded by H100 GPUs, as the offload tier.

X-Mem Flattens TTFT of a Single Request

Figure 4 - Netpreme X-Mem reduces TTFT compared with Host DRAM
SGLang HiCache with Netpreme X-Mem TTFT compared with recompute and Host DRAM offload

The result shows that Netpreme's MPU reduces single request TTFT by up to about 6.7x compared to Host DRAM, making it almost flat even under very long context.

X-Mem Increases Interactivity and System Capacity

How does the above TTFT reduction translate into improvements in end-to-end LLM inference? To answer this question, we run the end-to-end LLM serving benchmark, NVIDIA AIPerf. We use workloads that represent agentic AI inference, consisting of 1K tokens of system prompt and 20K tokens of per-user context. Each user inputs 26 tokens in a single turn, and the average number of turns is 20. Solid points indicate Pareto-optimal points; shaded points indicate non-Pareto-optimal ones.

Figure 5 - AIPerf shows higher interactivity and capacity with X-Mem
SGLang HiCache with X-Mem end-to-end throughput compared with Host DRAM

The result demonstrates that Netpreme's X-Mem™ provides 33% higher TPS/user, which corresponds to interactivity, in a medium-load case and 50% higher interactivity and 30% higher TPS, which corresponds to system capacity, in a high-load case. This is because the GPU is utilized more efficiently, spending less time waiting for data to be copied on prefix cache hits.

Looking Ahead

As coding agents, long-context assistants, and recommendation systems grow, serving systems will need to preserve and move much larger KV working sets. To this end, Netpreme will facilitate:

  • Larger persistent KV stores with MPU and SSDs
  • Multi-instance KV sharing
  • Near-memory KV compression
  • Near-memory computation

The long-term vision for Netpreme is to provide a full-stack memory solution for agentic workloads. This includes not only KV cache but also model weights, activations, embeddings, and other data structures. By providing a high-performance memory tier optimized for ML workloads, Netpreme enables new software architectures and optimizations that are not possible with traditional Host DRAM and GPU HBM.

Conclusion

SGLang already provides a strong software foundation for prefix caching. RadixAttention and HiCache make it possible to reuse KV cache across long-context, multi-turn, and prefix-heavy workloads. But as prefix caching becomes more effective, the bottleneck shifts.

The challenge is no longer only finding reusable prefixes. It is moving cached KV back to GPU memory fast enough so that reuse delivers real latency and throughput improvement.

Host DRAM-based offload increases capacity, but its PCIe-level bandwidth can become the limiting factor for KV-intensive inference, especially when TTFT SLO is tight. Netpreme X-Mem™ addresses this bottleneck by providing SGLang HiCache with a high-bandwidth purpose-built KV memory tier.

Together, SGLang HiCache and Netpreme X-Mem™ make prefix caching faster and more scalable for the next generation of LLM workloads, including coding agents, long-context assistants, and recommendation systems.

Acknowledgments

We thank the SGLang team for their constructive technical discussions and guidance throughout this integration.

References

Appendix

Evaluation setup

  • GPU: a single H100-class GPU
  • KV memory tier size: 64 GB (Host DRAM or Netpreme X-Mem™)
  • CUDA Version: 12.8
  • Attention backend: FlashAttention
  • GPU prefix caching: disabled to evaluate a local KV cache miss that hits in X-Mem™
  • Model: Qwen3-30B-A3B-Instruct-2507-FP8

Workloads

  • Single request TTFT benchmarking: a modified version of the vLLM KVConnector benchmarking script (blog, code).
  • End-to-end throughput benchmarking: AIPerf from the NVIDIA Dynamo team.
  • Number of users: 15
  • QPS across all users: [2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5]
  • Shared system prompt: 1000 tokens
  • Per-user context: 20000 tokens
  • Per-turn query: 26 tokens
  • Per-turn output length: 100 tokens