Skip to main content
Get Mini-SGLang up and running in less than 5 minutes. This guide shows you the fastest way to install, launch a server, and make your first inference request.
Platform Requirements: Mini-SGLang supports Linux only (x86_64 and aarch64). For Windows users, use WSL2. macOS is not supported due to dependencies on Linux-specific CUDA kernels.

Installation and First Run

1

Install Mini-SGLang

Clone the repository and install with uv (Python 3.10+ required):
Prerequisites: Ensure you have the NVIDIA CUDA Toolkit installed and that its version matches your driver. Check your CUDA version with nvidia-smi.
2

Launch the server

Start an OpenAI-compatible API server with a single command:
The server will start on http://localhost:1919 by default. You’ll see output indicating the server is ready:
3

Make a test request

Send a chat completion request using curl:
4

View the response

You’ll receive a streaming response in OpenAI-compatible format:

Alternative: Interactive Shell

For quick testing and exploration, launch the interactive shell mode:
Type your prompts directly and get real-time responses. Use /reset to clear chat history or /exit to quit.

Quick Examples

Next Steps

Now that you have Mini-SGLang running, explore more capabilities:
If you encounter network issues downloading models from HuggingFace, use --model-source modelscope to download from ModelScope instead.