Radar ·
Building an LLM inference engine from scratch to study vLLM and SGLang
An account of an LLM inference engine built from scratch, with each optimization in a separate git commit, rising from 150 to 2143 tok/s on an RTX 3060, about 98% of the peak throughput of vLLM and SGLang.
According to the source, the author built an LLM inference engine from scratch and recorded each optimization in a separate git commit. They report throughput rising from 150 to 2143 tok/s on an RTX 3060, about 98% of the peak throughput of vLLM and SGLang. The material is a commit-by-commit walkthrough showing where throughput gains come from in LLM serving, with measurements in tok/s.
This is a serving-engineering study, not a tutorial about Rota Nacional. To verify the numbers, read the original repository and compare its commit history with the measurements cited. The source text does not, in this summary, detail the model, batch size or configuration of each test. Anyone using AI to study this material should not paste personal data, credentials or production excerpts into their questions.
Original source: Criando um motor de inferência de LLM do zero para estudar vLLM e SGLang
Using AI with customer data?
Mask CPF, CNPJ, CNS, CRM, names and medical records before any AI. Test live with no login.