recipe(google/owlvit-base-patch32): add zero-shot-object-detection recipes#1145
Open
codykk wants to merge 1 commit into
Open
recipe(google/owlvit-base-patch32): add zero-shot-object-detection recipes#1145codykk wants to merge 1 commit into
codykk wants to merge 1 commit into
Conversation
codykk
marked this pull request as ready for review
July 20, 2026 12:09
…cipes Add fp32 and fp16 recipe configs for google/owlvit-base-patch32 (OwlViTForObjectDetection, task zero-shot-object-detection) on CPU. Goal L1 (perf) PASS on both precisions. Input tensor order follows forward() signature (input_ids, pixel_values, attention_mask) per owlv2-003 finding.
codykk
force-pushed
the
yongyue/add-google-owlvit-base-patch32-recipe
branch
from
July 21, 2026 01:41
9bdd51b to
03ffc3a
Compare
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.
Recipe-only contribution (Effort L0). Adds fp32 and fp16 recipe configs for google/owlvit-base-patch32 (
OwlViTForObjectDetection, taskzero-shot-object-detection) on CPU. Goal L1 (perf) PASS on both precisions.Model metadata
zero-shot-object-detection(winml-registered viaensure_hf_models_registered)OwlViTForObjectDetectionsource fromtransformers+ pinned checkpointgoogle/owlvit-base-patch32config.json (verified).Validation and support evidence
1. Baseline
origin/maincommit:6ea1b070vendor: [],after_winml: ['feature-extraction', 'zero-shot-object-detection'], verdict:WINML-ONLYwinml evaldoes not supportzero-shot-object-detection)2. Goal
winml evaldoes not supportzero-shot-object-detectiontask)winml buildsucceeds andwinml perfruns without crash on all required(ep, device, precision)tuples.3. Outcome
examples/recipes/google_owlvit-base-patch32/cpu/cpu/zero-shot-object-detection_fp32_config.jsonexamples/recipes/google_owlvit-base-patch32/cpu/cpu/zero-shot-object-detection_fp16_config.json4. Per-EP/device/precision results
L3 blocker:
winml evaldoes not support taskzero-shot-object-detection.5. Delta
Recipe-vs-
winml configdiff:export.input_tensorsorder[pixel_values, input_ids, attention_mask][input_ids, pixel_values, attention_mask]forward()signature order perowlv2-003findingAll other fields identical to auto-config output. Production recipe README (
examples/recipes/README.md) remains untouched.Reducibility: The input-order fix is a recipe-authoring rule (per-model declaration), not a class-of-models code gap —
winml configgenerates the inputs in an arbitrary order; pinning toforward()order is a correctness choice specific to each checkpoint's recipe. Resolution: recipe (L0).6. Analyze summary — component level and op level
winml analyzeCLI-BLOCKED: runtime rule parquet files not found in the local environment. This is a host environment gap (missing rule data files), not a model or recipe issue. Analyze is not a Goal-tier requirement and does not block L0/L1 verdicts.7. Reproduce commands