From Attention scores to attention outputs
In my previous post, I went through how we take token IDs, convert them into embeddings, project them into Q, K and V, and finally calculate raw attention scores using matrix multiplication.
Writing
In my previous post, I went through how we take token IDs, convert them into embeddings, project them into Q, K and V, and finally calculate raw attention scores using matrix multiplication.
So today i spent my time understanding how does an LLM take normal token values and converts them to attention scores.
A ground-up look at tokenization, logits, temperature, softmax, and next-token sampling.
Why LLM inference separates prompt processing from token-by-token generation.
The process, open-file, and inode tables that sit behind a Linux file descriptor.
An introduction to file descriptors and the interface they provide between a process and the kernel.
Following a Python file write through libc, the kernel, page cache, and storage.
A disciplined way to use targeted output to shrink the search space of a bug.
Practical lessons for keeping long-context agents focused, fast, and useful.
Concrete habits for understanding an unfamiliar codebase with intention.
A tour of goroutines, machine threads, processors, and the Go scheduler.
A first distributed-systems approach to broadcasting a message across every node.
Building the simplest in-memory broadcast service before introducing a distributed network.
Exploring what makes ID generation deceptively difficult across a distributed cluster.
An introduction to how Java virtual threads change the cost and structure of concurrency.
A compact introduction to pages, memory, and page caching in Linux.
A step-by-step look at the boundary between user programs and the Linux kernel.
Core command-line concepts and tools worth keeping in every software engineer’s toolkit.
Short analysis on rate limiters