cookbook-add-model

Installation
SKILL.md

Add a model to the SGLang Cookbook

Migrating an existing legacy-template page (one that imports a monolithic …/autoregressive/<slug>-deployment.jsx generator)? Use the cookbook-migrate-model skill 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.tmpldocs/src/snippets/configs/<hf-org>/<model-slug>.jsx
  • templates/benchmarks.jsx.tmpl…/<model-slug>-benchmarks.jsx (skip if no numbers)
  • templates/page.mdx.tmpldocs/cookbook/<category>/<Vendor>/<ModelName>.mdx
Installs
10
GitHub Stars
35.7K
First Seen
Jul 2, 2026
cookbook-add-model — sgl-project/sglang