Hands-on LLM inference: boosting tokens-per-second with a 31B Gemma model

abhijithneil · x · 2026-09-22

A tutorial on self-hosting LLMs and improving inference speed (TPS, Tokens per Second). The author notes that inference engineering in 2026 still has no one-step playbook — frameworks are still evolving to accommodate different architectures, so this step requires understanding GPU kernels, model configuration, architectures, and ML theory.

Using a 31B-parameter Gemma 4 LLM, the author demonstrates how to measure and improve generation throughput (e.g., how fast a 500-word answer to "What is machine learning?" completes). A practical starting point for engineers entering inference engineering.

Original post →

More from Infra

Infra channel →