SGLang Serving Tutorial: Build Structured Agentic LLM Applications
About this lesson
In this video, we explore SGLang, a powerful LLM serving framework designed for structured and agentic applications. You’ll see how SGLang compares to vLLM, when it makes sense to use it, and why it shines in use cases with predefined input/output structures. We walk through running SGLang with LLaMA 3.2 1B, attaching LoRA adapters, defining structured generation functions, and benchmarking performance against a baseline. You’ll learn how to: Install and run an SGLang server with Hugging Face models Serve multiple models simultaneously (base + LoRA adapters) Use structured generation functions for agentic workflows Build summarization and sentiment analysis pipelines with strict output constraints Track generation state across multiple steps Use the OpenAI-compatible endpoint exposed by SGLang Compare base vs LoRA-adapted model outputs Benchmark serving performance (TTFT, TPO, ITL) and analyze results Key timestamps: 0:00 - What is SGLang and how it compares to vLLM 0:47 - Launching the SGLang server with LLaMA and LoRA adapters 1:34 - Structured generation functions for agentic use cases 2:25 - Building a sentiment analysis pipeline with constrained outputs 5:37 - Running the sentiment classifier and inspecting state 6:03 - Using the OpenAI-compatible endpoint 7:09 - Benchmarking performance and interpreting results This video is ideal if you’re building agentic systems, structured LLM pipelines, or high-throughput serving backends where performance and control matter. This video is part of the LLM Engineering and Deployment Certification Program by Ready Tensor. Enroll now: https://app.readytensor.ai/certifications/llm-engineering-and-deployment-DAROCXlj About Ready Tensor: Ready Tensor helps AI and ML professionals build, evaluate, and showcase intelligent systems through certifications, competitions, and real-world project publications. Learn more: https://www.readytensor.ai/ Like the video? Subscribe for more content on LLM serving, agentic sys
DeepCamp AI