Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions docs/cookbook/diffusion/MiniMax/MiniMax-H3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -968,10 +968,20 @@ release's `sigma_max` of 0.999 (FastGen's `max_t`).
sglang serve \
--model-path FastVideo/FastVideo-FastH3-Omni-8-Step-V1 \
--num-gpus 2 --ulysses-degree 2 \
--dit-cpu-offload true --text-encoder-cpu-offload true --vae-cpu-offload true \
--port 30010
```

Everything stays resident on 141 GB and 180 GB cards. On a card that cannot
hold it, add `--dit-cpu-offload true --text-encoder-cpu-offload true
--vae-cpu-offload true`; on H200 and B200 the three offloads only cost time
(image reference, 768 short edge, 124 frames, median of two requests after
three warmups):

| GPUs | Resident | With the three offloads |
| --- | --- | --- |
| 2× H200, Ulysses 2 | 39.0 s | 43.8 s |
| 4× B200, Ulysses 4 | 10.3 s | 15.3 s |

```json Request
{
"model": "FastVideo/FastVideo-FastH3-Omni-8-Step-V1",
Expand All @@ -991,9 +1001,9 @@ region and take a per-region top-k, while text, reference images and audio
rows stay dense. `--attention-backend-config` keys `vsa_tile_size`,
`vsa_ref_keep_rate` and `VSA_sparsity` override the trained values.

Warm request latency on 2× H200 (Ulysses 2, DiT / text encoder / VAE CPU
offload; median of three requests after one full warmup, 124 frames at 24 FPS
with audio, until the MP4 is saved):
Warm request latency on 2× H200 with the three CPU offloads (Ulysses 2; median
of three requests after one full warmup, 124 frames at 24 FPS with audio,
until the MP4 is saved):

| References | Short edge | Latency |
| --- | --- | --- |
Expand Down
6 changes: 4 additions & 2 deletions docs/cookbook/diffusion/Qwen-Image/Qwen-Image-2.1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ batch size one. Explicit placement and attention overrides preserve each recipe.
| GPU | Placement / attention | Generation | Edit | Peak VRAM |
| --- | --- | --- | --- | --- |
| H200 141GB | Resident / FlashAttention | 4.48 s | 5.29 s | 38.4 GiB |
| B200 192GB | Resident / FlashAttention | 2.46 s | 3.02 s | 38.5 GiB |
| B200 192GB | Resident / cuDNN SDPA | 2.22 s | 2.70 s | 38.5 GiB |
| RTX PRO 6000 96GB | Resident / Torch SDPA | 8.03 s | 9.63 s | 38.4 GiB |
| RTX 4090 24GB | DiT and VAE resident, encoder layerwise offload / FlashAttention | 18.68 s | 21.68 s | 22.7 GiB |
| DGX Spark 128GB unified | Resident / Torch SDPA | 35.36 s | 42.23 s | — (unified) |

Measured with the original checkpoint on 2026-09-20 at 1024×1024, 40 steps, CFG 1, and one RGBA PNG per
request. Times are median HTTP latency after warmup, including PNG serialization
request. The B200 row was measured again on 2026-11-01 when one B200 moved to cuDNN SDPA,
with FlashAttention on the same build for reference: 2.32 s generation and 2.89 s edit (peak VRAM from the
2026-09-20 FlashAttention run). Times are median HTTP latency after warmup, including PNG serialization
and excluding startup; VRAM is the sampled request-phase peak. Prompts and
software versions affect both latency and memory use.

Expand Down
4 changes: 4 additions & 0 deletions docs/src/snippets/configs/MiniMaxAI/minimax-h3.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@ return {
},
verifiedRecipes: [
{ id: "b200-resident-8", hw: "b200", nodes: 1, gpus_per_node: 8, placement: "resident", tp_size: 1, ulysses_degree: 8, ring_degree: 1, encoder: "auto", default: true },
// Auto takes the first entry for a GPU count. 4x B200 holds the DiT
// resident, which beats FSDP by 4-7% (FL2VA 209f 64.9 vs 67.6 s,
// T2VA 124f 36.0 vs 38.7 s); FSDP stays available as a placement.
{ id: "b200-resident-4", hw: "b200", nodes: 1, gpus_per_node: 4, placement: "resident", tp_size: 1, ulysses_degree: 4, ring_degree: 1, encoder: "auto" },
{ id: "b200-fsdp-4", hw: "b200", nodes: 1, gpus_per_node: 4, placement: "fsdp", tp_size: 1, ulysses_degree: 4, ring_degree: 1, encoder: "auto" },
{ id: "b300-resident-8", hw: "b300", nodes: 1, gpus_per_node: 8, placement: "resident", tp_size: 1, ulysses_degree: 8, ring_degree: 1, encoder: "auto", default: true },
{ id: "b300-fsdp-8", hw: "b300", nodes: 1, gpus_per_node: 8, placement: "fsdp", tp_size: 1, ulysses_degree: 8, ring_degree: 1, encoder: "auto" },
Expand Down
16 changes: 13 additions & 3 deletions docs/src/snippets/configs/OpenMOSS/moss-image.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,21 @@ export const config = {
resource: {
limits: { nodes: { min: 1, max: 1 }, gpus_per_node: { min: 1, max: 4 } },
verifiedRecipes: [],
autoTopology: (s) => ({ tp_size: 1, ulysses_degree: Number(s.gpus_per_node), ring_degree: 1 }),
// Every guidance recipe runs two or three branches, so an even GPU count
// splits them first (CFG parallel) and gives Ulysses the rest. 1024x1024
// 50 steps on B200: CFG 2 2.44 s vs Ulysses 2 3.18 s on 2 GPUs, CFG 2 x
// Ulysses 2 1.88 s vs Ulysses 4 2.34 s on 4 GPUs.
autoTopology: (s) => {
const gpus = Number(s.gpus_per_node);
const cfg = gpus % 2 === 0 ? 2 : 1;
return { tp_size: 1, ulysses_degree: gpus / cfg, ring_degree: 1, cfg_degree: cfg };
},
validateTopology: (s, t) => {
const errors = [];
const cfg = t.cfg_degree || 1;
if (![t.tp_size, t.ulysses_degree, t.ring_degree].every((n) => Number.isInteger(n) && n > 0)) errors.push("Parallel degrees must be positive integers.");
if (t.tp_size !== 1) errors.push("Tensor parallelism is not implemented for this model.");
if (Number(s.nodes) !== 1 || Number(s.gpus_per_node) !== t.tp_size * t.ulysses_degree * t.ring_degree) errors.push("GPU count must match TP times Ulysses times Ring on one node.");
if (Number(s.nodes) !== 1 || Number(s.gpus_per_node) !== cfg * t.tp_size * t.ulysses_degree * t.ring_degree) errors.push("GPU count must match CFG times TP times Ulysses times Ring on one node.");
if (24 % t.ulysses_degree) errors.push("Ulysses degree must divide the 24 attention heads.");
if (t.ring_degree > 1 && s.attention === "sdpa") errors.push("Ring requires an LSE-capable backend, not Torch SDPA.");
return errors;
Expand All @@ -64,12 +73,13 @@ export const config = {
const errors = resource.validateTopology(s, topology);
const flags = ["--model-path {{MODEL_NAME}}"];
if (Number(s.gpus_per_node) > 1) flags.push(`--num-gpus ${s.gpus_per_node}`, "--tp-size 1", `--ulysses-degree ${topology.ulysses_degree}`, `--ring-degree ${topology.ring_degree}`);
if ((topology.cfg_degree || 1) > 1) flags.push(`--cfg-parallel-size ${topology.cfg_degree}`);
flags.push("--host {{HOST_IP}}", "--port {{PORT}}");
return {
match: { hw: s.hw }, nnodes: 1, verified: false, flags,
builder: {
topology, errors,
topologySummary: `TP ${topology.tp_size}, Ulysses ${topology.ulysses_degree}, Ring ${topology.ring_degree}`,
topologySummary: `CFG ${topology.cfg_degree || 1}, TP ${topology.tp_size}, Ulysses ${topology.ulysses_degree}, Ring ${topology.ring_degree}`,
warnings: ["This exact hardware and workload recipe is not end-to-end verified."],
verification: { serve: "unverified", request: "unverified" },
},
Expand Down
25 changes: 18 additions & 7 deletions docs/src/snippets/configs/Qwen/qwen-image-2.1.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export const config = (() => {
const sm12Hardware = ["rtx5090", "rtxpro6000", "dgx-spark"];
const platformAttention = (s) => sm12Hardware.includes(s.hw) ? "sdpa" : "fa";
// One B200 serves the platform default, cuDNN SDPA: 2.22 s against 2.32 s with FlashAttention for
// 1024px/40-step generation and 2.70 s against 2.89 s for an edit (2026-11-01, sglang 3a01d4cc).
const platformAttention = (s) => sm12Hardware.includes(s.hw) ? "sdpa" : s.hw === "b200" && Number(s.gpus_per_node) === 1 ? "cudnn" : "fa";
const effectiveAttention = (s) => s.attention === "platform" || (sm12Hardware.includes(s.hw) && s.attention === "fa") ? platformAttention(s) : s.attention;

const config = {
Expand Down Expand Up @@ -83,10 +85,16 @@ const config = {
options: [
{
id: "platform", label: "Automatic", recommended: true,
flags: (s) => s.hw === "b200" ? ["--attention-backend fa"] : [],
description: "Uses SDPA on RTX PRO 6000, RTX 5090, and DGX Spark, and FlashAttention on the other listed GPUs.",
flags: (s) => s.hw === "b200" && Number(s.gpus_per_node) !== 1 ? ["--attention-backend fa"] : [],
description: "Uses cuDNN SDPA on one B200, SDPA on RTX PRO 6000, RTX 5090, and DGX Spark, and FlashAttention on the other listed GPUs.",
},
{ id: "fa", label: "FlashAttention", flags: ["--attention-backend fa"], description: "Exact attention with a fused kernel. This runtime falls back to Torch SDPA on RTX PRO 6000, RTX 5090, and DGX Spark." },
{
id: "cudnn", label: "cuDNN SDPA", flags: ["--attention-backend dynamic_cudnn_sdpa"],
soft: (s) => !config.commandBuilder.resource.verifiedRecipes.some((r) => r.hw === s.hw && r.placement === s.placement && r.attentions.includes("cudnn") && Number(s.gpus_per_node) === r.gpus_per_node),
softReason: "This hardware and placement combination has not completed HTTP verification with cuDNN SDPA.",
description: "Exact attention through cuDNN on Blackwell. Floating-point reduction order can differ from FlashAttention.",
},
{
id: "sdpa", label: "Torch SDPA", flags: ["--attention-backend torch_sdpa"],
soft: (s) => !config.commandBuilder.resource.verifiedRecipes.some((r) => r.hw === s.hw && r.placement === s.placement && r.attentions.includes("sdpa") && Number(s.gpus_per_node) === r.gpus_per_node),
Expand Down Expand Up @@ -298,7 +306,7 @@ const config = {
verifiedRecipes: [
{ id: "h200-1-resident", hw: "h200", nodes: 1, gpus_per_node: 1, placement: "resident", tp_size: 1, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["fa", "sdpa"], batchSizes: [1, 2, 4], batchAttentions: ["fa"], default: true },
{ id: "h200-2-tp-turbo", weights: "turbo", hw: "h200", nodes: 1, gpus_per_node: 2, placement: "resident", tp_size: 2, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["fa"], verifiedWhen: (s) => s.weights === "turbo" && (!s.batching || s.batching === "off") },
{ id: "b200-1-resident", hw: "b200", nodes: 1, gpus_per_node: 1, placement: "resident", tp_size: 1, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["fa", "sdpa"], batchSizes: [1, 2, 4], batchAttentions: ["fa"], default: true },
{ id: "b200-1-resident", hw: "b200", nodes: 1, gpus_per_node: 1, placement: "resident", tp_size: 1, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["fa", "sdpa", "cudnn"], batchSizes: [1, 2, 4], batchAttentions: ["fa", "cudnn"], default: true },
{ id: "b200-2-tp", hw: "b200", nodes: 1, gpus_per_node: 2, placement: "resident", tp_size: 2, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["fa"], batchSizes: [1, 2] },
{ id: "b200-2-ulysses", hw: "b200", nodes: 1, gpus_per_node: 2, placement: "resident", tp_size: 1, ulysses_degree: 2, ring_degree: 1, encoder: "auto", attentions: ["fa"], batchSizes: [1, 2] },
{ id: "rtxpro6000-1-resident", hw: "rtxpro6000", nodes: 1, gpus_per_node: 1, placement: "resident", tp_size: 1, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["sdpa"], batchSizes: [1, 2, 4], default: true },
Expand All @@ -307,7 +315,10 @@ const config = {
{ id: "rtx4090-1-offload", hw: "rtx4090", nodes: 1, gpus_per_node: 1, placement: "offload", tp_size: 1, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["fa", "sdpa"], batchSizes: [1, 2], batchAttentions: ["fa"], default: true },
{ id: "dgx-spark-1-resident", hw: "dgx-spark", nodes: 1, gpus_per_node: 1, placement: "resident", tp_size: 1, ulysses_degree: 1, ring_degree: 1, encoder: "auto", attentions: ["sdpa"], batchSizes: [1], default: true },
],
autoTopology: (s) => s.weights === "turbo" && s.hw === "h200" && Number(s.gpus_per_node) === 2
// B200 x2 (b200-2-tp above), 1024x1024 40 steps: TP2 1.43 s vs Ulysses 2
// 1.59 s.
autoTopology: (s) => Number(s.gpus_per_node) === 2
&& ((s.weights === "turbo" && s.hw === "h200") || s.hw === "b200")
? { tp_size: 2, ulysses_degree: 1, ring_degree: 1 }
: { tp_size: 1, ulysses_degree: Number(s.gpus_per_node), ring_degree: 1 },
validateTopology: (s, topology) => {
Expand All @@ -321,7 +332,7 @@ const config = {
if (![tp, ulysses, ring].every((n) => [1, 2, 4].includes(n))) errors.push("TP, Ulysses and Ring must each be 1, 2, or 4.");
if (nodes * perNode !== tp * ulysses * ring) errors.push(`World size ${nodes * perNode} must equal TP × Ulysses × Ring (${tp * ulysses * ring}).`);
if (32 % (tp * ulysses) !== 0) errors.push("32 attention heads must be divisible by TP × Ulysses.");
if (ring > 1 && effectiveAttention(s) === "sdpa") errors.push("Ring requires FlashAttention or SageAttention; Torch SDPA is unsupported.");
if (ring > 1 && ["sdpa", "cudnn"].includes(effectiveAttention(s))) errors.push(`Ring requires FlashAttention or SageAttention; ${effectiveAttention(s) === "sdpa" ? "Torch" : "cuDNN"} SDPA is unsupported.`);
if (s.precision?.startsWith("nvfp4_") && !["b200", "rtxpro6000", "rtx5090", "dgx-spark"].includes(s.hw)) errors.push("Native NVFP4 requires a Blackwell GPU. Select B200, RTX PRO 6000, RTX 5090, or DGX Spark.");
if (perNode === 1 && ["rtx5090", "rtx4090"].includes(s.hw) && s.placement === "resident") errors.push("The full resident pipeline exceeds this GPU's memory. Select CPU offload.");
return errors;
Expand Down Expand Up @@ -382,7 +393,7 @@ const config = {
request: errors.length ? "error" : requestVerified ? "verified" : "unverified",
},
resolvedSettings: {
attention: s.attention === "platform" ? `${platformAttention(s) === "sdpa" ? "Torch SDPA" : "FlashAttention"} (auto)`
attention: s.attention === "platform" ? `${{ sdpa: "Torch SDPA", cudnn: "cuDNN SDPA" }[platformAttention(s)] || "FlashAttention"} (auto)`
: sm12Hardware.includes(s.hw) && s.attention === "fa" ? "Torch SDPA (FA fallback)" : undefined,
encoder: s.encoder === "auto" && world === 1 ? "Single GPU (auto)" : undefined,
},
Expand Down
Loading