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
Autoregressive Models
Diffusion Models
VLA (Vision-Language-Action) Models
Benchmarks
Autoregressive Model Benchmark
Diffusion Model Benchmark
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"SGLang Documentation","colors":{"primary":"#d55816","light":"#d55816","dark":"#d55816"},"logo":{"light":"https://mintcdn.com/lmsysorg/iZdDMbLWP1BLEIzC/logo/logo.png?fit=max\u0026auto=format\u0026n=iZdDMbLWP1BLEIzC\u0026q=85\u0026s=b27d467947ee2167744cb07b69badf00","dark":"https://mintcdn.com/lmsysorg/iZdDMbLWP1BLEIzC/logo/logo.png?fit=max\u0026auto=format\u0026n=iZdDMbLWP1BLEIzC\u0026q=85\u0026s=b27d467947ee2167744cb07b69badf00"},"favicon":"https://mintcdn.com/lmsysorg/iZdDMbLWP1BLEIzC/favicon.png?fit=max\u0026auto=format\u0026n=iZdDMbLWP1BLEIzC\u0026q=85\u0026s=5524ba9694253eabf4da70fafa1db208","background":{"decoration":"grid","color":{"light":"#fffcfb","dark":"#1d1d1d"}},"footer":{"socials":{"github":"https://github.com/sgl-project/sglang","x":"https://x.com/lmsysorg","linkedin":"https://www.linkedin.com/company/sgl-project/posts?feedView=all","slack":"https://slack.sglang.io/","discord":"https://discord.gg/4ugb2t6YY2"}},"seo":{"metatags":{"google-site-verification":"bX3ofyYQhraIpAYf4DpyZQXZO_G4xLR_RqeBAKnJA7g","canonical":"https://docs.sglang.io"}},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter","weight":400}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lmsysorg","hasAudioNarration":false,"actualSubdomain":"lmsysorg","customDomains":["docs.sglang.io"],"gitSource":{"type":"github","owner":"sgl-project","repo":"sglang","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af731c729222d23132b41bd","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"Cookbook","count":343},{"language":"default","tag":"Autoregressive Models","count":126},{"language":"default","tag":"User Guide","count":102},{"language":"default","tag":"Hardware","count":68},{"language":"default","tag":"Hardware Platforms","count":68},{"language":"default","tag":"SGLang Diffusion","count":60},{"language":"default","tag":"Ascend NPUs","count":56},{"language":"default","tag":"Advanced Features","count":49},{"language":"default","tag":"Model Deployment","count":37},{"language":"default","tag":"Diffusion Models","count":36}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":where(*){scrollbar-width:none;-ms-overflow-style:none}:where(*)::-webkit-scrollbar{width:0;height:0}:where(pre,code,.code-block,.code-group,#request-example,#response-example,.sg-bench-scroll),:where(pre,code,.code-block,.code-group,#request-example,#response-example,.sg-bench-scroll) *{scrollbar-width:auto;-ms-overflow-style:auto}:where(pre,code,.code-block,.code-group,#request-example,#response-example,.sg-bench-scroll)::-webkit-scrollbar,:where(pre,code,.code-block,.code-group,#request-example,#response-example,.sg-bench-scroll) *::-webkit-scrollbar{width:10px;height:10px}table{width:100%;border-collapse:collapse;table-layout:fixed}table thead tr{border-bottom:2px solid #d55816}table thead th{text-align:left;padding:10px 12px;font-weight:700;white-space:nowrap}table thead th:nth-child(odd){background-color:rgba(255,255,255,0.02)}table thead th:nth-child(even){background-color:rgba(255,255,255,0.05)}table tbody tr:nth-child(odd) td{background-color:rgba(255,255,255,0.02)}table tbody tr:nth-child(even) td{background-color:rgba(255,255,255,0.05)}table tbody td{padding:9px 12px}table tbody td:first-child{font-weight:500}html.dark table thead th:nth-child(odd),[data-theme=\"dark\"] table thead th:nth-child(odd){background-color:rgba(255,255,255,0.02)}html.dark table thead th:nth-child(even),[data-theme=\"dark\"] table thead th:nth-child(even){background-color:rgba(255,255,255,0.05)}html.dark table tbody tr:nth-child(odd) td,[data-theme=\"dark\"] table tbody tr:nth-child(odd) td{background-color:rgba(255,255,255,0.02)}html.dark table tbody tr:nth-child(even) td,[data-theme=\"dark\"] table tbody tr:nth-child(even) td{background-color:rgba(255,255,255,0.05)}.sgd-model-catalog{margin:16px 0 24px;border-top:1px solid rgb(226, 232, 240)}.sgd-model-entry{display:grid;grid-template-columns:minmax(138px, 0.34fr) minmax(0, 1fr);column-gap:28px;min-width:0;padding:17px 0;border-bottom:1px solid rgb(226, 232, 240)}.sgd-model-entry-meta{min-width:0}.sgd-model-entry-meta h3{margin:0;color:rgb(15, 23, 42);font-size:0.9rem;font-weight:650;letter-spacing:0;line-height:1.4}.sgd-model-entry-ids{min-width:0}.sgd-model-id{min-width:0;padding:2px 0}.sgd-model-entry .sgd-model-id code{display:block;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;color:rgb(51, 65, 85);font-size:0.78rem;font-weight:500;line-height:1.5;overflow-wrap:anywhere;white-space:normal}.sgd-model-entry-note{margin:7px 0 0;color:rgb(100, 116, 139);font-size:0.76rem;line-height:1.45}.sgd-model-entry-link{display:inline-flex;gap:4px;align-items:center;margin-top:7px;color:rgb(194, 65, 12);font-size:0.74rem;font-weight:600;text-decoration:none}.sgd-model-entry-link:hover{text-decoration:underline}@media (max-width: 620px){.sgd-model-entry{grid-template-columns:minmax(0, 1fr);row-gap:9px;padding:15px 0}.sgd-model-entry-meta{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.sgd-model-entry-link{flex:none;margin-top:0}}.sgd-chip{display:inline-flex;align-items:center;margin:2px 4px 2px 0;padding:2px 8px;border:1px solid rgba(213, 88, 22, 0.22);border-radius:999px;background:rgba(213, 88, 22, 0.08);color:rgb(154, 52, 18);font-size:0.75rem;font-weight:650;line-height:1.45}.sgd-model-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 30px}.sgd-model-tags .sgd-chip{margin:0;padding:4px 9px;border:0;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:750;line-height:1.4}.sgd-model-tags+h2{margin-top:0}.prose:has(.sgd-model-tags){overflow-x:clip;overflow-y:visible}.sg-command-visualizer:not(.sgd-command-builder) :where(button:not(:disabled),.sg-command-visualizer-choice[aria-disabled=\"false\"],.sg-command-visualizer-tab){transition:transform 160ms ease-out, border-color 160ms ease-out,\n background-color 160ms ease-out, color 160ms ease-out}@media (hover: hover) and (pointer: fine){.sg-command-visualizer:not(.sgd-command-builder) :where(button:not(:disabled),.sg-command-visualizer-choice[aria-disabled=\"false\"],.sg-command-visualizer-tab):hover{transform:translateY(-1px) scale(1.015)}}.sg-command-visualizer:not(.sgd-command-builder) :where(button:not(:disabled),.sg-command-visualizer-choice[aria-disabled=\"false\"],.sg-command-visualizer-tab):active{transform:translateY(0) scale(0.985)}.sg-command-visualizer:not(.sgd-command-builder) :where(button,.sg-command-visualizer-choice,.sg-command-visualizer-tab):focus-visible{outline:2px solid #e2775f;outline-offset:2px}@media (prefers-reduced-motion: reduce){.sg-command-visualizer:not(.sgd-command-builder) :where(button,.sg-command-visualizer-choice,.sg-command-visualizer-tab){transition:none;transform:none!important}}.sgd-command-builder{container:command-builder / inline-size;--sgdb-surface: white;--sgdb-raised: white;--sgdb-ink: oklch(22% 0.02 258);--sgdb-muted: oklch(50% 0.02 258);--sgdb-line: oklch(90% 0.008 258);--sgdb-brand: oklch(57% 0.15 35);--sgdb-serve: oklch(56% 0.13 40);--sgdb-request: oklch(60% 0.12 62);--sgdb-ok: oklch(52% 0.11 153);--sgdb-warn: oklch(59% 0.12 78);--sgdb-error: oklch(53% 0.16 25);--sgdb-well: oklch(45% 0.03 258 / 0.08);--sgdb-well-inset: inset 0 1px 2px oklch(30% 0.03 258 / 0.07);--sgdb-thumb-bg: linear-gradient(180deg, white, oklch(98.5% 0.003 258));--sgdb-thumb-shadow: 0 0 0 0.5px oklch(30% 0.02 258 / 0.1),\n inset 0 1px 0 rgba(255, 255, 255, 0.9),\n 0 1px 1px oklch(30% 0.02 258 / 0.07),\n 0 4px 12px oklch(30% 0.02 258 / 0.1);--sgdb-pick-hover: oklch(45% 0.03 258 / 0.05);--sgdb-code-bg: oklch(97.5% 0.004 258);--sgdb-code-inset: oklch(30% 0.03 258 / 0.06);--sgdb-ease: cubic-bezier(0.32, 0.72, 0, 1);--sgdb-ease-dur: 200ms;--sgdb-spring: cubic-bezier(0.3, 1.35, 0.45, 1);--sgdb-spring-dur: 460ms;max-width:100%;margin:24px 0 40px;overflow:clip;border:1px solid var(--sgdb-line);border-radius:16px;background:var(--sgdb-surface);box-shadow:0 1px 2px oklch(30% 0.03 258 / 0.04),\n 0 12px 32px -12px oklch(30% 0.03 258 / 0.12);color:var(--sgdb-ink)}.sgd-command-builder *,.sgd-command-builder *::before,.sgd-command-builder *::after{box-sizing:border-box}.sgd-command-builder :where(button,input,select){font:inherit}.sgd-builder-scope-tabs{position:relative;display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));margin:12px 12px 0;padding:3px;border-radius:11px;background:var(--sgdb-well);box-shadow:var(--sgdb-well-inset)}.sgd-builder-scope-tabs::before{position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px) / 3);border-radius:8px;background:var(--sgdb-thumb-bg);box-shadow:var(--sgdb-thumb-shadow);content:\"\";transition:transform 300ms var(--sgdb-ease)}.sgd-builder-scope-tabs:has(>button:nth-child(2)[data-active=\"true\"])::before{transform:translateX(100%)}.sgd-builder-scope-tabs:has(>button:nth-child(3)[data-active=\"true\"])::before{transform:translateX(200%)}.sgd-builder-scope-tabs button{position:relative;z-index:1;min-width:0;min-height:34px;padding:0 4px;border:0;background:transparent;color:var(--sgdb-muted);cursor:pointer;font-size:12px;font-weight:590;white-space:nowrap;transition:color var(--sgdb-ease-dur) var(--sgdb-ease)}.sgd-builder-scope-tabs button[data-active=\"true\"]{color:var(--sgdb-ink)}.sgd-builder-main{display:flex;min-width:0;flex-direction:column}.sgd-builder-controls,.sgd-builder-output-rail{min-width:0}.sgd-builder-controls{container:builder-controls / inline-size;padding:4px 16px 20px}.sgd-builder-docs-tip{display:block;margin:0;padding:12px 16px;border-top:1px solid var(--sgdb-line);color:var(--sgdb-muted);font-size:12px;line-height:1.5}.sgd-builder-docs-tip a{color:var(--sgdb-serve);text-decoration:underline;text-underline-offset:3px}.sgd-builder-scope-panel{display:grid;gap:0}.sgd-builder-recipe{display:flex;min-width:0;padding:11px 0;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--sgdb-line)}.sgd-builder-recipe>div:first-child{display:grid;min-width:0;gap:3px}.sgd-builder-recipe>div:first-child span{color:var(--sgdb-muted);font-size:10.5px}.sgd-builder-recipe>div:first-child strong{font-size:12px;font-weight:590;line-height:1.4}.sgd-builder-recipe>div:last-child{display:flex;flex:none;gap:10px;align-items:center}.sgd-builder-recipe>div:last-child>small{color:var(--sgdb-muted);font-size:10px}.sgd-builder-section{min-width:0;padding:13px 0;border-bottom:1px solid var(--sgdb-line)}.sgd-builder-section:last-child{border-bottom:0}.sgd-builder-section-heading{display:flex;gap:8px;align-items:baseline;justify-content:space-between;margin-bottom:8px}.sgd-builder-section-heading>span{font-size:12px;font-weight:590}.sgd-builder-section-heading>small{color:var(--sgdb-muted);font-size:11px;line-height:1.35;text-align:right}.sgd-builder-hardware-grid,.sgd-builder-choice-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:2px;padding:3px;border-radius:11px;background:var(--sgdb-well);box-shadow:var(--sgdb-well-inset)}.sgd-builder-hardware,.sgd-builder-choice{position:relative;display:grid;min-width:0;min-height:38px;padding:7px 10px;overflow:hidden;align-content:center;border:0;border-radius:8px;background:transparent;color:color-mix(in oklch, var(--sgdb-ink) 72%, transparent);cursor:pointer;font-size:12px;line-height:1.25;text-align:left;transition:background-color var(--sgdb-ease-dur) var(--sgdb-ease),\n color var(--sgdb-ease-dur) var(--sgdb-ease)}.sgd-builder-hardware{display:flex;min-height:34px;flex-flow:row wrap;align-items:baseline;gap:5px}.sgd-builder-hardware strong{font-size:12.5px;font-weight:590;letter-spacing:-0.01em}.sgd-builder-hardware small,.sgd-builder-choice small{margin-top:1px;color:var(--sgdb-muted);font-size:10.5px}.sgd-builder-hardware small{margin-top:0}.sgd-builder-choice-dot{display:none}.sgd-builder-hardware[data-selected=\"true\"],.sgd-builder-choice[data-selected=\"true\"]{background:var(--sgdb-thumb-bg);box-shadow:var(--sgdb-thumb-shadow);color:var(--sgdb-ink)}.sgd-builder-hardware:disabled,.sgd-builder-choice:disabled,.sgd-builder-choice[data-blocked=\"true\"]{cursor:not-allowed;opacity:0.42}.sgd-builder-blocked-note{margin:8px 2px 0;color:var(--sgdb-warn);font-size:11px;line-height:1.45;animation:sgdb-note-in 220ms var(--sgdb-ease)}@keyframes sgdb-note-in{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}.sgd-builder-choice[data-soft=\"true\"][data-selected=\"true\"]::after{content:\"Not verified yet\";color:var(--sgdb-warn);font-size:10px;line-height:1.3;margin-top:1px}.sgd-builder-resource-grid{display:grid;gap:8px}.sgd-builder-stepper-field{display:flex;min-height:42px;padding:5px 6px 5px 12px;align-items:center;justify-content:space-between;border:0;border-radius:10px;background:var(--sgdb-well);box-shadow:var(--sgdb-well-inset)}.sgd-builder-stepper-field>div:first-child{display:grid;gap:2px}.sgd-builder-stepper-field span{font-size:12px;font-weight:500}.sgd-builder-stepper-field small{color:var(--sgdb-muted);font-size:10px}.sgd-builder-stepper{display:grid;grid-template-columns:28px 40px 28px;align-items:center;border-radius:8px;background:var(--sgdb-thumb-bg);box-shadow:var(--sgdb-thumb-shadow)}.sgd-builder-stepper button,.sgd-builder-request-stepper button{min-width:28px;min-height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--sgdb-ink);cursor:pointer;font-size:14px;transition:background-color var(--sgdb-ease-dur) var(--sgdb-ease)}.sgd-builder-stepper input{width:40px;height:30px;padding:0;border-right:0.5px solid color-mix(in oklch, var(--sgdb-ink) 10%, transparent);border-left:0.5px solid color-mix(in oklch, var(--sgdb-ink) 10%, transparent);border-top:0;border-bottom:0;border-radius:0;appearance:textfield;background:transparent;color:var(--sgdb-ink);font-size:12px;font-variant-numeric:tabular-nums;font-weight:590;line-height:30px;text-align:center}.sgd-builder-stepper input::-webkit-inner-spin-button,.sgd-builder-stepper input::-webkit-outer-spin-button{margin:0;appearance:none}.sgd-builder-stepper button:disabled,.sgd-builder-request-stepper button:disabled{opacity:0.32;cursor:not-allowed}.sgd-builder-resource-summary{margin:8px 0 0;color:var(--sgdb-muted);font-size:11px;line-height:1.4}.sgd-builder-topology-toggle{margin-top:10px}.sgd-builder-text-action{justify-self:start;min-height:32px;padding:0;border:0;background:transparent;color:var(--sgdb-muted);cursor:pointer;font-size:11px;font-weight:500}.sgd-builder-text-action:disabled{cursor:not-allowed;opacity:0.4}.sgd-builder-advanced{margin-top:12px;padding-top:12px;border-top:1px solid var(--sgdb-line)}.sgd-builder-advanced>p{margin:0 0 12px;color:var(--sgdb-muted);font-size:11px;line-height:1.5}.sgd-builder-topology-inputs{display:grid;gap:8px}.sgd-builder-topology-inputs label{display:grid;gap:5px;color:var(--sgdb-muted);font-size:10.5px}.sgd-builder-topology-inputs select{width:100%;min-height:38px;padding:0 8px;border:1px solid var(--sgdb-line);border-radius:6px;background:var(--sgdb-raised);color:var(--sgdb-ink);font-size:12px}.sgd-builder-messages{margin-top:12px;padding:8px 10px;border-radius:6px;background:color-mix(in oklch, var(--sgdb-warn) 9%, transparent);color:color-mix(in oklch, var(--sgdb-warn) 75%, var(--sgdb-ink))}.sgd-builder-messages[data-state=\"error\"]{background:color-mix(in oklch, var(--sgdb-error) 9%, transparent);color:color-mix(in oklch, var(--sgdb-error) 78%, var(--sgdb-ink))}.sgd-builder-messages :is(p,[data-as=\"p\"]){display:block;margin:0;font-size:11px;line-height:1.45}.sgd-builder-messages :is(p,[data-as=\"p\"])+:is(p,[data-as=\"p\"]){margin-top:5px}.sgd-builder-setting-layout,.sgd-builder-setting-list,.sgd-builder-setting-item{min-width:0}.sgd-builder-setting-item{border-bottom:1px solid var(--sgdb-line)}.sgd-builder-setting-item:last-child{border-bottom:0}.sgd-builder-setting-row{display:grid;grid-template-columns:minmax(76px, auto) minmax(0, 1fr) auto auto;width:100%;min-height:44px;padding:8px;gap:8px;align-items:center;border:0;border-bottom:0;border-radius:8px;background:transparent;transition:background-color var(--sgdb-ease-dur) var(--sgdb-ease),\n color var(--sgdb-ease-dur) var(--sgdb-ease);color:var(--sgdb-ink);cursor:pointer;text-align:left}.sgd-builder-setting-row>span:first-child{color:var(--sgdb-muted);font-size:11px}.sgd-builder-setting-row strong{overflow:hidden;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.sgd-builder-setting-row small{color:var(--sgdb-ok);font-size:10px;font-weight:500}.sgd-builder-setting-row>span:last-child{color:var(--sgdb-muted);font-size:17px}.sgd-builder-setting-row[data-active=\"true\"]{background:color-mix(in oklch, var(--sgdb-serve) 4%, transparent);color:var(--sgdb-serve)}.sgd-builder-context{padding:16px 0 4px}.sgd-builder-context--inline{padding:12px 4px 16px;border-top:1px solid var(--sgdb-line)}.sgd-builder-context--rail{display:none}.sgd-builder-context-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.sgd-builder-context-heading>div>span{font-size:13px;font-weight:590}.sgd-builder-context-heading :is(p,[data-as=\"p\"]){display:block;margin:4px 0 0;color:var(--sgdb-muted);font-size:11px;font-weight:400;line-height:1.45}.sgd-builder-context-heading>small{flex:none;color:var(--sgdb-muted);font-size:10px}.sgd-builder-context-options{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px;margin-top:12px}.sgd-builder-context-note{margin-top:12px;padding-top:10px;border-top:1px solid var(--sgdb-line)}.sgd-builder-context-note :is(p,[data-as=\"p\"]){display:block;margin:0;color:var(--sgdb-muted);font-size:11px;line-height:1.5}.sgd-builder-context-note a{display:inline-flex;margin-top:8px;min-height:24px;align-items:center;gap:5px;color:var(--sgdb-serve);font-size:11px;font-weight:500;text-decoration:none;transition:color var(--sgdb-ease-dur) var(--sgdb-ease)}.sgd-builder-context-note a+a{margin-left:16px}.sgd-builder-context-note a svg{flex:none;transition:transform var(--sgdb-ease-dur) var(--sgdb-ease)}.sgd-builder-context-note a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.sgd-builder-context-note a:hover svg{transform:translateX(1px) scale(1.08)}.sgd-builder-scope-panel[data-scope=\"request\"] .sgd-builder-context-note a{color:var(--sgdb-request)}.sgd-builder-request-stepper{display:grid;grid-template-columns:40px 52px 40px auto;gap:6px;align-items:center;margin-top:14px}.sgd-builder-request-stepper input{width:52px;min-width:0;height:34px;padding:0 4px;border:1px solid var(--sgdb-line);border-radius:6px;appearance:textfield;background:var(--sgdb-surface);color:var(--sgdb-ink);font-size:16px;font-variant-numeric:tabular-nums;font-weight:590;text-align:center}.sgd-builder-request-stepper input::-webkit-inner-spin-button,.sgd-builder-request-stepper input::-webkit-outer-spin-button{margin:0;appearance:none}.sgd-builder-request-stepper>span{margin-left:4px;color:var(--sgdb-muted);font-size:11px}.sgd-builder-request-setting{border-bottom:1px solid var(--sgdb-line)}.sgd-builder-request-setting:last-child{border-bottom:0}.sgd-builder-request-setting .sgd-builder-context{padding:16px 0}.sgd-builder-output-rail{display:grid;gap:12px;padding:0 12px 16px;align-items:stretch}.sgd-builder-output{--output-accent: var(--sgdb-serve);display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--sgdb-line);border-radius:12px;background:var(--sgdb-raised);box-shadow:0 1px 2px oklch(30% 0.03 258 / 0.05);transition:border-color 160ms ease-out, transform 160ms ease-out}.sgd-builder-output[data-output=\"request\"]{--output-accent: var(--sgdb-request)}.sgd-builder-output[data-emphasized=\"true\"]{border-color:color-mix(in oklch, var(--output-accent) 24%, var(--sgdb-line))}.sgd-builder-output>header{display:grid;grid-template-columns:24px minmax(0, 1fr) auto;gap:8px;align-items:center;min-height:50px;padding:8px 10px;border-bottom:1px solid var(--sgdb-line)}.sgd-builder-output[data-emphasized=\"true\"]>header{background:linear-gradient(180deg,\n color-mix(in oklch, var(--output-accent) 7%, transparent),\n color-mix(in oklch, var(--output-accent) 2%, transparent))}.sgd-builder-output-index{display:grid;width:20px;height:20px;place-items:center;border:0;border-radius:50%;background:var(--sgdb-well);color:var(--sgdb-muted);font-size:10px;font-weight:590;font-variant-numeric:tabular-nums}.sgd-builder-output-title{display:flex;min-width:0;gap:7px;align-items:baseline}.sgd-builder-output-title strong{font-size:13px;font-weight:590}.sgd-builder-output-title span{color:var(--sgdb-muted);font-size:10.5px}.sgd-builder-status{display:inline-flex;gap:5px;align-items:center;color:var(--sgdb-muted);font-size:10px;white-space:nowrap}.sgd-builder-status>span{width:6px;height:6px;border-radius:50%;background:var(--sgdb-warn);box-shadow:0 0 6px color-mix(in oklch, var(--sgdb-warn) 60%, transparent)}.sgd-builder-status[data-status=\"verified\"]>span{background:var(--sgdb-ok)}.sgd-builder-status[data-status=\"error\"]>span{background:var(--sgdb-error)}.sgd-builder-output-tabs{display:flex;min-height:38px;padding:5px 10px;gap:14px;align-items:center;border-bottom:1px solid var(--sgdb-line)}.sgd-builder-output-tabs button{min-height:28px;padding:0;border:0;border-bottom:1px solid transparent;background:transparent;color:var(--sgdb-muted);cursor:pointer;font-size:10.5px;font-weight:500}.sgd-builder-output-tabs button[data-selected=\"true\"]{border-bottom-color:var(--output-accent);color:var(--sgdb-ink)}.sgd-builder-node-fields{display:grid;grid-template-columns:minmax(0, 1fr) 84px;gap:8px;padding:8px 10px;border-bottom:1px solid var(--sgdb-line)}.sgd-builder-node-fields label{display:grid;min-width:0;gap:4px;color:var(--sgdb-muted);font-size:10px}.sgd-builder-node-fields input{width:100%;min-width:0;min-height:34px;padding:0 7px;border:1px solid var(--sgdb-line);border-radius:6px;background:var(--sgdb-surface);color:var(--sgdb-ink);font-size:11px}.sgd-builder-code{position:relative;display:grid;min-width:0;flex:1 1 auto}.sgd-builder-code>pre{height:100%;max-height:calc(13.95em + 24px);min-width:0;margin:0;padding:12px;overflow:auto;border:0;border-radius:0;background:var(--sgdb-code-bg);box-shadow:inset 0 1px 3px var(--sgdb-code-inset);color:var(--sgdb-ink);font-size:clamp(11.5px, 1.2cqi, 12.5px);line-height:1.55;white-space:pre}.sgd-builder-code>pre::-webkit-scrollbar-corner{background:transparent}.sgd-builder-code>pre.is-expanded{height:auto;max-height:70vh}.sgd-builder-output code{background:transparent;color:inherit;font:inherit;font-variant-ligatures:none}.sgd-builder-output-error{padding:8px 10px;border-top:1px solid color-mix(in oklch, var(--sgdb-error) 35%, var(--sgdb-line));background:color-mix(in oklch, var(--sgdb-error) 8%, transparent);color:var(--sgdb-error);font-size:10.5px;line-height:1.4}.sgd-builder-output>footer{display:flex;min-height:44px;padding:5px 10px;align-items:center;justify-content:space-between;border-top:1px solid var(--sgdb-line)}.sgd-builder-output>footer>div{display:flex;margin-left:auto;gap:12px;align-items:center}.sgd-builder-copy{position:absolute;top:7px;right:7px;display:grid;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:var(--sgdb-thumb-bg);-webkit-backdrop-filter:blur(8px) saturate(1.4);backdrop-filter:blur(8px) saturate(1.4);box-shadow:var(--sgdb-thumb-shadow);color:var(--sgdb-muted);cursor:pointer;opacity:0;place-items:center;transform:translateY(2px) scale(0.9);transition:opacity var(--sgdb-ease-dur) var(--sgdb-ease),\n color var(--sgdb-ease-dur) var(--sgdb-ease),\n transform var(--sgdb-spring-dur) var(--sgdb-spring)}.sgd-builder-code:hover>.sgd-builder-copy,.sgd-builder-copy:focus-visible,.sgd-builder-copy[data-copied=\"true\"]{opacity:1;transform:translateY(0) scale(1)}@media (hover: none){.sgd-builder-copy{opacity:1;transform:none}}.sgd-builder-copy:disabled{cursor:not-allowed;color:color-mix(in oklch, var(--sgdb-muted) 45%, transparent)}.sgd-builder-copy svg{grid-area:1 / 1;pointer-events:none;transition:opacity 140ms var(--sgdb-ease), transform 220ms var(--sgdb-ease)}.sgd-builder-copy .sgd-builder-copy-check{opacity:0;transform:scale(0.5)}.sgd-builder-copy[data-copied=\"true\"]{color:var(--sgdb-ok)}.sgd-builder-copy[data-copied=\"true\"] .sgd-builder-copy-glyph{opacity:0;transform:scale(0.5)}.sgd-builder-copy[data-copied=\"true\"] .sgd-builder-copy-check{opacity:1;transform:scale(1)}@media (hover: hover) and (pointer: fine){.sgd-command-builder button:not(:disabled):not([data-blocked=\"true\"]):hover{color:var(--sgdb-ink)}.sgd-builder-scope-tabs button:not(:disabled):hover{color:var(--sgdb-ink)}.sgd-builder-hardware:not(:disabled):not([data-selected=\"true\"]):hover,.sgd-builder-choice:not(:disabled):not([data-blocked=\"true\"]):not([data-selected=\"true\"]):hover{background:var(--sgdb-pick-hover)}.sgd-builder-setting-row:not(:disabled):hover{background:color-mix(in oklch, var(--sgdb-serve) 5%, transparent)}.sgd-builder-stepper button:not(:disabled):hover,.sgd-builder-request-stepper button:not(:disabled):hover{background:var(--sgdb-pick-hover)}.sgd-builder-copy:not(:disabled):hover{color:var(--sgdb-ink)}.sgd-builder-copy[data-copied=\"true\"]:hover{color:var(--sgdb-ok)}.sgd-builder-text-action:not(:disabled):hover{color:var(--output-accent, var(--sgdb-brand))}}.sgd-command-builder :where(button,input,select,a):focus-visible{outline:2px solid color-mix(in oklch, var(--sgdb-brand) 76%, white);outline-offset:2px}.sgd-command-builder button:not(:disabled):not([data-blocked=\"true\"]):active{transform:scale(0.97);transition-duration:60ms}@container builder-controls (min-width: 560px){.sgd-builder-scope-panel[data-scope=\"base\"]{grid-template-columns:repeat(2, minmax(0, 1fr));column-gap:28px}.sgd-builder-scope-panel[data-scope=\"base\"]>.sgd-builder-recipe{grid-column:1 / -1}.sgd-builder-scope-panel[data-scope=\"base\"] .sgd-builder-resource-grid{grid-template-columns:minmax(0, 1fr)}.sgd-builder-setting-layout{display:grid;grid-template-columns:minmax(240px, 0.9fr) minmax(0, 1.1fr)}.sgd-builder-setting-list{padding-right:16px;border-right:1px solid var(--sgdb-line)}.sgd-builder-context--inline{display:none}.sgd-builder-context--rail{display:block;padding:12px 0 4px 16px}.sgd-builder-request-direct{grid-template-columns:repeat(2, minmax(0, 1fr))}.sgd-builder-request-setting{padding-right:16px;border-right:1px solid var(--sgdb-line);border-bottom:0}.sgd-builder-request-setting+.sgd-builder-request-setting{padding-right:0;padding-left:16px;border-right:0}}@container command-builder (max-width: 717px){.sgd-builder-output-rail{display:contents}.sgd-builder-controls{order:0}.sgd-builder-output{width:calc(100% - 24px);margin:12px 12px 16px;order:1}.sgd-builder-main[data-scope=\"serve\"] .sgd-builder-output[data-output=\"serve\"],.sgd-builder-main[data-scope=\"request\"] .sgd-builder-output[data-output=\"request\"]{order:-1}}@container command-builder (min-width: 718px) and (max-width: 957px){.sgd-builder-output-rail{order:-1;padding-top:12px}.sgd-builder-main[data-scope=\"base\"] .sgd-builder-output-rail{order:1;padding-top:0}.sgd-builder-output[data-emphasized=\"false\"]{order:1}}@container command-builder (min-width: 418px){.sgd-builder-scope-tabs{margin-inline:16px}.sgd-builder-scope-tabs button{font-size:13px}.sgd-builder-hardware-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}.sgd-builder-resource-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}.sgd-builder-topology-inputs{grid-template-columns:repeat(3, minmax(0, 1fr))}}@container command-builder (min-width: 718px){.sgd-builder-scope-panel[data-scope=\"base\"]{grid-template-columns:repeat(12, minmax(0, 1fr));column-gap:16px}.sgd-builder-scope-panel[data-scope=\"base\"]>:where(.sgd-builder-recipe,.sgd-builder-section){grid-column:1 / -1}.sgd-builder-scope-panel[data-scope=\"base\"]>.sgd-builder-section:nth-last-child(-n+2){grid-column:span 6}.sgd-builder-output-rail{grid-template-columns:minmax(0, 1fr)}.sgd-builder-main[data-scope=\"base\"] .sgd-builder-output-rail{grid-template-columns:repeat(2, minmax(0, 1fr))}.sgd-builder-choice-grid[data-density=\"compact\"]{grid-template-columns:repeat(3, minmax(0, 1fr))}}@container command-builder (min-width: 958px){.sgd-builder-scope-tabs{margin-inline:20px}.sgd-builder-scope-tabs button{font-size:14px}.sgd-builder-main{display:grid;grid-template-columns:minmax(0, 38fr) minmax(0, 62fr)}.sgd-builder-controls{padding:8px 20px 24px;border-right:1px solid var(--sgdb-line)}.sgd-builder-output-rail{grid-template-columns:minmax(0, 1fr);padding:16px}.sgd-builder-scope-panel[data-scope=\"base\"]{display:grid;grid-template-columns:minmax(0, 1fr)}.sgd-builder-scope-panel[data-scope=\"base\"]>.sgd-builder-recipe,.sgd-builder-scope-panel[data-scope=\"base\"]>.sgd-builder-section,.sgd-builder-scope-panel[data-scope=\"base\"]>.sgd-builder-section:nth-last-child(-n+2){grid-column:1}.sgd-builder-hardware-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}.sgd-builder-output{box-shadow:0 1px 2px color-mix(in oklch, var(--sgdb-ink) 5%, transparent)}}html.dark .sgd-command-builder,[data-theme=\"dark\"] .sgd-command-builder{--sgdb-surface: oklch(24% 0.015 258);--sgdb-raised: oklch(27% 0.015 258);--sgdb-ink: oklch(94% 0.006 80);--sgdb-muted: oklch(71% 0.012 258);--sgdb-line: rgba(255, 255, 255, 0.09);--sgdb-brand: oklch(70% 0.14 40);--sgdb-serve: oklch(74% 0.11 45);--sgdb-request: oklch(77% 0.1 64);--sgdb-ok: oklch(74% 0.11 153);--sgdb-warn: oklch(76% 0.11 78);--sgdb-error: oklch(73% 0.14 25);--sgdb-well: rgba(0, 0, 0, 0.32);--sgdb-well-inset: inset 0 1px 2px rgba(0, 0, 0, 0.4);--sgdb-thumb-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));--sgdb-thumb-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16),\n inset 0 1px 0 rgba(255, 255, 255, 0.13),\n 0 2px 8px rgba(0, 0, 0, 0.35);--sgdb-pick-hover: rgba(255, 255, 255, 0.06);--sgdb-code-bg: oklch(18% 0.012 258);--sgdb-code-inset: rgba(0, 0, 0, 0.5);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.06),\n 0 16px 40px -16px rgba(0, 0, 0, 0.5)}@media (prefers-reduced-motion: reduce){.sgd-command-builder *,.sgd-command-builder *::before,.sgd-command-builder *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}html.dark .sgd-model-catalog,[data-theme=\"dark\"] .sgd-model-catalog,html.dark .sgd-model-entry,[data-theme=\"dark\"] .sgd-model-entry{border-color:rgba(148, 163, 184, 0.2)}html.dark .sgd-model-entry-meta h3,[data-theme=\"dark\"] .sgd-model-entry-meta h3{color:rgb(241, 245, 249)}html.dark .sgd-model-entry .sgd-model-id code,[data-theme=\"dark\"] .sgd-model-entry .sgd-model-id code{background:transparent;color:rgb(203, 213, 225)}html.dark .sgd-model-entry-note,[data-theme=\"dark\"] .sgd-model-entry-note{color:rgb(148, 163, 184)}html.dark .sgd-model-entry-link,[data-theme=\"dark\"] .sgd-model-entry-link{color:rgb(251, 146, 60)}html.dark .sgd-chip,[data-theme=\"dark\"] .sgd-chip{border-color:rgba(251, 146, 60, 0.3);background:rgba(251, 146, 60, 0.12);color:rgb(253, 186, 116)}html.dark .sgd-model-tags .sgd-chip,[data-theme=\"dark\"] .sgd-model-tags .sgd-chip{border:0;background:rgba(129, 140, 248, 0.18);color:rgb(199, 210, 254)}.prose strong,.prose b{font-weight:600}:not(pre)>code{background-color:rgba(0, 0, 0, 0.07);font-weight:600}html.dark :not(pre)>code,[data-theme=\"dark\"] :not(pre)>code{background-color:rgba(255, 255, 255, 0.13);font-weight:600}"}],"page":{"pagePath":"cookbook/intro","slug":"/cookbook/intro","pageMetadata":{"title":"SGLang Cookbook","metatags":{"description":"The SGLang Cookbook is a practical collection of examples and guides that show developers how to efficiently run SGLang with a variety of models on different platforms."},"description":null,"href":"/cookbook/intro"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const PopularModels=({models=[],variant=`strip`,interval=variant===`hero`?9e3:6e3,label=`Popular models`})=>{const _components={a:`a`,..._provideComponents()};const[index,setIndex]=useState(0);const[paused,setPaused]=useState(false);const[reduceMotion,setReduceMotion]=useState(false);useEffect(()=>{if(typeof window===`undefined`||!window.matchMedia)return;const mq=window.matchMedia(`(prefers-reduced-motion: reduce)`);const sync=()=>setReduceMotion(mq.matches);sync();mq.addEventListener(`change`,sync);return()=>mq.removeEventListener(`change`,sync)},[]);const count=models.length;const isHero=variant===`hero`;useEffect(()=>{if(count\u003c2||paused||reduceMotion)return;const id=window.setInterval(()=>setIndex(i=>(i+1)%count),Math.max(2e3,interval));return()=>window.clearInterval(id)},[count,paused,reduceMotion,interval]);const active=count?Math.min(index,count-1):0;if(!count)return null;const navButtonStyle={display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`1.15rem`,height:`1.15rem`,padding:0,border:`1px solid rgba(255, 255, 255, 0.28)`,borderRadius:`999px`,background:`rgba(255, 255, 255, 0.1)`,color:`rgba(255, 255, 255, 0.92)`,fontSize:`0.8rem`,lineHeight:1,cursor:`pointer`};const controls=count>1?_jsxs(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.45rem`},children:[_jsx(`button`,{type:`button`,onClick:()=>setIndex(i=>(i-1+count)%count),\"aria-label\":`Previous model`,style:navButtonStyle,children:`‹`}),_jsx(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.3rem`},children:models.map((m,i)=>_jsx(`button`,{type:`button`,onClick:()=>setIndex(i),\"aria-label\":`Show ${m.name}`,\"aria-current\":i===active?`true`:undefined,style:{width:i===active?`1.1rem`:`0.4rem`,height:`0.4rem`,padding:0,border:0,borderRadius:`999px`,background:i===active?`rgba(255, 255, 255, 0.92)`:`rgba(255, 255, 255, 0.34)`,cursor:`pointer`,transition:reduceMotion?`none`:`width 0.25s ease, background 0.25s ease`}},m.href||m.name))}),_jsx(`button`,{type:`button`,onClick:()=>setIndex(i=>(i+1)%count),\"aria-label\":`Next model`,style:navButtonStyle,children:`›`})]}):null;const slideStyle=i=>({flex:`0 0 100%`,minWidth:0,opacity:i===active?1:0,pointerEvents:i===active?`auto`:`none`,transition:reduceMotion?`none`:`opacity 0.3s ease`});const tagChip=(t,big)=>_jsx(`span`,{style:{padding:big?`0.35rem 0.65rem`:`0.15rem 0.45rem`,borderRadius:`999px`,background:big?`rgba(255, 255, 255, 0.1)`:`rgba(255, 255, 255, 0.12)`,color:`rgba(255, 255, 255, 0.9)`,fontSize:big?`0.78rem`:`0.68rem`,fontWeight:650,whiteSpace:big?`normal`:`nowrap`},children:t},t);const heroSlide=(m,i)=>{const hero=m.hero||{};const cta=hero.cta||`Open the ${m.name} cookbook`;return _jsx(`div`,{\"aria-hidden\":i===active?undefined:`true`,style:slideStyle(i),children:_jsxs(`div`,{style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:`clamp(1.25rem, 3vw, 2rem)`},children:[_jsxs(`div`,{style:{flex:`1 1 24rem`,minWidth:0},children:[_jsx(_components.a,{href:m.href,tabIndex:i===active?undefined:-1,style:{display:`block`,margin:0,color:`#ffffff`,fontSize:`clamp(1.75rem, 4vw, 2.65rem)`,fontWeight:750,lineHeight:1.08,letterSpacing:`-0.035em`,textDecoration:`none`},children:hero.headline||m.name}),hero.blurb?_jsx(`div`,{style:{maxWidth:`48rem`,margin:`1rem 0 0`,color:`rgba(255, 255, 255, 0.82)`,fontSize:`1rem`,lineHeight:1.65},children:hero.blurb}):null,_jsx(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`0.5rem`,marginTop:`1.15rem`},children:(hero.tags||m.tags||[]).map(t=>tagChip(t,true))}),_jsxs(_components.a,{href:m.href,tabIndex:i===active?undefined:-1,style:{display:`inline-flex`,alignItems:`center`,marginTop:`1.35rem`,padding:`0.7rem 1rem`,borderRadius:`0.55rem`,background:`#ffffff`,color:`#7c2d12`,fontSize:`0.88rem`,fontWeight:750,textDecoration:`none`},children:[cta,`\\xA0→`]})]}),_jsxs(_components.a,{href:m.href,\"aria-label\":cta,tabIndex:i===active?undefined:-1,style:{flex:`0 1 12rem`,minWidth:`10rem`,padding:`0.8rem`,border:`1px solid rgba(255, 255, 255, 0.22)`,borderRadius:`0.9rem`,background:`rgba(255, 255, 255, 0.96)`,boxShadow:`0 16px 35px rgba(0, 0, 0, 0.22)`,textDecoration:`none`},children:[_jsx(`div`,{role:`img`,\"aria-label\":m.vendor||m.name,style:{width:`100%`,aspectRatio:`16 / 9`,borderRadius:`0.45rem`,backgroundColor:`#ffffff`,backgroundImage:`url('${m.logo}')`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`}}),hero.caption?_jsx(`div`,{style:{padding:`0.65rem 0.35rem 0.2rem`,color:`#111827`,textAlign:`center`,fontSize:`0.78rem`,fontWeight:750,letterSpacing:`0.06em`,textTransform:`uppercase`},children:hero.caption}):null]})]})},m.href||m.name)};const stripSlide=(m,i)=>_jsxs(_components.a,{href:m.href,\"aria-hidden\":i===active?undefined:`true`,tabIndex:i===active?undefined:-1,style:{...slideStyle(i),display:`flex`,alignItems:`center`,gap:`0.75rem`,color:`#ffffff`,textDecoration:`none`},children:[_jsx(`span`,{role:`img`,\"aria-label\":m.vendor||m.name,style:{flex:`0 0 auto`,width:`3.4rem`,aspectRatio:`16 / 9`,borderRadius:`0.35rem`,border:`1px solid rgba(255, 255, 255, 0.22)`,backgroundColor:`#ffffff`,backgroundImage:`url('${m.logo}')`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`}}),_jsxs(`span`,{style:{flex:`1 1 auto`,minWidth:0},children:[_jsxs(`span`,{style:{display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`0.4rem`},children:[_jsx(`span`,{style:{fontSize:`1.02rem`,fontWeight:750,letterSpacing:`-0.02em`,lineHeight:1.2},children:m.name}),m.badge?_jsx(`span`,{style:{padding:`0.1rem 0.4rem`,borderRadius:`999px`,background:`rgba(255, 255, 255, 0.92)`,color:`#7c2d12`,fontSize:`0.6rem`,fontWeight:800,letterSpacing:`0.06em`,textTransform:`uppercase`},children:m.badge}):null]}),_jsx(`span`,{style:{display:`flex`,flexWrap:`wrap`,gap:`0.3rem`,marginTop:`0.35rem`},children:(m.tags||[]).map(t=>tagChip(t,false))})]}),_jsx(`span`,{style:{flex:`0 0 auto`,padding:`0.25rem 0.55rem`,borderRadius:`0.4rem`,background:`rgba(255, 255, 255, 0.92)`,color:`#7c2d12`,fontSize:`0.7rem`,fontWeight:750,whiteSpace:`nowrap`},children:`Open\\xA0→`})]},m.href||m.name);return _jsx(`div`,{className:`not-prose`,children:_jsxs(`div`,{onMouseEnter:()=>setPaused(true),onMouseLeave:()=>setPaused(false),onFocus:()=>setPaused(true),onBlur:()=>setPaused(false),\"aria-roledescription\":`carousel`,\"aria-label\":label,style:{position:`relative`,overflow:`hidden`,margin:isHero?`0 0 1.5rem`:`1.5rem 0`,padding:isHero?`clamp(1.5rem, 4vw, 2.5rem)`:`0.8rem 1rem 0.9rem`,border:`1px solid rgba(251, 146, 60, 0.35)`,borderRadius:isHero?`1rem`:`0.9rem`,background:`linear-gradient(135deg, #111827 0%, #31202f 58%, #9a3412 100%)`,boxShadow:isHero?`0 20px 45px rgba(17, 24, 39, 0.18)`:`0 14px 32px rgba(17, 24, 39, 0.16)`,color:`#ffffff`},children:[_jsx(`div`,{\"aria-hidden\":`true`,style:{position:`absolute`,top:isHero?`-7rem`:`-6rem`,right:isHero?`-5rem`:`-4rem`,width:isHero?`18rem`:`14rem`,height:isHero?`18rem`:`14rem`,borderRadius:`999px`,background:`rgba(251, 146, 60, 0.18)`,filter:`blur(2px)`}}),_jsxs(`div`,{style:{position:`relative`,zIndex:1,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`0.75rem`,flexWrap:`wrap`,marginBottom:isHero?`0.9rem`:`0.6rem`},children:[_jsxs(`span`,{style:isHero?{display:`inline-flex`,alignItems:`center`,gap:`0.45rem`,padding:`0.35rem 0.7rem`,border:`1px solid rgba(255, 255, 255, 0.28)`,borderRadius:`999px`,background:`rgba(255, 255, 255, 0.1)`,fontSize:`0.72rem`,fontWeight:750,letterSpacing:`0.08em`,textTransform:`uppercase`}:{display:`inline-flex`,alignItems:`center`,gap:`0.35rem`,color:`rgba(255, 255, 255, 0.78)`,fontSize:`0.66rem`,fontWeight:750,letterSpacing:`0.1em`,textTransform:`uppercase`},children:[_jsx(`span`,{\"aria-hidden\":`true`,children:`✦`}),isHero?((models[active]||{}).hero||{}).eyebrow||label:label]}),controls]}),_jsx(`div`,{style:{position:`relative`,zIndex:1,overflow:`hidden`},children:_jsx(`div`,{style:{display:`flex`,alignItems:isHero?`stretch`:`center`,transform:`translateX(-${active*100}%)`,transition:reduceMotion?`none`:`transform 0.45s ease`},children:models.map((m,i)=>isHero?heroSlide(m,i):stripSlide(m,i))})})]})})};const popularModels=[{name:`ERNIE-5.5-Flash`,vendor:`ERNIE`,href:`/cookbook/autoregressive/Baidu/ERNIE-5.5-Flash`,logo:`/cards/logos/ernie.svg`,badge:`New`,tags:[`5 platforms`,`HCA + MLA-DSA hybrid`,`FP8 / BF16`],hero:{eyebrow:`Featured model · New`,headline:`Meet ERNIE-5.5-Flash on SGLang`,blurb:`280B/14B multi-router latent MoE combining HCA and MLA-DSA attention, with ECHO speculative decoding. Recipes cover B300, GB300, B200, GB200 and H100, with HiCache and PD disaggregation.`,tags:[`280B / 14B active`,`HCA + MLA-DSA`,`ECHO speculative decoding`],cta:`Open the ERNIE-5.5-Flash cookbook`,caption:`ERNIE-5.5-Flash deployment guide`}},{name:`Kimi-K3.1-Pro`,vendor:`Moonshot AI`,href:`/cookbook/autoregressive/Moonshotai/Kimi-K3.1-Pro`,logo:`/cards/logos/moonshotai.png`,badge:`New`,tags:[`12 platforms`,`KDA + DSA hybrid`,`MXFP4`],hero:{eyebrow:`Featured model · New`,headline:`Meet Kimi K3.1 Pro on SGLang`,blurb:`Moonshot AI's open-weight, natively multimodal agentic model — 2.8T total parameters with 104B active, 69 KDA linear-attention and 24 Gated Sparse-MLA (DSA) layers over 896 experts, a MoonViT-V2 vision encoder for image input, and MXFP4 weights. Recipes cover NVIDIA Vera Rubin, Blackwell and Hopper, AMD MI350X / MI355X, PPU and Google TPU7x, with DFLASH speculative decoding and PD disaggregation.`,tags:[`2.8T / 104B active`,`1M context`,`NVIDIA + AMD + PPU + TPU`],cta:`Open the Kimi K3.1 Pro cookbook`,caption:`Kimi K3.1 Pro deployment guide`}},{name:`Muse Spark Open`,vendor:`Meta`,href:`/cookbook/autoregressive/Meta/MuseSparkOpen`,logo:`/cards/logos/meta.png`,badge:`New`,tags:[`6 platforms`,`SWA + full attention`,`NVFP4 / MXFP4 / BF16 / INT4`],hero:{eyebrow:`Featured model · New`,headline:`Meet Muse Spark Open on SGLang`,blurb:`Meta's open Muse Spark model — a hybrid of 46 sliding-window (2,048-token) and 16 full-attention layers, with image and video input, DFlash V2 speculative decoding, and EPD / PD disaggregation. Recipes cover B300, GB300, B200, H200, AMD MI355X, and Intel Xeon, plus an SWA-ratio calculator for sizing the KV pools.`,tags:[`46 SWA + 16 full-attn layers`,`Up to 1M context`,`NVIDIA + AMD + Xeon`],cta:`Open the Muse Spark Open cookbook`,caption:`Muse Spark Open deployment guide`}},{name:`DeepSeek-V4.1-Flash`,vendor:`DeepSeek`,href:`/cookbook/autoregressive/DeepSeek/DeepSeek-V4_1`,logo:`/cards/logos/deepseek.png`,badge:`New`,tags:[`5 platforms`,`Engram + DSpark`,`FP8 dense / FP4 MoE`],hero:{eyebrow:`Featured model · New`,headline:`Meet DeepSeek-V4.1 Flash on SGLang`,blurb:\"DeepSeek's sparse-attention Mixture-of-Experts model, served through SGLang's `dsv4` backend — pairing multi-ratio compressed KV pools behind FlashMLA with a learned sparse index that picks a top-512 candidate set per query, an mHC mixing stage, and Engram, an n-gram hash memory whose two fp8 tables are roughly 40% of the checkpoint. It ships DSpark, its own three-stage speculative draft. Recipes cover GB300, H200, B200, B300 and AMD MI350X.\",tags:[`384 experts / top-6`,`Sparse index + Engram`,`NVIDIA + AMD`],cta:`Open the DeepSeek-V4.1 Flash cookbook`,caption:`DeepSeek-V4.1 Flash deployment guide`}},{name:`Qwen3.8-Flash-Next`,vendor:`Qwen`,href:`/cookbook/autoregressive/Qwen/Qwen3.8-Flash-Next`,logo:`/cards/logos/qwen.png`,badge:`New`,tags:[`6 platforms`,`GDN + QSA hybrid`,`BF16 / FP8 / NVFP4`],hero:{eyebrow:`Featured model · New`,headline:`Meet Qwen3.8-Flash-Next on SGLang`,blurb:`Qwen's early preview of the Qwen4 architecture — 176B total parameters with 6B active, three of every four layers Gated DeltaNet and the fourth global attention running Qwen Sparse Attention, over an ultra-sparse MoE with an in-checkpoint MTP head. The cookbook covers single-node TP4 serving on H200 / B200 / B300 / GB300 and TP8 on MI350X / MI355X.`,tags:[`176B / 6B active`,`262K context`,`Single-node`],cta:`Open the Qwen3.8-Flash-Next cookbook`,caption:`Qwen3.8-Flash-Next deployment guide`}},{name:`GLM-5.3-Flash`,vendor:`Z.ai`,href:`/cookbook/autoregressive/GLM/GLM-5.3-Flash`,logo:`/cards/logos/glm.png`,badge:`New`,tags:[`9 platforms`,`MLA + DSA + KDA hybrid`,`Multimodal`],hero:{eyebrow:`Featured model · New`,headline:`Meet GLM-5.3-Flash on SGLang`,blurb:`Z.ai's natively multimodal Mixture-of-Experts model — 320B total parameters with 18B active, 45 text layers combining MLA, DSA sparse, and KDA linear attention, a 24-layer vision encoder for image and video input, and a native MTP draft layer for speculative decoding. Recipes cover H100 / H200 / B200 / B300 / GB200 / GB300 and AMD MI300X / MI325X / MI355X.`,tags:[`320B / 18B active`,`1M context`,`Text + image + video`],cta:`Open the GLM-5.3-Flash cookbook`,caption:`GLM-5.3-Flash deployment guide`}},{name:`MiniMax-H3`,vendor:`MiniMax`,href:`/cookbook/diffusion/MiniMax/MiniMax-H3`,logo:`/cards/logos/minimax.png`,badge:`New`,tags:[`7 platforms`,`Video + audio`,`BF16 / FP8`],hero:{eyebrow:`Featured model · New`,headline:`Meet MiniMax-H3 on SGLang`,blurb:`MiniMax's video-and-audio diffusion model — one request returns an MP4 carrying 24 fps video and a synchronized stereo audio track. SGLang Diffusion serves all three task profiles — text, first/last frame, and image / video / audio reference conditioning — with Ulysses × Ring sequence parallelism and recipes across B200, B300, H200, H100, AMD MI300X / MI355X, and 2× RTX 5090.`,tags:[`Video + synced audio`,`4–15 s at 24 fps`,`8× B200 → 2× RTX 5090`],cta:`Open the MiniMax-H3 cookbook`,caption:`MiniMax-H3 deployment guide`}}];function _createMdxContent(props){const _components={p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Card,CardGroup,Heading,_MdxComponentBoundary}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A community-maintained repository of practical guides and recipes for deploying and using SGLang in production environments. Our mission is simple: answer the question `,_jsx(_components.strong,{children:`“How do I use SGLang (and related models) on hardware Y for task Z?”`}),` with clear, actionable solutions.`]}),`\n`,_jsx(_MdxComponentBoundary,{name:`PopularModels`,children:_jsx(PopularModels,{models:popularModels})}),`\n`,_jsx(Heading,{level:`2`,id:`guides`,children:`Guides`}),`\n`,_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`Autoregressive Models`,mode:`card`,href:`/cookbook/autoregressive/intro`,img:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=6d3771893af1e31698e95d40c836a115`,\"data-og-width\":`940`,width:`940`,\"data-og-height\":`525`,height:`525`,\"data-path\":`cards/Autoregressive-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=ff1759b5b40c7b7595fab5694aa1bce9 280w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=da44b19de9905f3dd76cc735d8269678 560w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=f88045089c302518d86a58c205a04714 840w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=599ffd3ea4d7f57c163d5a14a4cf8480 1100w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=8629a2e0441c4a1d9b97ea6f01d09ee8 1650w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=1bb639d517de1b63cf55b12485de3810 2500w`}),_jsx(Card,{title:`Diffusion Models`,mode:`card`,href:`/cookbook/diffusion/intro`,img:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=a9c4d23dce80ed6ebdd383c96a832432`,\"data-og-width\":`940`,width:`940`,\"data-og-height\":`525`,height:`525`,\"data-path\":`cards/Diffusion-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=ab31300cd98be7ec301dea78423bddec 280w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=4da7b7d13e2734de15f57a44d3c7edaa 560w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=f082026ba7c06ad04539641f5f32e38f 840w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=7864e8208c08f2c1629022ee55783d01 1100w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=4786f8ec22892f0f8969411ea9cf33c6 1650w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=91358ff5c0f0bf7ddef72ad29d2c40b5 2500w`}),_jsx(Card,{title:`VLA (Vision-Language-Action) Models`,mode:`card`,href:`/cookbook/vla/intro`,img:`https://mintcdn.com/lmsysorg/xXUpjEWGBwoM_nS1/cards/VLA-card.png?fit=max\u0026auto=format\u0026n=xXUpjEWGBwoM_nS1\u0026q=85\u0026s=0ac1849860240bad06c93f9d7a53807d`,\"data-og-width\":`940`,width:`940`,\"data-og-height\":`525`,height:`525`,\"data-path\":`cards/VLA-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/lmsysorg/xXUpjEWGBwoM_nS1/cards/VLA-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=xXUpjEWGBwoM_nS1\u0026q=85\u0026s=46a94dde0a16e8e12909990daca877c7 280w, https://mintcdn.com/lmsysorg/xXUpjEWGBwoM_nS1/cards/VLA-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=xXUpjEWGBwoM_nS1\u0026q=85\u0026s=0c046a79261430533e8e1d0150887e34 560w, https://mintcdn.com/lmsysorg/xXUpjEWGBwoM_nS1/cards/VLA-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=xXUpjEWGBwoM_nS1\u0026q=85\u0026s=1ef97befc7f088a38a244b4d50103b99 840w, https://mintcdn.com/lmsysorg/xXUpjEWGBwoM_nS1/cards/VLA-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=xXUpjEWGBwoM_nS1\u0026q=85\u0026s=b9fc4950e9e646e13c4b893eb04dfdc7 1100w, https://mintcdn.com/lmsysorg/xXUpjEWGBwoM_nS1/cards/VLA-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=xXUpjEWGBwoM_nS1\u0026q=85\u0026s=157df2ba9528886308ade4bee18c987b 1650w, https://mintcdn.com/lmsysorg/xXUpjEWGBwoM_nS1/cards/VLA-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=xXUpjEWGBwoM_nS1\u0026q=85\u0026s=dac573018bff1461c12e54964f32cd80 2500w`})]}),`\n`,_jsx(Heading,{level:`2`,id:`benchmarks`,children:`Benchmarks`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Autoregressive Model Benchmark`,mode:`card`,href:`/cookbook/base/benchmarks/autoregressive_model_benchmark`,img:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=2c81d528ead52e31b4af8c0dde5a9c0e`,\"data-og-width\":`940`,width:`940`,\"data-og-height\":`525`,height:`525`,\"data-path\":`cards/Autoregressive-benchmark-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=11a9dd6d43d642861cc73cfc99f2b438 280w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=3cc38bb67befed472c1c73c56d01bbcc 560w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=8db1d3b0f7a2165d3b3d891f2656b779 840w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=09e791697af4461c59f463522670d432 1100w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=46b630b55936c570b074bc2206e258ca 1650w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Autoregressive-benchmark-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=7afc42c64a13d86afb7c14b2bfd9f6f5 2500w`}),_jsx(Card,{title:`Diffusion Model Benchmark`,mode:`card`,href:`/cookbook/base/benchmarks/diffusion_model_benchmark`,img:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=f5e003d28ba353b86e295ad4cfdf5be8`,\"data-og-width\":`940`,width:`940`,\"data-og-height\":`525`,height:`525`,\"data-path\":`cards/Diffusion-benchmark-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=8d421ff7d68964df7478f5ca38a87c3c 280w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=5e36c933c736e4517d0f904298bc07c1 560w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=1db79353ca42ecadef1e5ad3e042f372 840w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=530e6259a2389d4a57d4a533320be200 1100w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=832d54cdc3e57da13d4f7ec108467965 1650w, https://mintcdn.com/lmsysorg/IW-2Jgsua6hZ_X1V/cards/Diffusion-benchmark-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IW-2Jgsua6hZ_X1V\u0026q=85\u0026s=ec64a284bbc777042f5da8c87da7ab4d 2500w`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{PopularModels,popularModels,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"SGLang Cookbook","metatags":{"description":"The SGLang Cookbook is a practical collection of examples and guides that show developers how to efficiently run SGLang with a variety of models on different platforms."},"description":null,"href":"/cookbook/intro"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[149,13749,")=>null;const popularModels=undefined;fu"]]},"mdxExtracts":{"tableOfContents":[{"title":"Guides","slug":"guides","depth":2,"children":[]},{"title":"Benchmarks","slug":"benchmarks","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"lmsysorg","siteName":"SGLang Documentation","title":"SGLang Cookbook - SGLang Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T14:33:48.543Z","originalFileLocation":"cookbook/intro.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"SGLang Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"SGLang Cookbook - SGLang Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SGLang Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sglang.io/cookbook/intro\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lmsysorg.mintlify.site/_mintlify/api/og/v2?division=Cookbook\u0026amp;title=SGLang+Cookbook\u0026amp;theme=182b9b387c023e0456121174\u0026amp;signature=d99a2a84e3d40354cc6b2a1790d25b8226d561c556f5bf4360e50cb5a9a6f045\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"SGLang Cookbook - SGLang Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lmsysorg.mintlify.site/_mintlify/api/og/v2?division=Cookbook\u0026amp;title=SGLang+Cookbook\u0026amp;theme=182b9b387c023e0456121174\u0026amp;signature=d99a2a84e3d40354cc6b2a1790d25b8226d561c556f5bf4360e50cb5a9a6f045\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lmsysorg/HxNR9zohmNorO5Pc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SGLang Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#d55816\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"bX3ofyYQhraIpAYf4DpyZQXZO_G4xLR_RqeBAKnJA7g\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sglang.io/cookbook/intro\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cookbook/intro.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sglang.io/#organization\",\"name\":\"SGLang Documentation\",\"url\":\"https://docs.sglang.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lmsysorg/iZdDMbLWP1BLEIzC/logo/logo.png?fit=max\u0026auto=format\u0026n=iZdDMbLWP1BLEIzC\u0026q=85\u0026s=b27d467947ee2167744cb07b69badf00\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sglang.io#website\",\"name\":\"SGLang Documentation\",\"url\":\"https://docs.sglang.io\",\"publisher\":{\"@id\":\"https://docs.sglang.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sglang.io/cookbook/intro#webpage\",\"url\":\"https://docs.sglang.io/cookbook/intro\",\"name\":\"SGLang Cookbook\",\"dateModified\":\"2026-11-12T14:33:48.543Z\",\"isPartOf\":{\"@id\":\"https://docs.sglang.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sglang.io/cookbook/intro#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sglang.io/cookbook/intro#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SGLang Documentation\",\"item\":\"https://docs.sglang.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SGLang Cookbook\",\"item\":\"https://docs.sglang.io/cookbook/intro\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sglang.io/cookbook/intro#article\",\"headline\":\"SGLang Cookbook\",\"name\":\"SGLang Cookbook\",\"url\":\"https://docs.sglang.io/cookbook/intro\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sglang.io/cookbook/intro#webpage\"},\"dateModified\":\"2026-11-12T14:33:48.543Z\",\"publisher\":{\"@id\":\"https://docs.sglang.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sglang.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SGLang Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SGLang Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cookbook/intro.md","siteName":"SGLang Documentation","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"User Guide","pages":[{"title":"User Guide","href":"/docs/basic_usage/overview"}]},{"tab":"Hardware","pages":[{"title":"Hardware","href":"/docs/hardware-platforms/overview"}]},{"tab":"Cookbook","groups":[{"group":"Cookbook","icon":"book","pages":[{"title":"SGLang Cookbook","href":"/cookbook/intro"},{"group":"Autoregressive Models","pages":[{"title":"Overview","mode":"wide","description":"Practical guides for deploying and using large language models and vision language models with SGLang.","href":"/cookbook/autoregressive/intro"},{"group":"Baidu","pages":[{"title":"ERNIE-5.5-Flash","tag":"NEW","href":"/cookbook/autoregressive/Baidu/ERNIE-5.5-Flash"},{"title":"Ernie4.5","href":"/cookbook/autoregressive/Baidu/Ernie4.5"},{"title":"Ernie4.5-VL","href":"/cookbook/autoregressive/Baidu/Ernie4.5-VL"},{"title":"Unlimited-OCR-2","tag":"NEW","href":"/cookbook/autoregressive/Baidu/Unlimited-OCR-2"},{"title":"PaddleOCR-VL","href":"/cookbook/autoregressive/Baidu/PaddleOCR-VL"},{"title":"Unlimited-OCR","href":"/cookbook/autoregressive/Baidu/Unlimited-OCR"}]},{"group":"Cloudflare","pages":[{"title":"Clef","tag":"NEW","href":"/cookbook/autoregressive/Cloudflare/clef"}]},{"group":"DeepReinforce","pages":[{"title":"Ornith-1.5","tag":"NEW","href":"/cookbook/autoregressive/DeepReinforce/Ornith-1.5"},{"title":"Ornith-1.0","href":"/cookbook/autoregressive/DeepReinforce/Ornith-1.0"}]},{"group":"DeepSeek","pages":[{"title":"DeepSeek-V4.1","tag":"NEW","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-V4_1"},{"title":"DeepSeek-V4","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-V4"},{"title":"DeepSeek-V3.2","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-V3_2"},{"title":"DeepSeek-V3.1","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-V3_1"},{"title":"DeepSeek-V3","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-V3"},{"title":"DeepSeek-R1","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-R1"},{"title":"DeepSeek-Math-V2","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-Math-V2"},{"title":"DeepSeek-OCR","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-OCR"},{"title":"DeepSeek-OCR-2","href":"/cookbook/autoregressive/DeepSeek/DeepSeek-OCR-2"}]},{"group":"FlashLabs","pages":[{"title":"Chroma-1.0","href":"/cookbook/autoregressive/FlashLabs/Chroma1.0"}]},{"group":"GigaChat","pages":[{"title":"GigaChat 3.5","tag":"NEW","href":"/cookbook/autoregressive/GigaChat/GigaChat3.5"},{"title":"GigaChat 3.5 Reasoning","tag":"NEW","href":"/cookbook/autoregressive/GigaChat/GigaChat3.5-Reasoning"}]},{"group":"GLM (ZAI)","pages":[{"title":"GLM-5.3","tag":"NEW","href":"/cookbook/autoregressive/GLM/GLM-5.3"},{"title":"GLM-5.3-Flash","tag":"NEW","href":"/cookbook/autoregressive/GLM/GLM-5.3-Flash"},{"title":"GLM-5.2","href":"/cookbook/autoregressive/GLM/GLM-5.2"},{"title":"GLM-5.1","href":"/cookbook/autoregressive/GLM/GLM-5.1"},{"title":"GLM-5","href":"/cookbook/autoregressive/GLM/GLM-5"},{"title":"GLM-OCR","href":"/cookbook/autoregressive/GLM/GLM-OCR"},{"title":"GLM Glyph","href":"/cookbook/autoregressive/GLM/GLM-Glyph"},{"title":"GLM-4.7","href":"/cookbook/autoregressive/GLM/GLM-4.7"},{"title":"GLM-4.7-Flash","href":"/cookbook/autoregressive/GLM/GLM-4.7-Flash"},{"title":"GLM-4.6","href":"/cookbook/autoregressive/GLM/GLM-4.6"},{"title":"GLM-4.6V","href":"/cookbook/autoregressive/GLM/GLM-4.6V"},{"title":"GLM-4.5","href":"/cookbook/autoregressive/GLM/GLM-4.5"},{"title":"GLM-4.5V","href":"/cookbook/autoregressive/GLM/GLM-4.5V"}]},{"group":"Google","pages":[{"title":"EmbeddingGemma","tag":"NEW","href":"/cookbook/autoregressive/Google/EmbeddingGemma"},{"title":"EmbeddingGemma 2","tag":"NEW","href":"/cookbook/autoregressive/Google/EmbeddingGemma2"},{"title":"Gemma 4","tag":"NEW","href":"/cookbook/autoregressive/Google/Gemma4"},{"title":"DiffusionGemma","tag":"NEW","href":"/cookbook/autoregressive/Google/DiffusionGemma"}]},{"group":"IBM","pages":[{"title":"Granite 4.2","tag":"NEW","href":"/cookbook/autoregressive/IBM/Granite-4.2"}]},{"group":"IFM","pages":[{"title":"Jais 3","tag":"NEW","href":"/cookbook/autoregressive/IFM/Jais-3"},{"title":"K2 Horizon","tag":"NEW","href":"/cookbook/autoregressive/IFM/K2-Horizon"}]},{"group":"InclusionAI","pages":[{"title":"Ling-3.1-flash","tag":"NEW","href":"/cookbook/autoregressive/InclusionAI/Ling-3.1-flash"},{"title":"Ling-3.0-flash-VL","href":"/cookbook/autoregressive/InclusionAI/Ling-3.0-flash-VL"},{"title":"Ling-3.0-flash","href":"/cookbook/autoregressive/InclusionAI/Ling-3.0-flash"},{"title":"Ling-3.0-tiny","href":"/cookbook/autoregressive/InclusionAI/Ling-3.0-tiny"},{"title":"Ring-2.6-1T","href":"/cookbook/autoregressive/InclusionAI/Ring-2.6-1T"},{"title":"Ling-2.6","href":"/cookbook/autoregressive/InclusionAI/Ling-2.6"},{"title":"Ling-2.5-1T","href":"/cookbook/autoregressive/InclusionAI/Ling-2.5-1T"},{"title":"Ring-2.5-1T","href":"/cookbook/autoregressive/InclusionAI/Ring-2.5-1T"},{"title":"LLaDA 2.1","href":"/cookbook/autoregressive/InclusionAI/LLaDA-2.1"}]},{"group":"InternLM","pages":[{"title":"Intern-S2-Mobius","tag":"NEW","href":"/cookbook/autoregressive/InternLM/Intern-S2-Mobius"},{"title":"Intern-S2-Preview","href":"/cookbook/autoregressive/InternLM/Intern-S2-Preview"},{"title":"Intern-S1","href":"/cookbook/autoregressive/InternLM/Intern-S1"}]},{"group":"InternVL","pages":[{"title":"InternVL3.5","href":"/cookbook/autoregressive/InternVL/InternVL3.5"}]},{"group":"IQuestLab","pages":[{"title":"IQuest-Q1","tag":"NEW","href":"/cookbook/autoregressive/IQuestLab/IQuest-Q1"}]},{"group":"Jina AI","pages":[{"title":"Jina-reranker-m0","href":"/cookbook/autoregressive/Jina/Jina-reranker-m0"}]},{"group":"Kev","pages":[{"title":"Kev","tag":"NEW","href":"/cookbook/autoregressive/Kev/kev"}]},{"group":"Kimi (Moonshot AI)","pages":[{"title":"Kimi-K3.1-Pro","tag":"NEW","href":"/cookbook/autoregressive/Moonshotai/Kimi-K3.1-Pro"},{"title":"Kimi-K3","href":"/cookbook/autoregressive/Moonshotai/Kimi-K3"},{"title":"Kimi-K2.7-Code","href":"/cookbook/autoregressive/Moonshotai/Kimi-K2.7-Code"},{"title":"Kimi-K2.6","href":"/cookbook/autoregressive/Moonshotai/Kimi-K2.6"},{"title":"Kimi-K2.5","href":"/cookbook/autoregressive/Moonshotai/Kimi-K2.5"},{"title":"Kimi-K2","href":"/cookbook/autoregressive/Moonshotai/Kimi-K2"},{"title":"Kimi-Linear","href":"/cookbook/autoregressive/Moonshotai/Kimi-Linear"}]},{"group":"LiquidAI","pages":[{"title":"LFM3","tag":"NEW","href":"/cookbook/autoregressive/LiquidAI/LFM3"},{"title":"LFM2.5","href":"/cookbook/autoregressive/LiquidAI/LFM2.5"}]},{"group":"Meituan","pages":[{"title":"LongCat-2.0","tag":"NEW","href":"/cookbook/autoregressive/Meituan/LongCat-2.0"}]},{"group":"Meta","pages":[{"title":"Muse Spark Open","tag":"NEW","href":"/cookbook/autoregressive/Meta/MuseSparkOpen"},{"title":"Muse Glimmer","href":"/cookbook/autoregressive/Meta/MuseGlimmer"},{"title":"Llama 4","href":"/cookbook/autoregressive/Meta/Llama4"},{"title":"Llama-3.3-70B","href":"/cookbook/autoregressive/Meta/Llama3.3-70B"},{"title":"Llama-3.1","href":"/cookbook/autoregressive/Meta/Llama3.1"}]},{"group":"MiniMax","pages":[{"title":"MiniMax-M3.1","tag":"NEW","href":"/cookbook/autoregressive/MiniMax/MiniMax-M3.1"},{"title":"MiniMax-M3","href":"/cookbook/autoregressive/MiniMax/MiniMax-M3"},{"title":"MiniMax-M2.7","href":"/cookbook/autoregressive/MiniMax/MiniMax-M2.7"},{"title":"MiniMax-M2","href":"/cookbook/autoregressive/MiniMax/MiniMax-M2"},{"title":"MiniMax-M2.5","href":"/cookbook/autoregressive/MiniMax/MiniMax-M2.5"}]},{"group":"Mistral","pages":[{"title":"Mistral Large 4","tag":"NEW","href":"/cookbook/autoregressive/Mistral/Mistral-Large-4"},{"title":"Ministral-3","href":"/cookbook/autoregressive/Mistral/Ministral-3"},{"title":"Mistral Small 4","href":"/cookbook/autoregressive/Mistral/Mistral-Small-4"},{"title":"Mistral Medium 3.5","href":"/cookbook/autoregressive/Mistral/Mistral-Medium-3.5"},{"title":"Devstral 2 (Mistral)","href":"/cookbook/autoregressive/Mistral/Devstral-2"}]},{"group":"NVIDIA","pages":[{"title":"NVIDIA Nemotron 3.5 Super VL","tag":"NEW","href":"/cookbook/autoregressive/NVIDIA/Nemotron3.5-Super"},{"title":"Nemotron3.5-Lightning","href":"/cookbook/autoregressive/NVIDIA/Nemotron3.5-Lightning"},{"title":"NVIDIA Nemotron3-Ultra","tag":"NEW","href":"/cookbook/autoregressive/NVIDIA/Nemotron3-Ultra"},{"title":"Nemotron 3 Nano Omni","href":"/cookbook/autoregressive/NVIDIA/Nemotron3-Nano-Omni"},{"title":"Nemotron3-Nano","href":"/cookbook/autoregressive/NVIDIA/Nemotron3-Nano"},{"title":"NVIDIA Nemotron3-Super","href":"/cookbook/autoregressive/NVIDIA/Nemotron3-Super"}]},{"group":"OpenAI","pages":[{"title":"GPT-OSS","href":"/cookbook/autoregressive/OpenAI/GPT-OSS"}]},{"group":"OpenBMB","pages":[{"title":"MiniCPM-V 4.7","tag":"NEW","href":"/cookbook/autoregressive/OpenBMB/MiniCPM-V-4_7"},{"title":"MiniCPM5-2B","href":"/cookbook/autoregressive/OpenBMB/MiniCPM5-2B"},{"title":"MiniCPM-V 4.6","href":"/cookbook/autoregressive/OpenBMB/MiniCPM-V-4_6"}]},{"group":"Perplexity","pages":[{"title":"PPLX-Decider-v1.1-27B","tag":"NEW","href":"/cookbook/autoregressive/Perplexity/PPLX-Decider-v1.1-27B"},{"title":"PPLX-Decider-v1-27B","href":"/cookbook/autoregressive/Perplexity/PPLX-Decider-v1-27B"}]},{"group":"Poolside","pages":[{"title":"Laguna-S-2.1","tag":"NEW","href":"/cookbook/autoregressive/Poolside/Laguna-S-2.1"},{"title":"Laguna-XS-2.1","href":"/cookbook/autoregressive/Poolside/Laguna-XS-2.1"},{"title":"Laguna-M.1","href":"/cookbook/autoregressive/Poolside/Laguna-M.1"},{"title":"Laguna-XS.2","href":"/cookbook/autoregressive/Poolside/Laguna-XS.2"}]},{"group":"Qwen","pages":[{"title":"Qwen3.8-Flash-Next","tag":"NEW","href":"/cookbook/autoregressive/Qwen/Qwen3.8-Flash-Next"},{"title":"Qwen3.8","href":"/cookbook/autoregressive/Qwen/Qwen3.8"},{"title":"Qwen3.8-27B","href":"/cookbook/autoregressive/Qwen/Qwen3.8-27B"},{"title":"Qwen3.6","href":"/cookbook/autoregressive/Qwen/Qwen3.6"},{"title":"Qwen3.5","href":"/cookbook/autoregressive/Qwen/Qwen3.5"},{"title":"Qwen3","href":"/cookbook/autoregressive/Qwen/Qwen3"},{"title":"Qwen3-Next","href":"/cookbook/autoregressive/Qwen/Qwen3-Next"},{"title":"Qwen3-Coder","href":"/cookbook/autoregressive/Qwen/Qwen3-Coder"},{"title":"Qwen3-Coder-Next","href":"/cookbook/autoregressive/Qwen/Qwen3-Coder-Next"},{"title":"Qwen3-VL","href":"/cookbook/autoregressive/Qwen/Qwen3-VL"},{"title":"Qwen2.5-VL","href":"/cookbook/autoregressive/Qwen/Qwen2.5-VL"}]},{"group":"Recursive","pages":[{"title":"Flint","tag":"NEW","href":"/cookbook/autoregressive/Recursive/Flint"}]},{"group":"RedNote","pages":[{"title":"Dots3-Note","tag":"NEW","href":"/cookbook/autoregressive/RedNote/Dots3-Note"}]},{"group":"Reflection","pages":[{"title":"Beam 1.0","tag":"NEW","href":"/cookbook/autoregressive/Reflection/Beam-1_0"}]},{"group":"StepFun","pages":[{"title":"Step 5 Preview","tag":"NEW","href":"/cookbook/autoregressive/StepFun/Step-5-Preview"},{"title":"Step-3.7-Flash","href":"/cookbook/autoregressive/StepFun/Step-3.7-Flash"},{"title":"Step-3.5-Flash","href":"/cookbook/autoregressive/StepFun/Step3.5"},{"title":"Step3-VL-10B","href":"/cookbook/autoregressive/StepFun/Step3-VL-10B"}]},{"group":"Tencent","pages":[{"title":"Hy4 preview","tag":"NEW","href":"/cookbook/autoregressive/Tencent/Hy4-Preview"},{"title":"Hy3","href":"/cookbook/autoregressive/Tencent/Hy3"},{"title":"Hy3 preview","href":"/cookbook/autoregressive/Tencent/Hunyuan3-Preview"}]},{"group":"Thinking Machines","pages":[{"title":"Inkling-2-Small","tag":"NEW","href":"/cookbook/autoregressive/ThinkingMachines/Inkling-2-Small"},{"title":"Inkling","href":"/cookbook/autoregressive/ThinkingMachines/Inkling"},{"title":"Inkling-Small","href":"/cookbook/autoregressive/ThinkingMachines/Inkling-Small"}]},{"group":"Xiaomi","pages":[{"title":"MiMo-V2.6","tag":"NEW","href":"/cookbook/autoregressive/Xiaomi/MiMo-V2.6"},{"title":"MiMo-V2.5","href":"/cookbook/autoregressive/Xiaomi/MiMo-V2.5"},{"title":"MiMo-V2-Flash","href":"/cookbook/autoregressive/Xiaomi/MiMo-V2-Flash"}]}]},{"group":"Diffusion Models","pages":[{"title":"Overview","mode":"wide","href":"/cookbook/diffusion/intro"},{"group":"Baidu","pages":[{"title":"ERNIE-Image","href":"/cookbook/diffusion/Ernie-Image/Ernie-Image"}]},{"group":"Black Forest Labs","tag":"NEW","pages":[{"title":"FLUX.3","tag":"NEW","href":"/cookbook/diffusion/FLUX/FLUX.3"},{"title":"FLUX","href":"/cookbook/diffusion/FLUX/FLUX"}]},{"group":"CircleStone","pages":[{"title":"Anima","href":"/cookbook/diffusion/CircleStone/Anima"}]},{"group":"HiDream","tag":"NEW","pages":[{"title":"HiDream-O1-Image","tag":"NEW","href":"/cookbook/diffusion/HiDream/HiDream-O1-Image"}]},{"group":"Ideogram","pages":[{"title":"Ideogram 4","href":"/cookbook/diffusion/Ideogram/Ideogram4"}]},{"group":"InclusionAI","pages":[{"title":"Ming-Image","tag":"NEW","href":"/cookbook/diffusion/inclusionAI/Ming-Image"}]},{"group":"JD.com","pages":[{"title":"JoyAI-Echo","href":"/cookbook/diffusion/JoyEcho/JoyEcho"}]},{"group":"Kandinsky","tag":"NEW","pages":[{"title":"Kandinsky6","href":"/cookbook/diffusion/Kandinsky/Kandinsky6"},{"title":"Kandinsky6 SR","href":"/cookbook/diffusion/Kandinsky/Kandinsky6-SR"}]},{"group":"Krea","pages":[{"title":"Krea-2","href":"/cookbook/diffusion/Krea/Krea-2"}]},{"group":"Lightricks","pages":[{"title":"LTX2 \u0026 LTX2.3","href":"/cookbook/diffusion/LTX/LTX2 \u0026 LTX2.3"},{"title":"LTX2.5","href":"/cookbook/diffusion/LTX/LTX2.5"}]},{"group":"Meituan","pages":[{"title":"LongCat-Image","href":"/cookbook/diffusion/LongCat/LongCat-Image"}]},{"group":"MiniMax","pages":[{"title":"MiniMax-H3","href":"/cookbook/diffusion/MiniMax/MiniMax-H3"},{"title":"MiniMax-H3-Image","href":"/cookbook/diffusion/MiniMax/MiniMax-H3-Image"}]},{"group":"NVIDIA","pages":[{"title":"Cosmos3","href":"/cookbook/diffusion/Cosmos/Cosmos3"},{"title":"SANA-Video","href":"/cookbook/diffusion/SANA-Video/SANA-Video"},{"title":"SANA-WM","href":"/cookbook/diffusion/SANA-WM/SANA-WM"},{"title":"LongLive 2.0","href":"/cookbook/diffusion/LongLive/LongLive-2.0"}]},{"group":"OpenMOSS","pages":[{"title":"MOVA","href":"/cookbook/diffusion/MOVA/MOVA"},{"title":"MOSS-Image","tag":"NEW","href":"/cookbook/diffusion/OpenMOSS/MOSS-Image"}]},{"group":"Qwen","pages":[{"title":"Qwen-Image 2.1 and Turbo","tag":"NEW","href":"/cookbook/diffusion/Qwen-Image/Qwen-Image-2.1"},{"title":"Qwen-Image","href":"/cookbook/diffusion/Qwen-Image/Qwen-Image"},{"title":"Qwen-Image-Edit-2511","href":"/cookbook/diffusion/Qwen-Image/Qwen-Image-Edit"}]},{"group":"Robbyant","pages":[{"title":"LingBot Video MoE","href":"/cookbook/diffusion/LingBot-Video/LingBot-Video-MoE"},{"title":"LingBot World","tag":"REALTIME","href":"/cookbook/diffusion/LingBot-World/LingBot-World"},{"title":"LingBot World 2.0","tag":"REALTIME","href":"/cookbook/diffusion/LingBot-World/LingBot-World-2.0"}]},{"group":"SenseNova","pages":[{"title":"SenseNova-U1.5-8B-MoT","href":"/cookbook/diffusion/SenseNova/SenseNova-U1.5-8B-MoT"}]},{"group":"Tencent","pages":[{"title":"HunyuanImage-3.0-Instruct","tag":"NEW","href":"/cookbook/diffusion/Tencent/HunyuanImage3"},{"title":"HY-Nomas","tag":"EXPERIMENTAL","href":"/cookbook/diffusion/HY-Nomas/HY-Nomas"}]},{"group":"Tongyi-MAI","pages":[{"title":"Z-Image-Turbo","href":"/cookbook/diffusion/Z-Image/Z-Image-Turbo"}]},{"group":"Wan","tag":"NEW","pages":[{"title":"Wan2.1","href":"/cookbook/diffusion/Wan/Wan2.1"},{"title":"Wan2.2","href":"/cookbook/diffusion/Wan/Wan2.2"},{"title":"Wan-Animate-2","tag":"NEW","href":"/cookbook/diffusion/Wan/Wan-Animate-2"}]}]},{"group":"VLA (Vision-Language-Action) Models","pages":[{"title":"Overview","mode":"wide","href":"/cookbook/vla/intro"},{"group":"Black Forest Labs","tag":"NEW","pages":[{"title":"FLUX 3 Action","tag":"dVLA","href":"/cookbook/vla/FLUX/FLUX-3-Action"}]},{"group":"OpenPI","tag":"NEW","pages":[{"title":"Pi0.5","tag":"dVLA","href":"/cookbook/vla/OpenPI/Pi0.5"}]},{"group":"Runway","tag":"NEW","pages":[{"title":"Praxis-1","tag":"dVLA","href":"/cookbook/vla/Runway/Praxis-1"}]}]},{"group":"SpecBundle","pages":[{"title":"Supported Models","href":"/cookbook/specbundle/supported_models"},{"title":"SpecBundle Usage","href":"/cookbook/specbundle/specbundle_usage"}]},{"group":"Benchmarks","pages":[{"title":"Autoregressive Model Benchmark Documentation","href":"/cookbook/base/benchmarks/autoregressive_model_benchmark"},{"title":"Diffusion Models Benchmark Documentation","href":"/cookbook/base/benchmarks/diffusion_model_benchmark"}]}]}]},{"tab":"SGLang Diffusion","pages":[{"title":"SGLang Diffusion","href":"/docs/sglang-diffusion"}]}]},"basePath":"","title":"SGLang Cookbook - SGLang Documentation","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":[],"chunks":[]}