sgl-project/mini-sglang

A compact implementation of SGLang, designed to demystify the complexities of modern LLM serving systems.

View on GitHub ↗Jump to charts ↓Open shareable report →

sgl-project/mini-sglang has 5k+ stars and 900+ forks on GitHub, is written in Python, and was last pushed on May 17, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on December 19th, 2025
Created on September 1st, 2025
Open Issues & Pull Requests: 68 (+0)
GitHub issues: Enabled
Number of forks: 919
Total Stargazers: 5,333 (+4)
Total Subscribers: 24 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.9 hours
Mean response time: 13.6 days
90th percentile: 56.3 days
Tracked items: 24

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 64 days
Stale 30+ days: 10
Stale 90+ days: 9

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Mini-SGLang is a lightweight inference framework for Large Language Models that serves as both a capable serving engine and a transparent reference implementation for understanding modern LLM systems.

The project addresses the complexity of building high-performance LLM serving systems by providing a compact, readable codebase of approximately five thousand lines of Python. It combines advanced optimizations including Radix Cache for KV cache reuse across requests, Chunked Prefill to reduce peak memory usage, Overlap Scheduling to hide CPU overhead, Tensor Parallelism for multi-GPU scaling, and integration with FlashAttention and FlashInfer kernels. The tool exposes these mechanisms in a modular, fully type-annotated codebase designed to be understandable and modifiable by researchers and developers.

Mini-SGLang suits projects where developers need both high-performance inference and transparency into how optimization techniques work. The tool is particularly valuable for those learning LLM serving internals or needing a reference implementation. It provides an OpenAI-compatible API server for online serving and an interactive shell mode for direct model interaction. The project currently supports Linux on x86_64 and aarch64 architectures; Windows and macOS users can run it via WSL2 or Docker due to dependencies on Linux-specific CUDA kernels.

The maintainers typically respond to new issues and pull requests within a day.