From 9baace84567d5ad23206eeaf716edf94e182fd2a Mon Sep 17 00:00:00 2001 From: Xinyuan Tong <115166877+JustinTong0323@users.noreply.github.com> Date: Fri, 16 Oct 2026 16:48:25 +0800 Subject: [PATCH] [Doc] cookbook: refresh MiniCPM-V 4.7 DSPARK benchmarks at the final model PR head (#44310) Co-authored-by: zijiexia <37504505+zijiexia@users.noreply.github.com> --- .../autoregressive/OpenBMB/MiniCPM-V-4_7.mdx | 54 +------------------ .../openbmb/minicpm-v-4.7-benchmarks.jsx | 40 +++++++------- 2 files changed, 22 insertions(+), 72 deletions(-) diff --git a/docs/cookbook/autoregressive/OpenBMB/MiniCPM-V-4_7.mdx b/docs/cookbook/autoregressive/OpenBMB/MiniCPM-V-4_7.mdx index 1b629e77c7..283dc2e04e 100644 --- a/docs/cookbook/autoregressive/OpenBMB/MiniCPM-V-4_7.mdx +++ b/docs/cookbook/autoregressive/OpenBMB/MiniCPM-V-4_7.mdx @@ -126,58 +126,8 @@ OpenBMB also publishes AWQ, GPTQ, and GGUF exports and a 1B int4 checkpoint. The - Every recipe runs on one GPU. On H100 the 35B-A3B BF16 checkpoint (about 66 GB of weights) does not fit the default static memory fraction of an 80 GB card; use FP8 or INT4 there. - Pick the quantization by platform. On H200, quantization is a speed win: at concurrency 16, INT4 and FP8 reach 15,808 and 15,280 tokens/s per GPU against 12,103 for BF16, and INT4 has the fastest 35B-A3B decode (TPOT 3.47 ms at concurrency 1). On GB300, BF16 and FP8 decode at about the same speed at concurrency 1 (TPOT 4.36 vs 4.44 ms), and FP8 pulls ahead at concurrency 16 (16,059 vs 14,094 tokens/s per GPU). INT4 is slower on GB300 at every concurrency (TPOT 8.56 ms at concurrency 1), so use it there only to save memory. - SGLang detects FP8 and INT4 from the checkpoint's `quantization_config`; no `--quantization` flag is needed. -- The **DSPARK** row adds `--speculative-algorithm DSPARK` and `--speculative-draft-model-path` pointing at the variant's DSpark checkpoint. On GB300, turn it on only for 35B-A3B BF16 and FP8 at low concurrency; on H200, turn it on for 35B-A3B BF16 at both measured concurrencies and for FP8 and INT4 at low concurrency; leave it off for 1B. Matched sharegpt runs back this (TPOT ms, DSPARK off → on): - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ConfigurationGB300, conc 1GB300, conc 16H200, conc 1H200, conc 16
1B BF161.75 → 2.024.00 → 5.731.56 → 1.654.43 → 6.27
35B-A3B BF162.99 → 2.8011.17 → 13.693.56 → 3.0213.51 → 11.92
35B-A3B FP83.08 → 2.7610.53 → 12.603.42 → 2.6111.11 → 12.40
35B-A3B INT47.19 → 11.0547.92 → 54.803.34 → 2.389.33 → 11.20
- -- Benchmark speculative decoding on real text. Random-token prompts collapse draft acceptance, so they say nothing about DSPARK. For a real-workload reference, GSM8K accept length is about 2.6 on 1B, 4.1 on 35B-A3B BF16, 4.0 on FP8, and 3.8 on INT4. +- The **DSPARK** row adds `--speculative-algorithm DSPARK` and `--speculative-draft-model-path` pointing at the variant's DSpark checkpoint. On GB300, turn it on only for 35B-A3B BF16 and FP8 at low concurrency; on H200, turn it on for 35B-A3B BF16 at both measured concurrencies and for FP8 and INT4 at low concurrency; leave it off for 1B. The matched DSPARK on/off cells in the benchmark cards above back this. +- Benchmark speculative decoding on real text. Random-token prompts collapse draft acceptance, so they say nothing about DSPARK. For a real-workload reference, GSM8K accept length is about 4.5 on 1B (measured at the final PR head); in the sharegpt benchmark, accept length is about 2.5 on 1B and 3.2-3.3 on the 35B-A3B variants. - Every command carries `--reasoning-parser auto --tool-call-parser auto`. SGLang resolves both from the chat template, to `qwen3` for reasoning and `qwen3_coder` for tool calls, so the thinking trace lands in `message.reasoning_content` and tool calls in `message.tool_calls` (see §3.1 and §3.2). To turn either off, toggle it in the **Parsers** card of the [Playground](#playground). - Thinking is on by default. To get a direct answer for one request, pass `"chat_template_kwargs": {"enable_thinking": false}` (in the OpenAI Python client, `extra_body={"chat_template_kwargs": {"enable_thinking": False}}`); `reasoning_content` then comes back empty. - Image and video requests need no extra server flags. diff --git a/docs/src/snippets/configs/openbmb/minicpm-v-4.7-benchmarks.jsx b/docs/src/snippets/configs/openbmb/minicpm-v-4.7-benchmarks.jsx index 31bce18830..10730ec864 100644 --- a/docs/src/snippets/configs/openbmb/minicpm-v-4.7-benchmarks.jsx +++ b/docs/src/snippets/configs/openbmb/minicpm-v-4.7-benchmarks.jsx @@ -30,11 +30,11 @@ export const benchmarks = [ accuracy: { gsm8k_pct: 83.24 }, speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 56.8, tpot_ms: 2.02, tokens_per_sec_per_gpu: 1003 }, + ttft_ms: 57.97, tpot_ms: 1.92, tokens_per_sec_per_gpu: 1020 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 85.2, tpot_ms: 5.73, tokens_per_sec_per_gpu: 6745 }, + ttft_ms: 248.32, tpot_ms: 7.48, tokens_per_sec_per_gpu: 5452 }, ], - notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-1B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K stop rate 99.92% (one of 1,319 requests did not emit EOS at temperature 1.0); accept length about 2.6.", + notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-1B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K stop rate 99.92% (one of 1,319 requests did not emit EOS at temperature 1.0); accept length about 2.5.", }, { match: { hw: "gb300", variant: "35b-a3b", quant: "bf16", nodes: "single", spec: "none" }, @@ -54,11 +54,11 @@ export const benchmarks = [ accuracy: { gsm8k_pct: 96.97 }, speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 136.35, tpot_ms: 2.8, tokens_per_sec_per_gpu: 633 }, + ttft_ms: 198.91, tpot_ms: 2.56, tokens_per_sec_per_gpu: 645 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 199.66, tpot_ms: 13.69, tokens_per_sec_per_gpu: 2901 }, + ttft_ms: 842.83, tpot_ms: 16.38, tokens_per_sec_per_gpu: 2267 }, ], - notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K (measured at TP=2) stop rate 100%; accept length about 4.1.", + notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K (measured at TP=2) stop rate 100%; accept length about 3.3.", }, { match: { hw: "gb300", variant: "35b-a3b", quant: "fp8", nodes: "single", spec: "none" }, @@ -78,11 +78,11 @@ export const benchmarks = [ accuracy: { gsm8k_pct: 96.97 }, speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 131.4, tpot_ms: 2.76, tokens_per_sec_per_gpu: 638 }, + ttft_ms: 131.54, tpot_ms: 2.46, tokens_per_sec_per_gpu: 718 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 210.89, tpot_ms: 12.6, tokens_per_sec_per_gpu: 3120 }, + ttft_ms: 458.23, tpot_ms: 14.94, tokens_per_sec_per_gpu: 2546 }, ], - notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K (measured at TP=2) stop rate 100%; accept length about 4.0.", + notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K (measured at TP=2) stop rate 100%; accept length about 3.3.", }, { match: { hw: "gb300", variant: "35b-a3b", quant: "int4", nodes: "single", spec: "none" }, @@ -102,11 +102,11 @@ export const benchmarks = [ accuracy: { gsm8k_pct: 96.44 }, speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 155.88, tpot_ms: 11.05, tokens_per_sec_per_gpu: 183 }, + ttft_ms: 160.53, tpot_ms: 10.25, tokens_per_sec_per_gpu: 197 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 425.46, tpot_ms: 54.8, tokens_per_sec_per_gpu: 722 }, + ttft_ms: 643.95, tpot_ms: 51.04, tokens_per_sec_per_gpu: 747 }, ], - notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K stop rate 100%; accept length about 3.8.", + notes: "1×GB300, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache. GSM8K stop rate 100%; accept length about 3.3.", }, { match: { hw: "h200", variant: "1b", quant: "bf16", nodes: "single", spec: "none" }, @@ -124,9 +124,9 @@ export const benchmarks = [ sglang_version: "PR #41993", speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 51.55, tpot_ms: 1.65, tokens_per_sec_per_gpu: 1189 }, + ttft_ms: 44.09, tpot_ms: 1.51, tokens_per_sec_per_gpu: 1357 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 228.59, tpot_ms: 6.27, tokens_per_sec_per_gpu: 5778 }, + ttft_ms: 233.95, tpot_ms: 6.63, tokens_per_sec_per_gpu: 6240 }, ], notes: "1×H200, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-1B-DSpark. Speed: bench_serving sharegpt, --flush-cache.", }, @@ -146,9 +146,9 @@ export const benchmarks = [ sglang_version: "PR #41993", speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 155.49, tpot_ms: 3.02, tokens_per_sec_per_gpu: 593 }, + ttft_ms: 99.15, tpot_ms: 2.71, tokens_per_sec_per_gpu: 699 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 216.21, tpot_ms: 11.92, tokens_per_sec_per_gpu: 3111 }, + ttft_ms: 230.7, tpot_ms: 11.33, tokens_per_sec_per_gpu: 3314 }, ], notes: "1×H200, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache.", }, @@ -168,9 +168,9 @@ export const benchmarks = [ sglang_version: "PR #41993", speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 129.71, tpot_ms: 2.61, tokens_per_sec_per_gpu: 694 }, + ttft_ms: 97.82, tpot_ms: 2.38, tokens_per_sec_per_gpu: 783 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 178.4, tpot_ms: 12.4, tokens_per_sec_per_gpu: 3196 }, + ttft_ms: 170.36, tpot_ms: 11.12, tokens_per_sec_per_gpu: 3506 }, ], notes: "1×H200, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache.", }, @@ -190,9 +190,9 @@ export const benchmarks = [ sglang_version: "PR #41993", speed: [ { workload: { dataset: "sharegpt", max_concurrency: 1 }, - ttft_ms: 92.01, tpot_ms: 2.38, tokens_per_sec_per_gpu: 781 }, + ttft_ms: 90.02, tpot_ms: 2.15, tokens_per_sec_per_gpu: 867 }, { workload: { dataset: "sharegpt", max_concurrency: 16 }, - ttft_ms: 177.82, tpot_ms: 11.2, tokens_per_sec_per_gpu: 3457 }, + ttft_ms: 169.74, tpot_ms: 10.92, tokens_per_sec_per_gpu: 3601 }, ], notes: "1×H200, TP=1, DSPARK with openbmb/MiniCPM-V-4.7-35B-A3B-DSpark. Speed: bench_serving sharegpt, --flush-cache.", },