Writing an LLM inference loop
A ground-up look at tokenization, logits, temperature, softmax, and next-token sampling.
I’m a Production Engineer at Meta in the Bay Area, and I write to make complex systems easier to understand.
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.