Technical Notes
Write-ups of small ML systems ideas, with interactive diagrams.
Halving the global KV cache for Gemma 4 K=V with a fused attention kernel
When Keys and Values come from the same projection, we can cache one tensor instead of two and apply RoPE on the fly inside the attention kernel.
A better loss function for fine-tuning without catastrophic forgetting
Coming soon.
Post 3
Coming soon.