Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Structured Generation Language for LLM serving. RadixAttention prefix caching, constrained decoding (JSON, grammar), OpenAI-compatible API, and multi-turn optimization. Fast inference with structured output guarantees.
.claude/skills/mkurman-sglang/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -24% | 0% |
| case-21 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 59% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 4% | 0% |
SGLang is a fast LLM inference and serving framework with structured generation (constrained decoding), RadixAttention for prefix caching, and an OpenAI-compatible API. Particularly strong for reasoning models (DeepSeek R1, QwQ) and guided generation with JSON schema, grammar, and regex constraints.
bashuv pip install sglang[all]
pythonimport sglang as sgl @sgl.function def multi_turn(s, question): s += sgl.system("You are a helpful assistant.") s += sgl.user(question) s += sgl.assistant() state = multi_turn.run(question="What is the derivative of x^2?") print(state["answer"])
bashpython -m sglang.launch_server --model-path Qwen/Qwen2.5-1.5B-Instruct --port 30000
pythonfrom openai import OpenAI client = OpenAI(base_url="http://localhost:30000/v1", api_key="none")
python@sgl.function def json_gen(s): s += "Generate a person's info in JSON." s += sgl.gen("json_output", max_tokens=128, schema='{"type": "object", "properties": {"name": {"type": "string"}, "age": {"type": "integer"}}}') state = json_gen.run() print(state["json_output"])
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-05 | pass→pass | 3,780 | 3,586 | -5% | 1 | 1 | 0% | 635 | 1,011 | +59% | 0 | 0 | — |
case-01 | pass→pass | 7,043 | 4,072 | -42% | 1 | 1 | 0% | 1,188 | 1,232 | +4% | 0 | 0 | — |
case-02 | pass→pass | 6,091 | 4,732 | -22% | 1 | 1 | 0% | 1,009 | 1,188 | +18% | 0 | 0 | — |
case-03 | pass→pass | 6,028 | 3,604 | -40% | 1 | 1 | 0% | 1,099 | 1,052 | -4% | 0 | 0 | — |
case-04 | pass→pass | 5,996 | 2,278 | -62% | 1 | 1 | 0% | 975 | 709 | -27% | 0 | 0 | — |
case-06 | pass→pass | 3,438 | 3,165 | -8% | 1 | 1 | 0% | 564 | 923 | +64% | 0 | 0 | — |
case-07 | pass→pass | 6,769 | 3,118 | -54% | 1 | 1 | 0% | 1,145 | 919 | -20% | 0 | 0 | — |
case-08 | pass→pass | 4,892 | 4,115 | -16% | 1 | 1 | 0% | 1,017 | 1,190 | +17% | 0 | 0 | — |
case-09 | fail→pass | 7,599 | 5,406 | -29% | 1 | 1 | 0% | 1,289 | 1,305 | +1% | 0 | 0 | — |
case-10 | pass→pass | 3,074 | 2,813 | -8% | 1 | 1 | 0% | 475 | 826 | +74% | 0 | 0 | — |
case-11 | pass→pass | 4,260 | 1,830 | -57% | 1 | 1 | 0% | 725 | 667 | -8% | 0 | 0 | — |
case-12 | pass→pass | 4,532 | 2,073 | -54% | 1 | 1 | 0% | 779 | 711 | -9% | 0 | 0 | — |
case-13 | fail→pass | 9,232 | 4,509 | -51% | 1 | 1 | 0% | 1,595 | 1,218 | -24% | 0 | 0 | — |
case-14 | pass→pass | 8,837 | 3,422 | -61% | 1 | 1 | 0% | 1,356 | 958 | -29% | 0 | 0 | — |
case-15 | pass→pass | 5,971 | 4,003 | -33% | 1 | 1 | 0% | 1,047 | 1,046 | -0% | 0 | 0 | — |
case-16 | pass→pass | 3,920 | 2,361 | -40% | 1 | 1 | 0% | 645 | 813 | +26% | 0 | 0 | — |
case-17 | fail→fail | 4,614 | 8,876 | +92% | 1 | 1 | 0% | 820 | 1,967 | +140% | 0 | 0 | — |
case-22 | pass→pass | 3,395 | 2,626 | -23% | 1 | 1 | 0% | 588 | 829 | +41% | 0 | 0 | — |
case-18 | pass→pass | 4,706 | 2,864 | -39% | 1 | 1 | 0% | 732 | 803 | +10% | 0 | 0 | — |
case-19 | pass→pass | 4,284 | 2,545 | -41% | 1 | 1 | 0% | 619 | 766 | +24% | 0 | 0 | — |
case-20 | pass→pass | 17,637 | 11,613 | -34% | 1 | 1 | 0% | 2,878 | 2,419 | -16% | 0 | 0 | — |
case-21 | fail→pass | 15,486 | 5,435 | -65% | 1 | 1 | 0% | 1,726 | 1,424 | -17% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +14 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.