recipe(rubentito/layoutlmv3-base-mpdocvqa): add verified CPU fp32/fp16 recipes#1208
Open
codykk wants to merge 1 commit into
Open
recipe(rubentito/layoutlmv3-base-mpdocvqa): add verified CPU fp32/fp16 recipes#1208codykk wants to merge 1 commit into
codykk wants to merge 1 commit into
Conversation
Add CPU fp32 and fp16 build config recipes for the rubentito/layoutlmv3-base-mpdocvqa checkpoint (LayoutLMv3ForQuestionAnswering).
codykk
marked this pull request as ready for review
July 24, 2026 08:29
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.
Summary
Add verified CPU fp32 and fp16 recipes for
rubentito/layoutlmv3-base-mpdocvqa, a LayoutLMv3 model fine-tuned on MP-DocVQA for document question answering. Architecture support already exists onmain(PR #1174); this contribution ships checkpoint-specific recipe configs with L1 (perf) verification on both precisions.Model metadata
What the model does: LayoutLMv3 is a multimodal document understanding Transformer that jointly encodes text tokens (with bounding-box position embeddings) and document image patches to perform extractive question answering over visually-rich documents.
Primary user stories:
Supported tasks: question-answering (extractive span prediction — start_logits / end_logits)
Model architecture:
LayoutLMv3ForQuestionAnsweringclass (verified).Validation and support evidence
Baseline
On
main(commit67169d45, WinML CLI latest),rubentito/layoutlmv3-base-mpdocvqabuilds successfully out-of-the-box for both fp32 (512.7 MB) and fp16 (260.3 MB) via auto-config. PR #1174 (merged 2026-07-23) registeredLayoutLMv3IOConfigwith full multi-modal input support. Optimum coverage: layoutlmv3 is a supported architecture in optimum exporters.Goal
Outcome
Goal L1 reached on all required tuples. Coverage: full (all planned tuples PASS). No deferred tuples.
Per-EP/device/precision results
Eval: CLI-BLOCKED — no
winml evalcommand available for task-metric verification.Delta
Shipped recipes relative to auto-config baseline:
examples/recipes/rubentito_layoutlmv3-base-mpdocvqa/cpu/cpu/question-answering_fp32_config.json— identical to auto-generated config (explicit checkpoint pin)examples/recipes/rubentito_layoutlmv3-base-mpdocvqa/cpu/cpu/question-answering_fp16_config.json— addsquant.mode: "fp16"with uint8 weight/activation quantizationexamples/recipes/README.mduntouched.Analyze summary — component level and op level
CLI-BLOCKED —
winml analyzerequires runtime rule parquet files not present in this installation. This is an infrastructure gap, not a model issue. Static rule analysis was not executed.Reproduce commands