mini-vLLM

A serving loop you can take apart.

Mock LLM · simulated compute · no GPU

Serving terminal

Simulated clock
KV blocks used
Preemptions

From the lab to vLLM

What you see here Maps to vLLM Meaning
Running / waiting vllm:num_requests_running
vllm:num_requests_waiting
Execution batch and queued requests.
KV occupancy vllm:kv_cache_usage_perc A ratio: 1 means full, not 1 percent.
Token budget --max-num-batched-tokens Prefill and decode tokens scheduled per iteration.
Recompute preemption vllm:num_preemptions Free KV under pressure; recompute on resumption.

The browser implements a small scheduling model, not vLLM itself. It omits GPU kernels, real tokenization, prefix caching and distributed execution. See vLLM metrics ↗ and V1 scheduling and tuning ↗.

Try a pressure scenario

Use a small pool to observe eviction, re-prefill and block reuse.

preset pressure → step 10 → inspect req-03

Type help for commands. Arrow keys recall command history.

Continue in a notebook

Run the actual CPU mini-vLLM scheduler, inspect block tables and compare batching policies.

Download notebook ↓

Python, no model weights or GPU. The notebook installs a pinned revision of the mini-vLLM package.

View notebook source ↗