Skip to content

feat: text-to-video (WAN 2.2) client, checker and docs for MLPerf Endpoints - #523

Open
wu6u3tw wants to merge 4 commits into
mlcommons:mainfrom
wu6u3tw:docs/t2v-benchmark-gaps
Open

wu6u3tw wants to merge 4 commits into
mlcommons:mainfrom
wu6u3tw:docs/t2v-benchmark-gaps

Conversation

@wu6u3tw

@wu6u3tw wu6u3tw commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Text-to-video (WAN 2.2, wan-2.2-t2v-a14b) support for MLPerf Endpoints: the client, the submission checker handling for video runs, the v6.1 round entry, and a T2V benchmark doc with per-point example configs. Four commits:

Client (feat(videogen): text-to-video client for MLPerf Endpoints)

  • The request mirrors trtllm-serve's VideoGenerationRequest (extra_params, format, response_format) and is sent as is; no client-side renaming.
  • The fixed initial latent is a server input: a dataset with a latent_path column is refused at load.
  • A run bound to a submission_ref refuses prompt rows that override the reference generation settings (size, frames, steps, CFG, seed, extra_params).
  • A request that cannot be encoded is reported as a failed sample instead of losing its slot.

Checker (feat(validation): check video runs in the 2026-10-C1 cohort)

  • wan-2.2-t2v-a14b in the cohort catalog: frames_per_sample (81), the fixed latent's sha256, and the VBench gate (0.99 x 70.48), defined once on the accuracy set.
  • A video run's throughput is system_fps: frames/s of the generated clips (failed clips add no frames), always computed by the checker, outside the token path. Point reads it in place of system_tps.
  • The checker always uses its own accuracy view and sample counts; uploaded values are replaced.
  • Token rows are skipped for a video model; point_latency_p90_positive checks its P90 latency instead.
  • New rows: point_video_no_failed_samples, point_video_no_token_tps, point_sample_count_floor_wan22 (at least 50 generated clips in the performance run), point_accuracy_gate, point_fixed_latent_declared, and pareto_single_model.
  • The entry and rows ride the existing 2026-10-C1 cohort; a T2V cohort is up to the WG.

Round (feat(rulesets): add WAN 2.2 T2V to the v6.1 round)

  • wan-2.2-t2v-a14b (248 prompts) in v6.1 with a 50-sample performance floor; a test pins the round's VBench gate to the cohort catalog's.

Docs and example (docs: T2V benchmark doc and WAN 2.2 point configs)

  • docs/t2v/README.md: benchmark, point set (4 region points + Offline), metrics (frames/s, P90 frames/s per request, frames per kWh), checker rows, and open items for the WG (streaming exemption, sample order, point and accuracy count, lower C_max, fixed latent MUST rule, steady state, metric consistency).
  • examples/09_Wan22_VideoGen_Example: point configs for perf + accuracy and perf only, with a README.

The sample-order config change was moved out of this PR.

Follow-up client issues found in the end-to-end test: requests are not routed to idle endpoints (tail latency at concurrency near the replica count); --mode perf still issues the accuracy prompts (use the perf-only config); --mode acc forces one worker and fails with more than one endpoint; the default connection warmup is far larger than a video point needs.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor/cleanup

Related issues

Testing

  • Tests added/updated
  • All tests pass locally
  • Manual testing completed: end-to-end run of 4 points (concurrency 1, 4, 8, 33)

Checklist

  • Code follows project style
  • Pre-commit hooks pass
  • Documentation updated (if needed)

@wu6u3tw
wu6u3tw requested a review from a team October 1, 2026 23:48
@github-actions github-actions Bot added the size/normal PR Review Policy: <=500 non-test lines & <=20 files label Oct 1, 2026
@mlcommons mlcommons deleted a comment from github-actions Bot Oct 1, 2026
@codecov-commenter

codecov-commenter commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.92982% with 7 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@af73135). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/inference_endpoint/validation/tree.py 96.73% 3 Missing ⚠️
src/inference_endpoint/videogen/adapter.py 95.12% 2 Missing ⚠️
src/inference_endpoint/validation/catalog.py 97.05% 1 Missing ⚠️
src/inference_endpoint/validation/submission.py 94.44% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #523   +/-   ##
=======================================
  Coverage        ?   85.40%           
=======================================
  Files           ?      171           
  Lines           ?    25322           
  Branches        ?        0           
=======================================
  Hits            ?    21626           
  Misses          ?     3696           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wu6u3tw
wu6u3tw force-pushed the docs/t2v-benchmark-gaps branch from 3ecbfdc to 613c934 Compare November 19, 2026 22:12
@github-actions github-actions Bot added size/large PR Review Policy: 501-1500 lines or 21-50 files and removed size/normal PR Review Policy: <=500 non-test lines & <=20 files labels Nov 19, 2026
@wu6u3tw wu6u3tw changed the title [Docs/Plan] t2v benchmark gaps feat: text-to-video (WAN 2.2) client, checker and plan for MLPerf Endpoints Nov 19, 2026
@wu6u3tw
wu6u3tw force-pushed the docs/t2v-benchmark-gaps branch 2 times, most recently from 1e386a9 to 98f43dc Compare November 19, 2026 22:50
@mlcommons mlcommons deleted a comment from github-actions Bot Nov 19, 2026
@wu6u3tw
wu6u3tw force-pushed the docs/t2v-benchmark-gaps branch from 98f43dc to e64019e Compare November 19, 2026 23:37
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@wu6u3tw
wu6u3tw force-pushed the docs/t2v-benchmark-gaps branch 2 times, most recently from dae77ce to 2a5be30 Compare November 20, 2026 00:15
@wu6u3tw wu6u3tw self-assigned this Nov 20, 2026
@wu6u3tw
wu6u3tw requested a review from arekay-nv November 20, 2026 20:09

@nvzhihanj nvzhihanj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Council — Multi-AI Code Review

Reviewed by Codex + Claude + Code-Quality. 6 inline comments: two high (a run hang on latent_path, frames/s crediting failed clips) and four on the cohort checker's frame derivation and VBench gate, plus the README's --mode perf guidance.

Comment thread docs/t2v_benchmark_gaps.md Resolved
Comment thread docs/t2v_benchmark_gaps.md Resolved
Comment thread docs/t2v_benchmark_gaps.md Resolved
Comment thread src/inference_endpoint/config/schema.py Resolved
Comment thread docs/t2v_benchmark_gaps.md Outdated
| Medium | 8 (region 5-11) | 8 (region 6-17) | 8 x 4 GPU |
| High = `C_max`, Offline | 33 (region 12-33) | 64 (region 18-64) | 32 x 1 GPU |

- **33** is the smallest legal `C_max`; one server always holds 2 requests.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one spot where the media generation task differs markedly from LLM inference. A single media generation request can fully saturate a single GPU. Could we ask for a lower C_max than 33?

Especially smaller systems will be mostly queuing with high concurrencies, which leads to wasted compute as the total throughput will not change in the oversubscribed domain where server holds 2 or more requests.

# A multiple of 248 (6.4). With replacement, prompts are drawn at random,
# so this sets the count, not N passes over every prompt.
n_samples_to_issue: "${N_SAMPLES:-248}"
sample_order: "with_replacement"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing Wan2.2 submission configs on main include an output_caching_test. On high concurrencies the samples with replacement will repeat a lot. Should this also get output_caching_test audit?

if "latent_path" in body:
raise ValueError(
"latent_path is not part of the trtllm-serve request schema; set "
"TRTLLM_VIDEO_FIXED_LATENT_PATH in the server environment instead."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Server stack has no way to receive latent, nor is the latent used recorded anywhere? I guess this is a minor concern as how the latent was used can be checked from submitted server code, but would be preferable to keep a vendor-neutral way for client to send the latent or the spec says "the server MUST load the latent with checksum X".

@mlcommons-cla-bot

Copy link
Copy Markdown

MLCommons CLA bot: All contributors are covered by the MLCommons CLA ✍️ ✅

@wu6u3tw
wu6u3tw force-pushed the docs/t2v-benchmark-gaps branch from 423ae26 to b00888e Compare November 24, 2026 00:05
Send trtllm-serve's VideoGenerationRequest as is (extra_params, format,
response_format). Refuse a dataset with a latent_path column at load: the
fixed latent is a server input. A run bound to a submission_ref refuses
prompt rows that override the reference generation settings. A request
that cannot be encoded is reported as a failed sample.
Add wan-2.2-t2v-a14b to the cohort catalog with frames_per_sample, the
fixed latent sha256 and the VBench gate (0.99 x 70.48). A video run's
throughput is read as system_fps (frames/s of the generated clips),
computed by the checker outside the token path. The checker always uses
its own accuracy view, and adds rows for failed samples, token tps, the
50-clip performance floor, the accuracy gate, the declared latent and one
model per pareto.
The per-query ruleset carries only the 50-sample performance floor; a
test pins the round's VBench gate to the cohort catalog's.
docs/t2v/README.md covers the benchmark, point set, metrics, checker rows
and open WG items. The example adds per-point configs (perf+accuracy and
perf-only) and a README.
@wu6u3tw
wu6u3tw force-pushed the docs/t2v-benchmark-gaps branch from b00888e to 69c67f5 Compare November 24, 2026 23:08
@wu6u3tw wu6u3tw changed the title feat: text-to-video (WAN 2.2) client, checker and plan for MLPerf Endpoints feat: text-to-video (WAN 2.2) client, checker and docs for MLPerf Endpoints Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/large PR Review Policy: 501-1500 lines or 21-50 files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants