SGLang is a framework for running inference for large language models and multimodal models, meaning it processes inputs to produce model outputs such as text or other media. It is used to serve and accelerate open AI models and related workloads.
Borrowing it
Nothing to install: this file belongs to sgl-project/sglang. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sgl-project/sglang/main/.claude/skills/cookbook-add-model/SKILL.mdgit clone --depth 1 https://github.com/sgl-project/sglangWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sgl-project/sglang/cookbook-add-model)<a href="https://agentmods.dev/skills/sgl-project/sglang/cookbook-add-model"><img src="https://agentmods.dev/badge/skills/sgl-project/sglang/cookbook-add-model/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sgl-project/sglang/cookbook-add-model"><img src="https://agentmods.dev/badge/skills/sgl-project/sglang/cookbook-add-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Snyk warn
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00082 | $0.04099 |
| Opus 5 | $0.00041 | $0.02049 |
| Sonnet 5 | $0.00016 | $0.00820 |
| Haiku 4.5 | $0.00008 | $0.00410 |
Grade A, and why
cookbook-add-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add a model to the SGLang Cookbook
Migrating an existing legacy-template page (one that imports a monolithic
…/autoregressive/<slug>-deployment.jsxgenerator)? Use thecookbook-migrate-modelskill instead — same target format, but the legacy page (not the user) is the source of truth.
The cookbook is config-driven: two shared engines contain NO model-specific code —
docs/src/snippets/_deployment.jsx (the 5-dim deploy matrix) and
_playground.jsx (the diff-based override Playground). Adding a model = adding data:
a per-model config (+ optional benchmarks) consumed by both engines, plus an MDX page
that imports them. No engine edits.
Instantiate the model-agnostic template (NOT a clone of any live cookbook — the template is decoupled and covers all hardware + all axes):
templates/config.jsx.tmpl→docs/src/snippets/configs/<hf-org>/<model-slug>.jsxtemplates/benchmarks.jsx.tmpl→…/<model-slug>-benchmarks.jsx(skip if no numbers)templates/page.mdx.tmpl→docs/cookbook/<category>/<Vendor>/<ModelName>.mdx
The template uses explicit __TOKEN__ placeholders; you fill them, prune what the model
lacks, and replace the EXAMPLE cells with verified recipes. DeepSeek-V4 is a populated
instance you can consult, but is not the template.
Deep references (read on demand, don't inline):
- references/authoring-reference.md — field-by-field config / cells / playground / MDX contract.
- references/mintlify-authoring.md — MDX rules (forbidden syntax, JSX tables, labeled fences) + invocation-example patterns. Read before writing §1–§3 prose.
- references/engine-axis.md — adding a new Playground feature axis (rare engine work).
- references/vendor-logo.md — new-vendor card logo: ask the user for the brand logo, then generate the icon-only 940×525 RGBA PNG (spec + Pillow recipe +
git add -f). - references/diffusion-authoring.md — required opening, tag, command-picker, and feature-overlay contract for diffusion model pages. Read before editing any
docs/cookbook/diffusion/<Vendor>/<Model>.mdxpage.
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/authoring-reference.md 25 KB
- references/diffusion-authoring.md 5.5 KB
- references/engine-axis.md 13 KB
- references/mintlify-authoring.md 6.6 KB
- references/vendor-logo.md 3.2 KB
- templates/benchmarks.jsx.tmpl 2.2 KB
- templates/config.jsx.tmpl 18 KB
- templates/diffusion-config.jsx.tmpl 6.0 KB
- templates/diffusion-page.mdx.tmpl 1.5 KB
- templates/page.mdx.tmpl 5.8 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago Changed · +2 lines 29ed99e62c4d
- 10d ago First seen · 246 lines · 82 tokens per session scan A b6e7035fbb17
cookbook-add-model is a skill published in the GitHub repository sgl-project/sglang (35,682 stars, last pushed today), licensed Apache-2.0. It adds 82 tokens to every session and 4,099 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
llama-factory
Expert guidance for fine-tuning LLMs with LLaMA-Factory - WebUI no-code, 100+ models, 2/3/4/5/6/8-bit QLoRA, multimodal support.
groq-inference
Ultra-fast LLM inference on custom LPU hardware. OpenAI-compatible API at api.groq.com. Lowest latency in the industry (500-1000+ tok/s). Supports chat completions, vision, audio (Whisper STT + TTS), tool calling, JSON mode, and streaming. Free tier available. Inference only — no training.
fireworks-ai-inference
Fast inference and fine-tuning platform with serverless and on-demand GPU deployments. OpenAI-compatible API for chat completions, embeddings, function calling, vision, and structured output. Supports SFT, DPO, and RL fine-tuning. SOC2 + HIPAA compliant.
ort
ONNX Runtime in Rust via the ort crate (2.x): loading sessions, configuring CPU/CoreML/CUDA execution providers, tensor I/O with ndarray, async-safe spawnblocking wrapping, global thread-pool init, and debugging provider/opset issues.
minimind-learning
A Chinese-language learning assistant for MiniMind, a small language-model project, that records study notes and recognizes common machine-learning terms.
llama-factory
Expert guidance for fine-tuning LLMs with LLaMA-Factory - WebUI no-code, 100+ models, 2/3/4/5/6/8-bit QLoRA, multimodal support.