Kv-Cache

Shared KV Cache Across Two DGX Spark Units: Valkey Cluster, Local SSD, and P2P Options

Shared KV Cache Across Two DGX Spark Units: Valkey Cluster, Local SSD, and P2P Options

10 min read

Two NVIDIA DGX Spark units running independent vLLM instances have a blind spot: vLLM’s prefix cache is per-node. A request landing on spark-2 cannot reuse the KV cache blocks that spark-1 already computed for the same prompt prefix. Every node cold-starts its own KV cache, so repeated prompts and multi-turn conversations pay the prefill penalty on every hop.

This post documents how to share KV cache across both DGX Spark nodes using LMCache, a standalone KV cache layer for LLM inference. It compares three native storage backends — a Valkey cluster on both nodes, local SSD per node, and direct P2P transfer over the ConnectX-7 NIC — with no custom Python or dispatcher code required.

vLLM Scheduling: How Throughput and Latency Trade Off in Shared Inference

vLLM Scheduling: How Throughput and Latency Trade Off in Shared Inference

11 min read

At 9 in the morning Alice asks the office’s local model to summarize yesterday’s meeting, and the answer streams back faster than she can read it. By 10 the whole team has found the thing. Same GPU, same model — and now everyone’s replies stutter and stall. Something ran out. The hard part is telling what.

The short version: the GPU is being shared, and vLLM’s scheduler is good at the sharing part. What usually decides how many people fit is memory space, and long conversations eat most of it. That also tells you which targets to pick for a personal assistant, an office tool, or a customer-facing app.