What Kimi K3 asks of the hardware
Reading the Kimi K3 announcement from the systems side. How linear attention changes the KV-cache budget, what 896 experts mean for the interconnect, and why the model ships in MXFP4.
Machine learning systems, from the metal up
Low-level ML explanations, implementation notes, debugging stories, and the occasional sharp edge worth remembering.
Reading the Kimi K3 announcement from the systems side. How linear attention changes the KV-cache budget, what 896 experts mean for the interconnect, and why the model ships in MXFP4.
Q8_0 to IQ1_S and everything in between. Block layouts, scale hierarchies, codebooks, the importance matrix, and the mixed recipes used by llama.cpp, Unsloth, and DwarfStar.
The GRPO config is small. The hard part is keeping rollout workers, trainers, rewards, and policy versions in the same story.
I wrote a fused Lion optimizer step with Hugging Face kernels, packaged it with kernel-builder, and tested it on CUDA and Metal/MPS.
A quick look to Google's new quantization method, with a bit of drama
You already know what a language model does. Let's reverse-engineer how.
In our latest article, we explored Data Parallelism.
In my latest article , I discussed the theoretical memory usage needed for inference and training with LLMs, highlighting the memory cost of each component involved in the process.
Picture this: you’re about to deploy a shiny new 70-billion parameter language model, and your colleague asks the dreaded question: “How much GPU memory do we need?”.
We all know that GPU programming is hard.
In the vast landscape of machine learning, few architectures have captured the imagination and transformed the field as profoundly as the Transformer. Like a master anatomist approaching a complex organism, we must carefully dissect each component to understand how this remarkable architecture breathes life into modern AI systems.
Today’s article steps back from our usual technical deep-dives to examine the strategic importance of ML optimization.
As humans, we perceive space and time as a seamless, continuous flow.
Undoubtedly, one of the most critical aspects of machine learning is understanding the theory—without grasping how machines learn, you’ll never excel as an ML Surgeon!
You can take a look at the GitHub repository of this blogpost at this link
In under 10 minutes, you’ll discover what RAG is, how to build a prototype for it in Python, and—most importantly—the true weight of the infamous Mr. Fat Raccoon.
Being a Machine Learning Surgeon is not an easy life.
If you want to learn how to write a CUDA kernel for matrix multiplication, look no further!
Just as a surgeon needs to understand anatomy, knowing GPU architecture is key to writing efficient kernels. You don’t need to be a hardware expert—just grasp the basics to unlock their full potential
CUDA enables developers to harness NVIDIA GPUs for general-purpose tasks. This article guides you to a "Hello, World!" program as a starting point.
Sparsity is a solution to reduce the number of parameters and number of operations in Neural Networks, granting outstanding computational speedups and memory savings during inference.