recipe(cross-encoder/ms-marco-MiniLM-L4-v2): add text-classification fp32/fp16 recipes#1121
Open
codykk wants to merge 1 commit into
Open
recipe(cross-encoder/ms-marco-MiniLM-L4-v2): add text-classification fp32/fp16 recipes#1121codykk wants to merge 1 commit into
codykk wants to merge 1 commit into
Conversation
…MiniLM-L4-v2 Recipe-only contribution. Adds fp32 and fp16 recipe configs for cross-encoder/ms-marco-MiniLM-L4-v2 (BertForSequenceClassification, 4 layers) on two verified EP/device combinations: cpu/cpu and dml/gpu. Goal ladder (verified on local hardware): - L0 (build): PASS on all 4 configs - L1 (perf): - cpu/cpu fp32: 82.69 samples/s - cpu/cpu fp16: 85.10 samples/s - dml/gpu fp32: 81.25 samples/s - dml/gpu fp16: 31.42 samples/s
3f3bf46 to
3bb2f8b
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
cross-encoder/ms-marco-MiniLM-L4-v2 (
BertForSequenceClassification, 4 layers, tasktext-classification)on two verified EP/device combinations: CPU and DML (GPU). Goal L1 (perf) PASS on all 4 configs.
1. Recipe path(s)
examples/recipes/cross-encoder_ms-marco-MiniLM-L4-v2/cpu/cpu/text-classification_fp32_config.jsonexamples/recipes/cross-encoder_ms-marco-MiniLM-L4-v2/cpu/cpu/text-classification_fp16_config.jsonexamples/recipes/cross-encoder_ms-marco-MiniLM-L4-v2/dml/gpu/text-classification_fp32_config.jsonexamples/recipes/cross-encoder_ms-marco-MiniLM-L4-v2/dml/gpu/text-classification_fp16_config.json2. README row
N/A — README not modified in this PR.
3. Build output dir
temp/minilm4_cpu_fp32/temp/minilm4_cpu_fp16/temp/minilm4_dml_fp32/temp/minilm4_dml_fp16/4. Build log
✅ Build complete in 16.2s(Export 3.8s, Optimize 12.0s)✅ Build complete in 16.9s(Export 3.5s, Optimize 12.2s, FP16 0.7s)✅ Build complete in 16.5s(Export 3.7s, Optimize 12.3s)✅ Build complete in 17.3s(Export 3.8s, Optimize 12.5s, FP16 0.7s)5. Appended findings
N/A — recipe-only L0 contribution.
6. Optimum-coverage probe
bertarchitecture fully supported by Optimum and winml.winml inspectconfirms all components at "Default" status.7. Claimed (Effort, Goal, Outcome)
8. Goal-ladder verdict table
9. Methodology-evolution declaration
No methodology friction observed.
10. Perf & eval data
11. Component / op-level data
gelu_fusion,matmul_add_fusion12. Reproducible commands