logoalt Hacker News

kgeist • today at 4:23 AM • 0 replies • view on HN

If a single vLLM instance handles both prefill and decode without disaggregation, I can think of another way.

Alice reads a long document every N seconds to transmit a 1, and does nothing to transmit a 0. Bob, in its own loop, measures the time using bash, generates some random text and writes it to a file, and then checks the time again to estimate its own tokens per second (file length / elapsed time).

The trick is that when a vLLM instance handles both prefill and decode, decoding slows down measurably because vLLM has to alternate between prefill and decode phases.

It assumes only 2 agents are running, though, but it doesn't require fine-tuning or a second helper model.