AI engineering glossary · Inference serving optimisation

What is SGLang?

SGLang: An open-source framework and serving runtime for language models that pairs a programming interface for multi-step prompting with an efficient backend featuring prefix-sharing caches and structured output support. It targets complex workflows such as agents and multi-call pipelines.

Level: intermediateTopic: Inference serving optimisation

SGLang: an example

An application that calls a model five times with a shared context runs faster because the runtime reuses the shared cache.

Related terms

More Inference serving optimisation terms

Where you learn it

SGLang is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.