Pablo Fernandez πŸ§‰ (@pupeno) header
Pablo Fernandez πŸ§‰ (@pupeno) profile picture

Head of Engineering for Pexels at Canva. Ex Google. Writes about AI, coding, management, tech, business, and geeky stuff.

London, UK
Joined September 2008
Send vLLM the exact same prompt twice with prefix caching on, and the second one starts answering about five times faster. Once it starts, though, the answer comes out at the same speed. The cache skips re-reading the prompt, not writing the reply.
4
19
I also tried changing a single token of the prompt. Change the very first one and the cache is useless. Here's why, plus the rest of my first week with vLLM: wp.me/pzxz5-6s0
5
I thought KV caching was an optimization that was turned on, but in vLLM, there's actually no way to turn it off. When I hacked a way to simulate it I learned why: a tiny request took 6.3 seconds with caching and 83.3 seconds without it.
1
31
This is not what I normally imagine an optimization is, this is almost like a different algorithm. The full story of my first week with vLLM, with every experiment: wp.me/pzxz5-6s0
7
It looks like the final version of "Build a DeepSeek Model (from scratch)β€œ is out already! I only just finished the reasoning model now. Not much of a break lol
1
70
As I'm starting to learn CUDA programming I'm giddy with excitement at working with building blocks that are different that the ones I've been using. This reminds of learning Erlan, Smalltalk, Lisp, or even OOP for the first time ages ago.
1
2
148
Finished "Build a Reasoning Model (from scratch)". Does "Build a DeepSeek Model (from scratch)" complete the trilogy? I think I'll read it once it's more finished, although I already bought the MEAP.
35
Hey Manning. Could you generated the ebooks with code syntax highlighting like you have on your live books? @ManningBooks
1
2
169
I just finished reading Inference Engineering. I think for my next book I want something closer to CUDA. I'm curious about it.
1
40
If I worked for Slack, I would implement an archive with countdown feature. You archive a channel and it has a 5 day countdown (configurable) in which someone can object. If nobody does, it gets archived automatically.
1
73
Understanding is one of the greatest pleasures in life. At least for me (whether it's my vLLM experiments or watching some all Smarter Every Day episodes).
51
Even though priority doesn't affect how each step is constructed in vllm (AFAIK), it does affect which request gets preempted when there's KV pressure.
1
2
92
I just published a blog post about by first week of learning vLLM, the experiments, the charts, what I learned, it's all here: pablofernandez.tech/2026/11/…
60
Given a constant stream of higher priority requests, in vllm, the lower priority one could have to wait for a long time. I wonder if this is what "batch" is when using the OpenAI and other APIs like that, that have interactive and batch (there's probably more to it than that).
1
52
Today I learned about vLLM priority for requests. It does affect which request gets picked up next (first chart), but doesn't affect how the scheduler chooses which tokens to run in each step (second chart).
2
2
137
On today's lesson I was learning the effects of different max token budgets per step in vLLM to time to first token and inter-token latency. In the first chart you can see how prefill takes longer if you want to keep time between tokens down and vice-versa.
3
1
342
The second chart shows the balance between ttft and itl.
20
I'm appalled by the new trend of putting USB-C sockets on devices without implement USB-C, so only a USB-A to C cable works, a USB-C to USB-C doesn't. And there's no way to tell before you purchase these devices. Really annoying.
1
56
I'm starting to understand why you might want to disaggregate prefilling and decoding for LLMs. Prefilling almost feels like a batch process and decoding like an interactive process. One cares about throughput, one cares about latency. Prefilling can mess up latency.
1
1
110