#6363rd of 65 in Model serving

mini-sglang

Compact SGLang reimplementation for serving LLMs, in about 5,000 lines of Python

Stars
5.6k
License
MIT
Last commit
May 2026
Language
Python
Stars, last 29 weeks+1,550
21 Apr 2026: 4,010 stars28 Apr 2026: 4,045 stars5 May 2026: 4,074 stars12 May 2026: 4,133 stars19 May 2026: 4,180 stars26 May 2026: 4,255 stars2 Jun 2026: 4,303 stars9 Jun 2026: 4,335 stars16 Jun 2026: 4,378 stars23 Jun 2026: 4,415 stars30 Jun 2026: 4,451 stars7 Jul 2026: 4,499 stars14 Jul 2026: 4,541 stars21 Jul 2026: 4,591 stars28 Jul 2026: 4,619 stars4 Aug 2026: 4,654 stars11 Aug 2026: 4,711 stars18 Aug 2026: 4,750 stars25 Aug 2026: 4,841 stars1 Sept 2026: 4,910 stars8 Sept 2026: 4,992 stars15 Sept 2026: 5,059 stars22 Sept 2026: 5,125 stars29 Sept 2026: 5,181 stars6 Oct 2026: 5,217 stars13 Oct 2026: 5,263 stars20 Oct 2026: 5,371 stars27 Oct 2026: 5,455 stars3 Nov 2026: 5,514 stars10 Nov 2026: 5,560 stars

4,010 on 21 Apr 20265,560 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Mini-SGLang is a compact Python reimplementation of SGLang. It serves Hugging Face models over an OpenAI-compatible API and has a terminal chat shell mode. It includes radix cache, chunked prefill, overlap scheduling, tensor parallelism and FlashAttention/FlashInfer kernels. It is meant as a readable reference for how LLM serving works.

Who it is for: Engineers and researchers studying or prototyping LLM serving on NVIDIA GPUs

Strengths

  • Small, type-annotated codebase (~5,000 lines of Python) that is practical to read and modify
  • Implements radix cache, chunked prefill, overlap scheduling and tensor parallelism via --tp
  • OpenAI-compatible server plus a terminal chat shell via --shell
  • README includes benchmarks against SGLang on H200 GPUs with Qwen3 models

Weaknesses

  • Linux only (x86_64, aarch64); macOS and Windows need WSL2 or Docker
  • Needs an NVIDIA GPU and a CUDA Toolkit matching the driver; kernels are JIT-compiled
  • No tagged release; installed from source with uv pip install -e .
  • Documented as a compact subset, so likely narrower in features than full SGLang

What it needs

  • GPU required
  • Docker
  • Needs NVIDIA CUDA Toolkit, FlashInfer, sgl-kernel, uv
  • Models: Hugging Face models, Qwen3, Llama 3.1, ModelScope download
  • port 1919

Quick answers

Is mini-sglang open source?

Yes. Its code is on GitHub under the MIT license.

Can you run mini-sglang with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Does mini-sglang need a GPU?

Yes, it needs a GPU.

Also in Model serving

See all 65
Also in Model serving
RankProjectScore
1llama.cppC/C++ inference engine for GGUF LLMs and VLMs with an OpenAI-compatible server134.1k stars+3,480 (+2.7%) in 30 daysMIT94 out of 100
2OllamaLocal model runner with CLI and REST API for open-weight LLMs186.7k stars+4,310 (+2.4%) in 30 daysMITknown advisory in latest version92 out of 100
3LocalAISelf-hosted inference server with OpenAI-compatible API and pluggable backends50.3k stars+940 (+1.9%) in 30 daysMIT91 out of 100
#4vLLMInference engine serving LLMs with PagedAttention and an OpenAI-compatible API96.7k stars+3,268 (+3.5%) in 30 daysApache-2.088 out of 100
#5strataRuns a 125B-parameter MoE model on one consumer GPU plus system RAM43.1k stars+21,265 (+97%) in 30 daysMIT88 out of 100