back

Introduction to LLM serving with SGLang – Philip Kiely and Yineng Zhang, Baseten

Scaling LLMs in production with SGLang's approach

In the rapidly evolving landscape of AI deployment, the challenge isn't just building models but serving them efficiently at scale. A recent technical session featuring Philip Kiely and Yineng Zhang from Baseten introduced SGLang, an innovative framework designed to address the complexities of deploying large language models (LLMs) in production environments. Their presentation highlights how SGLang offers solutions to critical challenges that engineering teams face when transitioning from experimental LLM applications to production-ready systems that can handle real-world workloads.

Key Points

  • SGLang's architecture focuses on optimizing token processing and memory usage, enabling up to 10x more efficient inference compared to standard implementations.

  • The framework introduces a deferred execution model that intelligently batches prompts and reduces redundant computations, addressing one of the major bottlenecks in LLM serving.

  • Rather than requiring developers to learn an entirely new paradigm, SGLang integrates smoothly with existing Python-based LLM workflows while adding performance optimizations under the hood.

Expert Analysis

The most compelling aspect of SGLang is its solution to the "batching problem" – one of the thorniest challenges in LLM deployment. Traditional serving systems force developers to choose between optimizing for latency (serving single requests quickly) or throughput (processing many requests efficiently). SGLang's dynamic batching approach elegantly resolves this trade-off by automatically grouping similar computation paths without requiring developers to explicitly design for batching.

This matters enormously because it addresses the economic reality of LLM deployment. Without efficient batching, companies face prohibitively high costs when scaling to production traffic volumes. The computational resources required for inference represent a significant ongoing expense that can make otherwise promising applications financially unviable. By improving efficiency by an order of magnitude, SGLang potentially transforms the economics of LLM applications, making previously impractical use cases commercially feasible.

Beyond the Presentation

While the presentation focuses on technical architecture, the real-world implications extend further. Consider the case of a customer service AI that needs to handle thousands of simultaneous inquiries. Without efficient batching, such systems often collapse under load, leading to degraded user experiences precisely when demand peaks. Companies like Intercom have reporte

Recent Videos

May 6, 2026

Hermes Agent Master Class

https://www.youtube.com/watch?v=R3YOGfTBcQg Welcome to the Hermes Agent Master Class — an 11-episode series taking you from zero to fully leveraging every feature of Nous Research's open-source agent. In this first episode, we install Hermes from scratch on a brand new machine with no prior skills or memory, walk through full configuration with OpenRouter, tour the most important CLI and slash commands, and run our first real task: a competitor research report on a custom children's book AI business idea. Every future episode will build on this fresh install so you can see the compounding value of the agent in real time....

Apr 29, 2026

Andrej Karpathy – Outsource your thinking, but you can’t outsource your understanding

https://www.youtube.com/watch?v=96jN2OCOfLs Here's what Andrej Karpathy just figured out that everyone else is still dancing around: we're not in an era of "better models." We're in a different era of computing altogether. And the difference between understanding that and not understanding it is the difference between being a vibe coder and being an agentic engineer. Last October, Karpathy had a realization. AI didn't stop being ChatGPT-adjacent. It fundamentally shifted. Agentic coherent workflows started to actually work. And he's spent the last three months living in side projects, VB coding, exploring what's actually possible. What he found is a framework that explains...

Mar 30, 2026

Andrej Karpathy on the Decade of Agents, the Limits of RL, and Why Education Is His Next Mission

A summary of key takeaways from Andrej Karpathy's conversation with Dwarkesh Patel In a wide-ranging conversation with Dwarkesh Patel, Andrej Karpathy — former head of AI at Tesla, founding member of OpenAI, and creator of some of the most popular AI educational content on the internet — shared his views on where AI is headed, what's still broken, and why he's now pouring his energy into education. Here are the key takeaways. "It's the Decade of Agents, Not the Year of Agents" Karpathy's now-famous quote is a direct pushback on industry hype. Early agents like Claude Code and Codex are...