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

Summary Information

Updated 57 minutes ago
Added to GitGenius on December 19th, 2025
Created on September 1st, 2025
Open Issues & Pull Requests: 50 (+0)
Number of forks: 804
Total Stargazers: 4,828 (+1)
Total Subscribers: 17 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.8 hours
Mean response time: 4.9 days
90th percentile: 8.2 days
Tracked items: 22

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 11% of issues opened in the past year have been closed. Three people close 100% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 12
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 52 days
Stale 30+ days: 11
Stale 90+ days: 10

Recent activity

Opened in 7 days: 1
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

No issue events were indexed in the last 7 days.

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.