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.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