Writing an LLM inference loop
A ground-up look at tokenization, logits, temperature, softmax, and next-token sampling.
Production Engineer at Meta · Bay Area
Systems, software & clear thinking
I’m a Production Engineer at Meta in the Bay Area. I write from first principles about Linux, distributed systems, infrastructure, and AI.
01 / Journal
A ground-up look at tokenization, logits, temperature, softmax, and next-token sampling.
Why LLM inference separates prompt processing from token-by-token generation.
Notes on purpose, hope, and what remains when circumstances strip almost everything else away.
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.