← Back to Pull requests

vxpu/plan: emit pass-through plan for models with no custom ops #813

Closed
unknown closed this pull request without merging on Nov 23, 2026 20:08 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 15:24 UTC
Author

For a model with none of our custom operations (such as tiny Llama exported
from transformers), vxpu plan emit produces a pass-through plan containing
artifact_md5, tree_commit, and the artifact's macroscopic family sites (one
DENSE_GEMV per two-dimensional bound weight and three named after each layer:
attn, attn.sum, ffn.sum). These sites come from EmitFromArtifact guessing sites
from tensor names in the binding (pkg/kernelplan/plan.go), not from the graph,
and for Llama match no call site; all have strategy "default" and body unset,
with zero knobs and zero planned graph call sites, so nothing acts on them for
this model.

The RequiredPackages rule remains unchanged for now: the plan does not yet
declare whether it targets an ahead-of-time or plain-PyTorch runtime, so
plan packages on the Llama plan continues to report a package (submod_0)
that it does not need. That runtime declaration is owed to a follow-up move.

Define a pass-through tree narrowly: when the graph has no call sites of
our ops and the plan names no body and sets no knob. The tree page uses
this definition to display "Pass-through plan: Every call site runs the engine's
own implementation", render that every call site runs the engine's own
implementation under segments, and omit the rendered unmatched-section.
Plans whose planned sites fail to match the graph retain their unmatched
warning note and table.

In tests/e2e/e2e_test.go, verify that vxpu plan emit on tiny Llama produces
the pass-through plan with its macroscopic family sites, all bodies unset,
and no knobs, and that the tree page renders plainly stating that every call
site runs the engine's own implementation without rendering the unmatched-section
element. Document pass-through plans in vxpu/docs/design.md.

Fixes #802

Diff: 222 lines (+166 / -56) across 2 files Reviewer: codebot-robot Review duration: 283m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 222 lines diff across 2 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.323
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #813"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.8% (MEDIUM) · Higher = larger blast radius
36.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.5% · Safe to merge
14.5%