cookbook-add-model

Add a new model to the SGLang Cookbook (docs/, Mintlify), config-driven format — instantiate the model-agnostic template into a per-model config (+ benchmarks) JSX under src/snippets/configs/, an MDX page, the docs.json nav entry, NEW-tag hygiene, and the homepage vendor card. Interactive, multi-phase. Run with /cookbook-add-model.

Install
npx skills add 'https://github.com/sgl-project/sglang/tree/main/.claude/skills/cookbook-add-model'
Download bundle ↓
main · a9fb1c3Scanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗
View on GitHub
← Back to SKILL.md
// TEMPLATE — instantiate via the cookbook-add-model skill. NOT a live cookbook.// Copy to docs/src/snippets/configs/<hf-org>/<model-slug>-benchmarks.jsx and// fill measured numbers — OR delete this file entirely if you have none yet (the// MDX simply omits the `benchmarks` import/prop).//// One entry per cell `match` tuple (same 5 keys as config cells). The card stays// "pending" until an entry has a non-null speed metric or accuracy. Speed shape://   speed: [{ workload: {dataset, isl, osl, max_concurrency}, ttft_ms, tpot_ms,//             tokens_per_sec_per_gpu }, ...]//   - ttft_ms/tpot_ms are P50 (median); set config.latencyPercentile ("P50" default, or "Mean");//     an entry-level latencyPercentile overrides the page value per cell.//   - tokens_per_sec_per_gpu = total (in+out) tok/s/GPU//     (= output tok/s ÷ GPUs × (isl+osl)/osl). interactivity is derived = 1000/TPOT (tokens/s/user).// Per-cell `accuracy: { <key>: <pct> }` overrides the config's defaultAccuracy. export const benchmarks = [  // EXAMPLE — one filled entry showing the shape; replace numbers, add one per cell.  {    match: { hw: "b200", variant: "default", quant: "fp4", strategy: "low-latency", nodes: "single" },    sglang_version: "0.0.0", // TODO: ASK the user for the sglang version these numbers were measured on — don't invent one    speed: [      { workload: { dataset: "random", isl: 8192, osl: 1024, max_concurrency: 1 },        ttft_ms: null, tpot_ms: null, tokens_per_sec_per_gpu: null },      { workload: { dataset: "random", isl: 8192, osl: 1024, max_concurrency: 16 },        ttft_ms: null, tpot_ms: null, tokens_per_sec_per_gpu: null },    ],  },  // Bare-match stubs (no data yet) are fine — the card shows "pending" for these.  { match: { hw: "h200",   variant: "default", quant: "fp8",  strategy: "balanced",        nodes: "single"  } },  { match: { hw: "h100",   variant: "default", quant: "fp4",  strategy: "high-throughput", nodes: "single"  } },  { match: { hw: "mi300x", variant: "default", quant: "bf16", strategy: "balanced",        nodes: "single"  } },  { match: { hw: "b200",   variant: "default", quant: "fp4",  strategy: "high-throughput", nodes: "multi-2" } },]; 
Referenced from SKILL.md