A from-scratch LLM inference engine shows throughput gains step by step
Write-up of an LLM inference engine built from scratch, with each optimization in a separate commit: throughput rose from 150 to 2143 tok/s on an RTX 3060, about 98% of the maximum for vLLM and SGLang.
WRP Consultoria e Informática · Updated1 day ago
Source: Criando um motor de inferência de LLM do zero para estudar vLLM e SGLang (x.com). Text prepared with AI from this source.
What happened and what to do
The author's write-up describes an LLM inference engine built from scratch, with each optimization recorded in a separate git commit. Measured on an RTX 3060, throughput rose from 150 to 2143 tok/s, about 98% of the maximum throughput reached with vLLM and SGLang. The commit-by-commit walkthrough shows where throughput gains come from when serving LLMs, with tok/s measurements at each step.
For a company, the value lies in understanding what drives cost and capacity when serving its own models. In practice, it is worth measuring throughput, latency and GPU memory use before choosing a runtime, and keeping a reproducible benchmark that compares alternatives on the client's own hardware and real workload. It is also possible to assess whether a private inference engine, hosted on the client's infrastructure, meets demand without relying on external services.
How the consultancy can help
Diagnosis of the current inference workload, with throughput, latency and memory measurements on the client's hardware, followed by design and deployment of a private inference service with a reproducible benchmark and ongoing monitoring.
Next step
Send a short description of your case: models in use, available hardware and request volume. From it, WRP will prepare a scoped proposal for your project.
Putting this architecture into production under governance and SLA?
WRP executes evidence-backed technical assessments, fixed-scope rollouts, and managed operations across AI, web/email compliance, and official registries.