Skip to content

[WIP] [part-1] Add benchmark report schema v0.2.1 for multimodal payload statistics#1430

Draft
Bslabe123 wants to merge 4 commits into
mainfrom
multimodal-br-v0_2_1-schema
Draft

[WIP] [part-1] Add benchmark report schema v0.2.1 for multimodal payload statistics#1430
Bslabe123 wants to merge 4 commits into
mainfrom
multimodal-br-v0_2_1-schema

Conversation

@Bslabe123
Copy link
Copy Markdown

@Bslabe123 Bslabe123 commented May 29, 2026

Summary

v0.2.1 of the benchmark report schema, a strict additive superset of v0.2** that carries the multimodal payload statistics inference-perf now emits (image / video / audio). Every new field is optional, so every valid v0.2 report is also a valid v0.2.1 report (hard requirement, enforced by tests rather than inspection). This is the schema (the destination) only. The inference-perf converter that populates it and a validator cleanup follow in separate, dependent PRs to keep each diff small.

What's added

  • results.request_performance.aggregate.requests.request_size (Statistics): total encoded request size in bytes.
  • results.request_performance.aggregate.requests.multimodal: a per-modality block. image/video carry count, bytes, pixels, aspect_ratio; video adds frames; audio carries count, bytes, seconds.
  • results.request_performance.aggregate.throughput.{image,video,audio}_rate (Statistics): per-modality delivery rates.
  • New unit categories: pixels (quantity), ratio (aspect ratio, distinct from a 0..1 portion), bytes (memory), and a media-throughput category (images/s, videos/s, audios/s) kept separate from the request-rate category so the existing request_rate guardrail is untouched.

@github-actions
Copy link
Copy Markdown
Contributor

Unsigned commits detected! Please sign your commits.

For instructions on how to set up GPG/SSH signing and verify your commits, please see GitHub Documentation.

Bslabe123 added 4 commits May 29, 2026 17:56
Additive minor revision of the v0.2 benchmark report schema. Introduces
optional per-modality (image/video/audio) payload statistics on the request
aggregates and new unit categories (pixels, ratio, bytes, media throughput).

- base.py: add Units.PIXELS/RATIO/BYTES and images/videos/audios per-second
  rate units; add UNITS_RATIO and UNITS_MEDIA_THROUGHPUT lists.
- schema_v0_2_1.py: MediaPayloadStats hierarchy (image/video/audio), extended
  AggregateRequests (request_size, multimodal) and AggregateThroughput
  (image/video/audio_rate), and BenchmarkReportV021.
- core.py / __init__.py: register and dispatch schema version 0.2.1.
- regenerated br_v0_2_1 example and JSON schema artifacts.

All new fields are Optional, so any v0.2 report remains valid under v0.2.1.

Refs: #989, kubernetes-sigs/inference-perf#450
Signed-off-by: Brendan Slabe <slabe@google.com>
Enforces the hard requirement that every valid v0.2 benchmark report is also
valid under v0.2.1, via three angles: the committed v0.2 example validates
under both models, v0.2 data dumps identically under either version, and every
field v0.2.1 adds is Optional (no v0.2 field becomes required). Runs under the
existing `pytest tests/` PR CI job.

Signed-off-by: Brendan Slabe <slabe@google.com>
- tests/test_benchmark_report_v0_2_1_multimodal.py: a fully populated
  multi-modal report validates and round-trips; each per-modality unit is
  accepted with its correct category; mismatched units are rejected, including
  proof that the inherited v0.2 request_rate guardrail is not loosened.
- README: document v0.2.1 as an additive superset of v0.2, listing the new
  request_size, per-modality multimodal block, and media-rate fields plus the
  new unit categories.

Signed-off-by: Brendan Slabe <slabe@google.com>
Grounding the v0.2.1 schema against inference-perf's emitted lifecycle
report (post #450/#477) shows video temporal extent is modeled as sampled
frames, not wall-clock seconds: the native Video record carries
pixels/bytes/aspect_ratio/frames and no duration. The seconds field on
VideoPayloadStats therefore had no producer, so remove it; audio.seconds
stays since the native Audio record emits it.

Updates the schema, generated JSON schema, example, README, and the
video unit tests accordingly.

Signed-off-by: Brendan Slabe <slabe@google.com>
@Bslabe123 Bslabe123 force-pushed the multimodal-br-v0_2_1-schema branch from 2dc93b9 to ff29a54 Compare May 29, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant