What do you want to do?
3 use cases
-
Serve an open model on your own GPUs
Install SGLang, pick a ready-to-run launch command for your model and hardware, and send a first request.
View prompt
Set up sgl-project/sglang with Docker on this <GPU> machine, use the Cookbook launch command for <model>, send one test request, and report tokens per second.
-
Generate images and video with SGLang Diffusion
Use the diffusion engine built into the same package to serve image and video models.
View prompt
Using sgl-project/sglang's built-in SGLang Diffusion, serve <diffusion model> on this GPU and generate one test image from <prompt>. Report memory use and time per image.
-
Use SGLang as the rollout engine for RL post-training
Plug SGLang into an RL framework such as verl, slime or AReaL to generate rollouts fast.
View prompt
Configure <verl or slime> to use sgl-project/sglang for rollout generation on <model>, run a short training job, and compare rollout throughput with the default engine.
Quick start with SGLang
- Check you have what it needs: A supported GPU or accelerator (NVIDIA, AMD, TPU and others); Docker, or a Python environment with uv.
- Open sgl-project/sglang on GitHub and read the README and license.
- Pull the image:
docker pull lmsysorg/sglang:latest, or install withuv pip install --prerelease=allow sglang - Open the Cookbook and choose your model and hardware to get a launch command
- Launch the model and follow the Quickstart to send your first request
- Check the hardware platform guide for your GPU before tuning
These steps come from our top use case, Serve an open model on your own GPUs, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for sgl-project/sglang
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forML engineers and teams who serve open models on their own GPUs and need high throughput.
- Why it is hot38k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/sgl-project/sglang · Back to Hot repos
Requirements
- A supported GPU or accelerator (NVIDIA, AMD, TPU and others)
- Docker, or a Python environment with uv
Add this badge to your README
Maintain SGLang? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/sgl-project-sglang/?utm_source=github&utm_medium=badge&utm_campaign=sgl-project-sglang)
HTML
<a href="https://dedupedai.com/use-cases/sgl-project-sglang/?utm_source=github&utm_medium=badge&utm_campaign=sgl-project-sglang"><img src="https://dedupedai.com/badge/sgl-project/sglang.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about SGLang
What is SGLang?
SGLang is an open-source inference framework for large language, vision-language and diffusion models, optimized for agentic workloads, large-scale serving and RL rollouts. It runs on NVIDIA, AMD, Google TPU, Huawei Ascend and other hardware, ships SGLang Diffusion for image and video generation, and plugs into RL frameworks such as verl and slime for rollout generation. Launch commands per model and hardware live in its Cookbook. It is an open-source project on GitHub: https://github.com/sgl-project/sglang.
How do I use SGLang?
Pull the image: docker pull lmsysorg/sglang:latest, or install with uv pip install --prerelease=allow sglang; then open the Cookbook and choose your model and hardware to get a launch command; launch the model and follow the Quickstart to send your first request. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is SGLang for?
ML engineers and teams who serve open models on their own GPUs and need high throughput.
What can I do with SGLang?
3 use cases so far, for example: Serve an open model on your own GPUs; Generate images and video with SGLang Diffusion; Use SGLang as the rollout engine for RL post-training. Each has steps and a copy-paste agent prompt.
What do I need to run SGLang?
A supported GPU or accelerator (NVIDIA, AMD, TPU and others); Docker, or a Python environment with uv.
What are alternatives to SGLang?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is SGLang safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.