recipe(distilbert): add MNLI text classification recipes#1153
Open
kujin66 wants to merge 1 commit into
Open
Conversation
Author
|
Reviewer verdict: APPROVE fallback comment / Lane B model PR is ready for maintainer review. Checked items:
Methodology note:
|
kujin66
marked this pull request as ready for review
July 21, 2026 03:05
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 recipe support for
typeform/distilbert-base-uncased-mnli, a DistilBERT sequence-classification checkpoint for MNLI/NLI text classification. This is a recipe-only L0 contribution with Goal L1 evidence on CPU for fp16 and w8a16. Baseline auto-config already builds the model, so the measurable delta is the checked-in catalog recipe plus verified fp16 and w8a16 artifact/perf evidence.examples/recipes/typeform_distilbert-base-uncased-mnli/text-classification_fp16_config.jsonexamples/recipes/typeform_distilbert-base-uncased-mnli/text-classification_w8a16_config.json| typeform/distilbert-base-uncased-mnli | text-classification |toexamples/recipes/README.md.temp/distilbert_mnli_baseline_buildtemp/distilbert_mnli_fp16_quant_buildtemp/distilbert_mnli_w8a16_buildD:\WPDProjects\winml-cli\.venv\Scripts\python.exe -m winml.modelkit build -m typeform/distilbert-base-uncased-mnli -o temp\distilbert_mnli_baseline_build --ep cpu --device cpu --no-analyze --no-optimize --no-quant --no-compile --rebuildBuild complete in 48.6s, final artifacttemp\distilbert_mnli_baseline_build\model.onnx.winml --version:winml, version 0.2.0.origin/main=38767add6f91c7b10b6394fae3af6f437e02effd.D:\WPDProjects\winml-cli\.venv\Scripts\python.exe -m winml.modelkit build -c examples/recipes/typeform_distilbert-base-uncased-mnli/text-classification_fp16_config.json -m typeform/distilbert-base-uncased-mnli -o temp\distilbert_mnli_fp16_quant_build --precision fp16 --ep cpu --device cpu --no-analyze --no-optimize --no-compile --rebuildBuild complete in 33.5s, final artifacttemp\distilbert_mnli_fp16_quant_build\model.onnx.input_ids/attention_mask [1,512], outputlogits [1,3], FLOAT16 initializers109/115.D:\WPDProjects\winml-cli\.venv\Scripts\python.exe -m winml.modelkit build -c examples/recipes/typeform_distilbert-base-uncased-mnli/text-classification_w8a16_config.json -m typeform/distilbert-base-uncased-mnli -o temp\distilbert_mnli_w8a16_build --precision w8a16 --ep cpu --device cpu --no-analyze --no-optimize --no-compile --rebuildBuild complete in 62.3s, final artifacttemp\distilbert_mnli_w8a16_build\model.onnx.input_ids/attention_mask [1,512], outputlogits [1,3],QuantizeLinear=219,DequantizeLinear=328.model_knowledge/distilbert.jsonwith findingdistilbert-001.{ "vendor": ["feature-extraction", "fill-mask", "multiple-choice", "question-answering", "text-classification", "token-classification"], "after_winml": ["feature-extraction", "fill-mask", "multiple-choice", "question-answering", "text-classification", "token-classification"], "added_by_winml": [], "verdict": "VENDOR-ONLY" }Model config probe:
{ "model_type": "distilbert", "architectures": ["DistilBertForSequenceClassification"], "vocab_size": 30522, "max_position_embeddings": 512, "num_labels": 3, "id2label": {"0": "ENTAILMENT", "1": "NEUTRAL", "2": "CONTRADICTION"} }winml inspectresolved tasktext-classification, exporterDistilBertOnnxConfig, and WinML classWinMLModelForSequenceClassificationwith support leveldefault.{ "model_id": "typeform/distilbert-base-uncased-mnli", "model_type": "distilbert", "effort": "L0", "goal_ceiling": "L1", "outcome": "L0", "target_eps": ["cpu"], "catalog_gate": { "baseline_build": "PASS", "verdict": "catalog-needs-numbers", "file_pr": true } }{ "deliverable_ref": "typeform/distilbert-base-uncased-mnli", "ladder": [ { "tier": "L0", "verdict": "PASS", "evidence": "Baseline auto-config and recipe builds produced loadable ONNX artifacts. fp16 model.onnx: inputs input_ids/attention_mask [1,512], output logits [1,3], FLOAT16 initializers 109/115. w8a16 model.onnx: inputs input_ids/attention_mask [1,512], output logits [1,3], QuantizeLinear=219, DequantizeLinear=328." }, { "tier": "L1", "verdict": "PASS", "evidence": "CPU providers snapshot: ['DmlExecutionProvider', 'CPUExecutionProvider']. fp16 CPU perf mean 189.806 ms, throughput 5.27 samples/sec, RSS total delta 294.35 MB. w8a16 CPU perf mean 279.577 ms, throughput 3.58 samples/sec, RSS total delta 283.38 MB." } ], "ceiling_reached": "L1", "ceiling_downgraded": false, "new_verdict_shapes": [] }_meta-057was applied: recipe validation used explicit--precision fp16/--precision w8a16, then verified FLOAT16 initializer count and QDQ node counts. This caught that a plain CPU build can resolvequanttonullfor fp16.src/winml/modelkit/analyze/rules/runtime_check_rulescontains onlyREADME.md; this is the known_meta-056host gap, and the finding minesexport_htp_metadata.jsonpluswinml_build_config.jsoninstead.Additional notes
origin/main38767add6f91c7b10b6394fae3af6f437e02effd.