recipe(lt-wikidata-comp-en): sentence-similarity recipe - #1359
recipe(lt-wikidata-comp-en): sentence-similarity recipe#1359ssss141414 wants to merge 2 commits into
Conversation
|
REQUEST_CHANGES Reviewed SHA: The L0 diff scope is correct and the current GitHub gates are green, but the evidence chain is not yet reviewable enough to approve:
Verified favorable evidence:
This is a normal reviewer opinion comment, not a GitHub Review state. The PR must remain draft. |
|
APPROVE Reviewed candidate The prior requests are closed:
The candidate diff remains exactly the two CPU recipe JSON files. Unchanged fp32/local quality evidence is explicitly marked carried over; repaired fp16 and L2/L3 evidence is fresh. The two-row STS Spearman result is correctly limited to functional operability, not representative accuracy. Live verification: PR is OPEN and DRAFT, labeled This is an ordinary reviewer opinion comment, not a GitHub Review state. Preserve the draft PR. |
Summary
Adds CPU fp32 and true-fp16 sentence-similarity recipes for
dell-research-harvard/lt-wikidata-comp-en, an English MPNet embedding checkpoint used for entity and company-description similarity. This is an L0 recipe-only contribution with no product-code or production README changes. Tester reached the L3 PASS ceiling on repaired candidate679262929391003678bb479a5c034e7691d2854c.Model metadata
What the model does
The checkpoint emits
last_hidden_stateembeddings for English text. Sentence-pair similarity is computed from embedding cosine similarity.af65d96525b7cb3e125a52b89928ae78b39c6d21MPNetModel, 12 encoder layers, hidden size 768sentence-similarityfeature-extractionSupported tasks
The current-lock probe reported WinML MPNet support for feature extraction, fill-mask, multiple choice, question answering, text classification, and token classification. This checkpoint's recipe is scoped to sentence similarity through feature extraction; no new exporter source was required.
Validation and support evidence
Baseline
Baseline was pinned to
maincommite28b128f5c2f69ecb2d73b63d2aea0a5ee8bddd0. Auto-config and the fp32 baseline build passed with int32input_idsandattention_maskshaped[1,512]and float32last_hidden_stateshaped[1,512,768]. The publicwinml evalpath could not compute the STS metric, so the final L3 proof uses the bounded tester-owned harness below and keeps the CLI blocker visible.Goal
last_hidden_stateagree on two real texts under predeclared precision-specific bounds.Outcome
Shipped effort and committed Outcome are
L0; highest Goal verdict isL3 PASS. Coverage isfull, with no deferred tuples.Shipped paths:
examples/recipes/dell-research-harvard_lt-wikidata-comp-en/cpu/cpu/sentence-similarity_fp32_config.jsonexamples/recipes/dell-research-harvard_lt-wikidata-comp-en/cpu/cpu/sentence-similarity_fp16_config.jsonThe repair commit changed only the fp16 recipe. The fp32 recipe and all Python source/tests are byte-identical to the prior candidate, so sealed fp32 L0/L1 and local Ruff/mypy/pytest evidence were independently rehashed and are explicitly carried over, not represented as new-SHA executions. The repaired fp16 build, inspection, perf, L2, and L3 are fresh. New-SHA live CI remains an independent Reviewer gate.
Per-EP/device/precision results
The fp16 perf record reports both requested and detected precision as
fp16. The repaired artifact has 203 FLOAT16 initializers, zero FLOAT initializers, and float32 output I/O. Directmodel.onnx.datasizes are 448,168,960 bytes for fp32 and 224,086,528 bytes for fp16; these are sidecar sizes, not aggregate directory totals.Numerical acceptance
Bounds were frozen in the harness before execution:
Both rows passed both bounds for each precision.
Functional smoke Eval
Dataset
mteb/stsbenchmark-stsrevision96943a16ea6a35129e253c659081cb59daf81b30,testsplit: 2 selected and 2 processed rows. Fan-out was capped at 2 samples, 2 sentence pairs, and sequence length 512. Schema, label semantics, and prediction semantics were verified. Prediction wascosine(last_hidden_state[:,0,:]); the two-row Spearman was-0.9999999999999999.This proves end-to-end evaluator operability only. It is not representative accuracy or a benchmark-quality claim. The public
winml evalmetric path remainsCLI-BLOCKED.Delta
The fp32 recipe matches planner auto-config. The fp16 recipe makes conversion and public I/O intent explicit:
The resolved build config contains the same two semantic values plus resolved defaults. No source code changed.
Analyze summary
Static rule analysis is compatibility evidence, not runtime execution. The unchanged fp32 artifact inventory contains 439 ops across 18 types; its prior exhaustive classification is carried over with the exact recipe. For repaired fp16, graph structure, dtype, size, perf precision, and numerical parity were freshly verified. fp16 EP rule classification remains
RULES-UNAVAILABLEbecause runtime rule parquet files were absent; no runtime-support claim is inferred from Analyze.Reproduce commands
The following clean-checkout command materializes the complete tester-owned harness and runs it. It accepts artifact/output paths as arguments, pins model and dataset revisions, pads both named inputs to
[1,512], freezes fp32/fp16 bounds before inference, and exits nonzero if either L2 precision misses its bound.