All projects

LLM infrastructure / Observability

KVWatch.

See what’s holding
your inference back.

I built KVWatch at Cerio to make LLM bottlenecks visible: from live latency and throughput to the KV cache held by individual requests. Three levels of detail help engineers move from a quick health check to a closer investigation.

KVWatch Overview with current throughput, windowed latency, draft acceptance, KV-cache pressure, and GPU VRAM allocation Open full dashboard
Overview · Live serving metrics, time windows, and memory pressure. Open for full resolution.

Three levels of visibility

Start with the signal.
Follow it to the request.

Overview surfaces the essentials. Diagnostics connects performance history to active requests. Deep Dive exposes the cache layout and serving configuration behind the numbers.

  • TTFT, token throughput, and speculative acceptance
  • Physical VRAM and reserved KV capacity, kept distinct
  • Request-level memory and model-specific cache groups

01 / In summary

What I built, and why.

The visibility gap

GPU utilization and request counts don’t tell the whole story. Engineers needed to see which requests held KV-cache capacity and compare memory pressure, queues, and health across nodes.

My contribution

I built a vLLM scheduler plugin, a per-node dashboard, a Python fleet CLI, and a Confluence status view. Together, they connect internal serving state with live GPU and inference metrics.

The result

An interface that connects a performance symptom to its context: current load, recent trends, memory allocation, and individual requests. Supporting fleet tools extend the same visibility to the terminal and wiki.

02 / Under the hood

From scheduler to fleet view.

  1. 01 / Observe

    Inside the scheduler

    A read-only plugin captures physical cache pools, request context, and token counters.

    vLLM V1 AsyncScheduler

  2. 02 / Enrich

    Connect the metrics

    Combine scheduler snapshots with GPU telemetry, serving metrics, and startup logs.

    NVML + Prometheus

  3. 03 / Collect

    Bring nodes together

    Poll nodes in parallel and maintain a cached fleet snapshot for shared access.

    Python + HTTP endpoints

  4. 04 / Diagnose

    Meet engineers where they work

    Expose health, capacity, and throughput in the dashboard, CLI, and wiki.

    Web + terminal + Confluence

Scheduler integration & deployment details

No vLLM fork: KVWatchScheduler subclasses the V1 AsyncScheduler through its plugin interface and delegates scheduling to vLLM. Immutable snapshots expose physical pools, hybrid cache groups, request-level block references, and parallelism through a read-only HTTP endpoint.

Example serving configuration: The screenshots show vLLM 0.28.0 serving Qwen3.8-27B SmoothQuant W8A8 INT8 with DFlash2 speculative decoding and a 262,144-token context limit. The dashboard reports the actual topology on each node.

Fleet collection: A zero-dependency Python CLI queries nodes in parallel. For the wiki view, a background collector maintains one cached snapshot; viewers read that cache instead of triggering additional requests to every inference node.

03 / In depth

The right detail, when you need it.

Overview / Check the pulse

See readiness, active and waiting requests, current token throughput, TTFT, and memory pressure. Select a time window for latency percentiles, prefix-cache hits, and speculative-decoding acceptance.

Diagnostics / Follow the trend

Compare request activity, latency, throughput, cache occupancy, and GPU utilization over time. Inspect the VRAM breakdown and open an active request to see its token counts and cache footprint.

Deep Dive / Inspect the engine

Explore cache groups, physical blocks, page sizes, and runtime parallelism. Inspect acceptance by draft position and export status or history for further investigation.

An expanded request drawer showing state, elapsed time, prompt and generated tokens, context usage, unique physical blocks, KV footprint, and cache managers Inspect a request ↗
From an active request to its memory footprint · Context usage, unique physical blocks, shared references, and cache-group payloads.

04 / Engineering decisions

Useful when conditions change.

Read-only observation

The plugin observes serving state and leaves scheduling decisions to vLLM. Telemetry is designed to stay separate from the work of running inference.

Resilient collection

Nodes report online, partial, or offline health. Collection failures preserve the last known snapshot and surface the error, keeping gaps in the data visible.

Metrics with context

Current token rates are separate from window averages. Memory breakdowns distinguish measured, estimated, and derived values; per-position draft acceptance makes its denominator explicit.

Validation, benchmarks & parallelism edge cases

Hardware-free integration tests: Mock HTTP servers reproduce KVWatch and Prometheus payloads, including changing counters. Coverage includes health states, stale-data reconciliation, load-score boundaries, throughput calculations, and ANSI-safe CLI alignment.

Serving benchmarks: A companion vLLM benchmark harness controls prompt length, output length, concurrency, and request count. It saves run settings and results, with opt-in GPU and NVLink telemetry for performance experiments.

Data-parallel port reservation: Each rank needs its own telemetry endpoint. Reserving ports before server binding avoids collisions between concurrently starting rank processes.