recipe(google/owlvit-base-patch32): add verified CPU fp32/fp16 recipes#1145
Merged
Merged
Conversation
codykk
marked this pull request as ready for review
July 20, 2026 12:09
codykk
force-pushed
the
yongyue/add-google-owlvit-base-patch32-recipe
branch
from
July 21, 2026 01:41
9bdd51b to
03ffc3a
Compare
Contributor
This is strange that recipe is different from winml config produces in input tensor orders... Could you sync latest skill and then run again with these question? |
codykk
force-pushed
the
yongyue/add-google-owlvit-base-patch32-recipe
branch
3 times, most recently
from
July 24, 2026 01:55
2d7bf89 to
63050e7
Compare
Add zero-shot-object-detection recipes for google/owlvit-base-patch32 on CPU (fp32 and fp16), verified through L2 numeric parity against PyTorch (cosine > 0.9999 on all outputs).
codykk
force-pushed
the
yongyue/add-google-owlvit-base-patch32-recipe
branch
from
July 24, 2026 02:39
63050e7 to
76b6f40
Compare
Contributor
Author
I ran it with the latest skill and it looks fine; I only added the recipe. |
DingmaomaoBJTU
approved these changes
Jul 24, 2026
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.
Add verified CPU zero-shot-object-detection recipes (fp32 and fp16) for
google/owlvit-base-patch32. Effort L0 (recipe-only, no source code changes). Goal L2 reached — all outputs achieve cosine similarity ≥ 0.99999 against PyTorch. L3 blocked:winml evaldoes not supportzero-shot-object-detection.Model metadata
What the model does: OWL-ViT (Vision Transformer for Open-World Localization) performs open-vocabulary object detection — given an image and a set of free-text category queries, it predicts bounding boxes and class logits without requiring training on those specific categories.
Primary user stories:
Supported tasks:
zero-shot-object-detectionModel architecture:
OwlViTForObjectDetectionfromtransformerspinned checkpointgoogle/owlvit-base-patch32(verified).Validation and support evidence
Baseline
origin/main:ace130f24cbe5a2935333c7c7deacadf8d8ba65ewinml --version:0.2.0zero-shot-object-detectionin vendor-only (Optimum native);winmladds no extra tasks. Verdict:VENDOR-ONLY.winml config -m google/owlvit-base-patch32auto-generated; input orderpixel_values → input_ids → attention_maskmatchesforward()signature (input-reorder fix landed in recipe(owlvit): add verified CPU fp32 and fp16 support #1155).Goal
winml evaldoes not supportzero-shot-object-detection(CLI feature gap)Outcome
Goal L2 reached on both precisions. Coverage:
full(all target tuples PASS on this host). No deferred tuples.Shipped recipes:
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.jsonPer-EP/device/precision results
L2 — Numeric parity (PyTorch vs ONNX):
L3: CLI-BLOCKED —
winml evaldoes not support taskzero-shot-object-detection.Delta
The fp32 recipe is identical to
winml configauto-generated output (filed for verifiedcpu/cpucoverage). The fp16 recipe adds thequantblock withmode: "fp16"for fp16 conversion. No source code changes.examples/recipes/README.mduntouched.Analyze summary
CLI-BLOCKED:
winml analyzerequires runtime rule parquet files not present in this environment. Static rule analysis unavailable; does not affect build/perf/parity results.Reproduce commands