> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sglang.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SGLang Cookbook

A community-maintained repository of practical guides and recipes for deploying and using SGLang in production environments. Our mission is simple: answer the question **"How do I use SGLang (and related models) on hardware Y for task Z?"** with clear, actionable solutions.

## Guides

<CardGroup cols={2}>
  <Card title="Autoregressive Models" mode="card" href="./autoregressive/intro" img="https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?fit=max&auto=format&n=IW-2Jgsua6hZ_X1V&q=85&s=6d3771893af1e31698e95d40c836a115" width="940" height="525" data-path="cards/Autoregressive-card.png" />

  <Card title="Diffusion Models" mode="card" href="./diffusion/intro" img="https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?fit=max&auto=format&n=IW-2Jgsua6hZ_X1V&q=85&s=a9c4d23dce80ed6ebdd383c96a832432" width="940" height="525" data-path="cards/Diffusion-card.png" />
</CardGroup>

## Benchmarks

<CardGroup cols={2}>
  <Card title="Autoregressive Model Benchmark" mode="card" href="./base/benchmarks/autoregressive_model_benchmark" img="https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?fit=max&auto=format&n=IW-2Jgsua6hZ_X1V&q=85&s=2c81d528ead52e31b4af8c0dde5a9c0e" width="940" height="525" data-path="cards/Autoregressive-benchmark-card.png" />

  <Card title="Diffusion Model Benchmark" mode="card" href="./base/benchmarks/diffusion_model_benchmark" img="https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?fit=max&auto=format&n=IW-2Jgsua6hZ_X1V&q=85&s=f5e003d28ba353b86e295ad4cfdf5be8" width="940" height="525" data-path="cards/Diffusion-benchmark-card.png" />
</CardGroup>
