<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>samankeon.com</title><description>Saman Keon on LLM efficiency, quantization, inference, and GPU kernels.</description><link>https://samankeon.com/</link><item><title>RoPE: The Phase Geometry Behind Long-Context Transformers</title><link>https://samankeon.com/blog/rope-the-phase-geometry-behind-long/</link><guid isPermaLink="true">https://samankeon.com/blog/rope-the-phase-geometry-behind-long/</guid><description>How rotating query and key vectors turns absolute position into relative attention</description><pubDate>Sat, 06 Jun 2026 00:00:00 GMT</pubDate></item><item><title>From Greedy to Nucleus, How LLMs Choose the Next Token</title><link>https://samankeon.com/blog/from-greedy-to-nucleus-how-llms-choose/</link><guid isPermaLink="true">https://samankeon.com/blog/from-greedy-to-nucleus-how-llms-choose/</guid><description>Decoding algorithms and sampling techniques explained</description><pubDate>Mon, 22 Dec 2025 00:00:00 GMT</pubDate></item><item><title>Matmul</title><link>https://samankeon.com/blog/matmul/</link><guid isPermaLink="true">https://samankeon.com/blog/matmul/</guid><description>A tiled CUDA matmul kernel with shared-memory caching, benchmarked against Torch.</description><pubDate>Mon, 01 Dec 2025 00:00:00 GMT</pubDate></item><item><title>2D Workloads</title><link>https://samankeon.com/blog/2d-workloads/</link><guid isPermaLink="true">https://samankeon.com/blog/2d-workloads/</guid><description>Mapping images onto CUDA thread blocks: row-major memory, 2D indexing, and a grayscale conversion kernel.</description><pubDate>Sat, 22 Nov 2025 00:00:00 GMT</pubDate></item><item><title>Fused Softmax::P3::Cuda Kernel</title><link>https://samankeon.com/blog/softmax-kernel-3/</link><guid isPermaLink="true">https://samankeon.com/blog/softmax-kernel-3/</guid><description>A CUDA softmax kernel taken from a naive per-row loop to shared memory, float4 loads, and warp-shuffle reductions.</description><pubDate>Sun, 16 Nov 2025 00:00:00 GMT</pubDate></item><item><title>Fused Softmax::P2::Triton optimization</title><link>https://samankeon.com/blog/softmax-kernel-2/</link><guid isPermaLink="true">https://samankeon.com/blog/softmax-kernel-2/</guid><description>Debugging a Triton softmax that falls off a cliff at large row sizes, and what block size has to do with it.</description><pubDate>Sun, 09 Nov 2025 00:00:00 GMT</pubDate></item><item><title>Fused Softmax::P1::Naive &amp; Triton Implementation</title><link>https://samankeon.com/blog/softmax-kernel-1/</link><guid isPermaLink="true">https://samankeon.com/blog/softmax-kernel-1/</guid><description>Softmax in Torch and a first Triton kernel, starting from the numerically stable formulation.</description><pubDate>Sun, 02 Nov 2025 00:00:00 GMT</pubDate></item><item><title>Vector Addition::P4::Optimizing</title><link>https://samankeon.com/blog/add-kernel-4/</link><guid isPermaLink="true">https://samankeon.com/blog/add-kernel-4/</guid><description>Vectorized memory access and a grid-stride loop bring the CUDA vector-add kernel up to Triton and Torch speed.</description><pubDate>Sun, 26 Oct 2025 00:00:00 GMT</pubDate></item><item><title>Vector Addition::P3::Benchmarking</title><link>https://samankeon.com/blog/add-kernel-3/</link><guid isPermaLink="true">https://samankeon.com/blog/add-kernel-3/</guid><description>Benchmarking the CUDA, Triton, and Torch vector-add kernels on a GTX 1080, RTX 5060, A100, and H100.</description><pubDate>Sun, 12 Oct 2025 00:00:00 GMT</pubDate></item><item><title>Vector Addition::P2::Cuda Kernel</title><link>https://samankeon.com/blog/add-kernel-2/</link><guid isPermaLink="true">https://samankeon.com/blog/add-kernel-2/</guid><description>The same vector addition written in raw CUDA: grids, blocks, threads, and host-to-device memory transfer.</description><pubDate>Sun, 05 Oct 2025 00:00:00 GMT</pubDate></item><item><title>Vector Addition::P1::Triton Kernel</title><link>https://samankeon.com/blog/add-kernel-1/</link><guid isPermaLink="true">https://samankeon.com/blog/add-kernel-1/</guid><description>A first Triton kernel: vector addition, with pointers, blocks, and masking explained line by line.</description><pubDate>Sun, 28 Sep 2025 00:00:00 GMT</pubDate></item><item><title>The Command Line is Learning to Talk</title><link>https://samankeon.com/blog/the-command-line-is-learning-to-talk/</link><guid isPermaLink="true">https://samankeon.com/blog/the-command-line-is-learning-to-talk/</guid><description>A deep dive into Gemini CLI, Claude CLI, and the rise of shell-native AI agents.</description><pubDate>Tue, 16 Sep 2025 00:00:00 GMT</pubDate></item><item><title>Breaking the Quadratic Barrier</title><link>https://samankeon.com/blog/breaking-the-quadratic-barrier/</link><guid isPermaLink="true">https://samankeon.com/blog/breaking-the-quadratic-barrier/</guid><description>An Engineer&apos;s Guide to the Attention Hacks Behind Million-Token LLMs</description><pubDate>Tue, 09 Sep 2025 00:00:00 GMT</pubDate></item><item><title>Attention Isn&apos;t All You Need. You Also Need a Memory Budget</title><link>https://samankeon.com/blog/attention-isnt-all-you-need-you-also/</link><guid isPermaLink="true">https://samankeon.com/blog/attention-isnt-all-you-need-you-also/</guid><description>An Engineer&apos;s Guide to GQA and FlashAttention: The Hacks That Tamed the Transformer&apos;s Memory Problem</description><pubDate>Tue, 02 Sep 2025 00:00:00 GMT</pubDate></item><item><title>From Word2Vec to BERT: The Evolution of Language Embeddings</title><link>https://samankeon.com/blog/from-word2vec-to-bert-the-evolution/</link><guid isPermaLink="true">https://samankeon.com/blog/from-word2vec-to-bert-the-evolution/</guid><description>How we taught machines to understand not just words, but the meaning behind them</description><pubDate>Tue, 26 Aug 2025 00:00:00 GMT</pubDate></item><item><title>From Brute Force to Finesse: The Story of Parameter-Efficient Fine-Tuning (PEFT)</title><link>https://samankeon.com/blog/from-brute-force-to-finesse-the-story/</link><guid isPermaLink="true">https://samankeon.com/blog/from-brute-force-to-finesse-the-story/</guid><description>How we learned to teach billion-parameter titans new tricks without rebuilding their minds</description><pubDate>Tue, 19 Aug 2025 00:00:00 GMT</pubDate></item><item><title>RAG: Giving LLMs an External Brain</title><link>https://samankeon.com/blog/rag-giving-llms-an-external-brain/</link><guid isPermaLink="true">https://samankeon.com/blog/rag-giving-llms-an-external-brain/</guid><description>From keyword search to semantic retrieval, the journey to grounding models in reality</description><pubDate>Tue, 12 Aug 2025 00:00:00 GMT</pubDate></item><item><title>How MoE Powers Modern LLMs</title><link>https://samankeon.com/blog/how-moe-powers-modern-llms/</link><guid isPermaLink="true">https://samankeon.com/blog/how-moe-powers-modern-llms/</guid><description>Inside the Architecture That Trains Billion-Scale Models Without Breaking the Bank</description><pubDate>Wed, 06 Aug 2025 00:00:00 GMT</pubDate></item><item><title>Continuous Batching: The Secret Sauce of High-Throughput LLM Inference</title><link>https://samankeon.com/blog/continuous-batching-the-secret-sauce/</link><guid isPermaLink="true">https://samankeon.com/blog/continuous-batching-the-secret-sauce/</guid><description>Why batching in real-time matters, and how vLLM uses it to maximize GPU utilization.</description><pubDate>Tue, 29 Jul 2025 00:00:00 GMT</pubDate></item></channel></rss>