Skip to content

Fast LLM serving with RadixAttention prefix caching for structured JSON, regex, and agentic tool-call outputs.

CCM score
51 of 100
skills.sh installs
1.1K
GitHub stars
14.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers installation, server launch, basic inference, and structured generation for LLMs and VLMs
  • Includes constrained decoding by JSON schema, regex, and EBNF grammar, plus function calling with tool definitions
  • Enables automatic prefix caching by default via --enable-radix-cache, reusing KV cache for shared system prompts
  • Designed for agent workflows and multi-turn conversations with repeated prefixes, with vLLM and TensorRT-LLM as alternatives

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill sglang -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SGLang

High-performance serving framework for LLMs and VLMs with RadixAttention for automatic prefix caching.

When to use SGLang

Use SGLang when:

  • Need structured outputs (JSON, regex, grammar)
  • Building agents with repeated prefixes (system prompts, tools)
  • Agentic workflows with function calling
  • Multi-turn conversations with shared context
  • Need faster JSON decoding (3× vs standard)

Use vLLM instead when:

  • Simple text generation without structure
  • Don't need prefix caching
  • Want mature, widely-tested production system

Use TensorRT-LLM instead when:

  • Maximum single-request latency (no batching needed)
  • NVIDIA-only deployment
  • Need FP8/INT4 quantization on H100

Quick start

Installation

# pip install (recommended)
pip install "sglang[all]"

# With FlashInfer (faster, CUDA 11.8/12.1)
pip install sglang[all] flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/

# From source
git clone https://github.com/sgl-project/sglang.git
cd sglang
pip install -e "python[all]"

Launch server

# Basic server (Llama 3-8B)
python -m sglang.launch_server \
    --model-path meta-llama/Meta-Llama-3-8B-Instruct \
    --port 30000

Details

Repository
github.com/orchestra-research/ai-research-skills
Category
AI Agents & LLM Apps
First seen
Jun 3, 2026

Questions

What does the sglang skill do for LLM serving?

The sglang skill covers fast structured generation and serving for LLMs using RadixAttention prefix caching. It suits JSON or regex outputs, constrained decoding, and agentic workflows with tool calls.

How do I install the sglang skill?

Run npx -y skills add orchestra-research/ai-research-skills --skill sglang -y in a project to install the sglang skill. Once installed, the sglang skill lets your agent work with SGLang's structured output and prefix caching features.

When should I pick the sglang skill over vLLM?

The sglang skill is aimed at workloads that need structured outputs, repeated prefixes such as system prompts, or function calling. Its SKILL.md notes that vLLM remains the choice for simple text generation without structure or prefix caching.

Which skills sit next to sglang in the AI Agents and LLM Apps category?

The sglang skill is listed in the AI Agents and LLM Apps category, where microsoft-foundry and azure-ai are among the other top skills. Its own focus is high-throughput LLM serving with RadixAttention, which sets it apart from agent-platform skills.

More from orchestra-research/ai-research-skills

All 92

Similar to Sglang

More AI Agents & LLM Apps