feat: Add E2E eval pipeline for QNN NPU models#242
Merged
Conversation
Collaborator
Code reviewFound 4 issues:
🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Contributor
Author
issue 1 & 2 are by designed, 3 & 4 are fixed |
DingmaomaoBJTU
approved these changes
Apr 3, 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 E2E eval pipeline for QNN NPU models
This pipeline automates end-to-end model evaluation on the self-hosted NPU agent, from model discovery through report generation and artifact publishing. https://dev.azure.com/microsoft/windows.ai.toolkit/_build?definitionId=190174&_a=summary
Pipeline overview
The pipeline is manually triggered (
trigger: none) with two parameters:Jobs
1. Prepare — Sets up the Python environment (uv + Python 3.10), installs dependencies from Azure Artifacts, computes the eval output directory (
c:/eval_results/{date}), generates the model list, and builds an ADO matrix for parallel-safe sequential execution.2. EvalModel — Runs each model through
run_eval.pyone at a time (maxParallel: 1) using the matrix from Prepare. Individual model failures are logged as warnings but do not fail the pipeline, so remaining models continue to be evaluated.3. Report — Runs unconditionally (
condition: always()) after eval completes. Generates the evaluation report (JSON, text, markdown, HTML) viagenerate_report.py, then publishes the entire results directory as a downloadable pipeline artifact (EvalReport).Key design decisions
NPU-QNN) — required for NPU device access--continueflag skips already-evaluated models, allowing the pipeline to be re-triggered to pick up where it left offPublishPipelineArtifact@1so anyone who triggered the pipeline can download them from the run summary