Repository navigation
feat(aiperf-qual): native references for Chinese-CLIP and Stable Video Diffusion - #2658
Draft
chaofengw-nv wants to merge 4 commits into
Draft
chaofengw-nv wants to merge 4 commits into
chaofengw-nv wants to merge 4 commits into
Conversation
…o Diffusion Chinese-CLIP scores each query as the logit scale times the cosine, with the Python processor and the 64-token window its E2E uses. Stable Video Diffusion runs Diffusers' pipeline on the initial image alone with the runtime's noise stream. Its testcases state no prompt, so the benchmark sends the empty prompt the Task requires and reads num_steps. The COCO start frames are fitted to the bundle's video size when the request states none, since SVD declares no width or height config. The SVD testcase image paths are now relative to tests/, as the benchmark resolves them. Signed-off-by: chaofengw <chaofengw@nvidia.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
trtmc-bench fills the catalog request's width and height from the manifest, and the worker passes them as Task config, which Stable Video Diffusion does not declare. A null in a suite request now removes the field, as it already does for an absolute benchmark's request; the SVD profiles null width and height, and their start frames are fitted to the bundle's video size. Signed-off-by: chaofengw <chaofengw@nvidia.com>
…s them Revert the null-removal and bundle-size fitting: the request keeps the catalog size, as the request contract requires. The worker treats height and width as the expected frame size of an image-to-video Task that declares no size config, as it does num_frames, and checks the result against them. A per-frame guidance range (min and max guidance scale) states a request's guidance; the SVD profiles state it at the pipeline's defaults. Signed-off-by: chaofengw <chaofengw@nvidia.com>
…me does Signed-off-by: chaofengw <chaofengw@nvidia.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Three ready catalog profiles have no native path in the AIPerf qualification, so
trtmc-aiperf-qual matrixlists them as blocked and a formal run cannot start with them in scope:chinese-clip-vit-base-patch16text_image_to_relevancesvd-xtinitial_image_text_to_videosvd-xt-fp32initial_image_text_to_videoStable Video Diffusion has three further gaps:
widthandheight. The worker passes those as Task config, and SVD declares neither, so the request cannot carry them.test_img.jpeg. Its E2E prefixesdata/, while the benchmark resolves assets relative totests/.Exit Criteria
matrixlists it as executable.initial_image_text_to_videotestcase resolves to the empty prompt. Testcases that state a prompt are unchanged.Implementation
families/chinese_clip/reference/adapter.py:ChineseCLIPModelwithChineseCLIPProcessor(use_fast=False). As intests/test_e2e.py, the queries are padded to 64 tokens,input_idsandattention_maskare passed, and each pair is scored as the logit scale times the cosine of the projected embeddings (the runtime's logit). Imagenette's class prompts are English; the benchmark gate is the regression against native on the same prompts.families/stable_video_diffusion/reference/adapter.py: DiffusersStableVideoDiffusionPipelineon the initial image at its size and the bundle's frame count (options.num_frames). It uses the request's steps, seed and conditioning controls, and the noise stream the E2E reproduces: a CPU generator draws the float32 conditioning-image noise, then the float32 latents, cast to the pipeline dtype. A non-empty prompt is refused, as the runtime does.apps/benchmark/trtmc_benchmark/task_adapters.py: aninitial_image_text_to_videotestcase without a prompt resolves toprompt: "".num_stepsis read alongsidenum_inference_steps, and a case stating both is refused. The unit test covers both.apps/aiperf_qual/trtmc_aiperf_qual/models.pyandsuites.py: a suite withfit_to_requestgets the bundle's video size (the manifest'simage_widthximage_height) asfit_size. It is used only when the request states no size. The unit test covers the size and when it applies.families/stable_video_diffusion/tests/manifests/*.jsonandtests/test_e2e.py: the image isdata/test_img.jpeg, relative totests/, which is how the other families state it. The E2E reads it from that path.config/models/:chinese-clip-vit-base-patch16.yaml,svd-xt.yamlandsvd-xt-fp32.yaml.Change categories
Validation
Commands and Results
ruff check --config ruff.toml,py_compileandpython tools/legal_headers.py --check: passed.svd-xtandsvd-xt-fp32togenerate_imagewithprompt: "", their steps, seed and image;chinese-clip-vit-base-patch16torelevancewith its two queries.trtmc-aiperf-qual matrixagainst a GB300-platform environment: the three profiles are executable, with the new native paths.Hardware, Environment, and Revisions
main. Static checks on a Linux x86_64 host.Not Run / Remaining Gaps
Contributor Self-Review
Risk level
New references and configurations for three profiles that could not run before. The request and suite changes apply only to cases that state no prompt or no size.