Jul 1, 2026
•
2 min read
Optimization techniques
+2
To work through your prompt, attention compares every token with every other token. A thousand tokens means a thousand-by-thousand grid of comparisons. Flash attention just refuses to build the grid.
Jun 28, 2026
Best case, several tokens for the price of one. Worst case, slower than doing nothing. And what you're wagering on is how predictable your output is.
Jun 27, 2026
LLM Concepts
I went local to stop letting a company quietly decide things for me. My third command was ollama run. And just like that, something was quietly deciding everything again.
Jun 24, 2026
Pop-up wardrobes, tape-to-stream labs, and story prompts powering this week’s experiments.
Jun 22, 2026
Bigger means slower: more weights to drag out of memory for every token. Want more capability? Pay for it in speed. By now it feels like physics. But there is a hack!
Jun 18, 2026
When I quantized the cache and dropped the context, two numbers got better at once. The wait before the first word, and the speed of the words after it. I filed it under "faster" and moved on.
I did everything the last three posts told me to. Quantized the KV cache down to q8. Dropped the context from maxed-out to 8k. TTFT dropped, tokens per second climbed, the SSD stopped thrashing
+1
The 9B model was 6.6GB. It sat inside the Mac Mini's 16GB of memory with room to spare. So what dragged "hello" down to one word a second?
Jun 14, 2026
How do you put part of a model anywhere? You can't load half a brain. Turns out you can. Because a model isn't one object. It's a stack.
Few day's after I had the Mac Mini running models, I found the setting half the internet argues about: n_gpu_layers. On a gaming PC it's the make-or-break dial. I'd never once touched it.
I typed "hello" and watched the cursor blink. Sixty seconds later, one word came back.