Philip introduces SGLang as an open source serving framework for large language and vision models. He highlights its performance across GPUs, support for new model releases, and an active community where users can fix or extend the software. He says Baseten uses SGLang in its inference stack and names xAI, inference providers, research groups, and Cursor among other users.
Introduction to LLM serving with SGLang
Speakers
Philip Kiely, developer advocate at Baseten, and Yineng Zhang, SGLang project lead and software engineer at Baseten, lead an AI Engineer workshop on serving and optimizing models with SGLang.
Philip walks through deploying a model with SGLang packaged through Baseten's Truss configuration, which specifies dependencies and the server command. The workshop uses L4 GPUs, with H100 and H200 also supported. He describes SGLang configuration as a matter of selecting flags and checking how options interact, then shows how to call a deployed model using its ID and an OpenAI client.
Yineng demonstrates serving Llama 3 8B Instruct on an L4 and benchmarking it with LM Eval. With the default maximum CUDA graph batch size of eight, a decode batch of ten runs without CUDA graphs. He raises the maximum to 32 so graphs can be used for larger batches, and recommends checking server logs to see whether the setting matches the workload.
Yineng explains that EAGLE 3 builds a draft model from layers of the target model, rather than pairing the target with a separate smaller model. Its tunable settings include draft steps, top-k, and draft verification tokens. He recommends benchmarking combinations with prompts that resemble production traffic, since acceptance rates and speed depend on the workload.
Philip and Yineng point listeners to the SGLang community, GitHub issues, good first issues, help wanted labels, and the development roadmap. Yineng outlines contribution areas including kernels, routing, and the Python runtime, which supports features such as disaggregated prefill and decode, constrained decoding, and function calling. Philip says Baseten chooses runtimes by use case, citing vLLM for compatibility and SGLang for configurability and extensibility.
Takeaways
- Check server logs under representative traffic to see whether CUDA graphs cover the batch sizes your workload reaches.
- Benchmark speculative decoding with realistic prompts because its performance depends on the input and output patterns.
- Treat serving flags as interacting configuration choices and validate combinations against your hardware and model.
- Use SGLang's issues and roadmap to identify contribution opportunities, from kernels to model support.
- Choose an inference runtime based on the model and operational needs; compatibility and extensibility can favor different tools.
Mentioned in this talk
Search inside this talk
What was claimed 12
- previously atYineng Zhang previously at
BasetenLead software engineer“I'm also a software engineer at Baseten.”
YouTube Verified2 sources· Talk, Web· archived
- feature
SGLang: Day-zero support for new model releases“day zero support for new model releases from labs like Qwen and DeepSeek”
YouTube Unverified1 source· Talk
- feature
SGLang: Open source serving framework for large language and vision models“SGLang is an open source, fast serving framework for large language models and large vision models.”
YouTube Unverified1 source· Talk
- uses
“SGLang being used heavily by xAI for its Grok models”
YouTube Unverified1 source· Talk
- uses
“We do at Baseten. We use it as part of our inference stack”
YouTube Unverified1 source· Talk
- metric
SGLang: Almost 15,000 GitHub stars about 18 months after the paper release“In just 18 months, this project has gone from a paper to almost 15,000 GitHub stars.”
YouTube Unverified1 source· Talk
- previously atYineng Zhang previously at
Microsoft“Before I joined Baseten, I worked at Microsoft.”
YouTube Unverified1 source· Talk
- uses
Baseten uses FlashInfer“Baseten uses FlashInfer heavily”
YouTube Unverified1 source· Talk
- metric
SGLang: Default maximum CUDA graph batch size is eight on an L4 for this model“the maximum CUDA graph batch size for this model on an L4 is eight”
YouTube Unverified1 source· Talk
- feature
SGLang: Supports EAGLE 3 speculative decoding“SGLang supports Eagle 3”
YouTube Unverified1 source· Talk
- feature
Oxen AI: Fine-tuning company“Oxen AI is a fine-tuning company.”
YouTube Unverified1 source· Talk
- feature
Baseten: Inference stack uses and customizes vLLM, SGLang, and TensorRT-LLM“We take all these different providers—vLLM, SGLang, and TensorRT-LLM—and customize them.”
YouTube Unverified1 source· Talk














