Open
feat(onnx): Integrate validated ONNX input into native PyPTO-Pro #4
feat(onnx): Integrate validated ONNX input into native PyPTO-Pro #4
Open
hid22900163Add on 22 days ago
hid22900163
hid22900163
22 days ago

Adds validated ONNX input to the current native PyPTO-Pro workflow. Ingest recovers a Torch reference and weights, generates SPEC/CPU/NPU goldens, and hands them to pypto-pro-kernel for implementation, precision checks, optimization and delivery.

Rebased onto lim-jiunnbin/master; follows upstream's native architecture without restoring Scriptor.

Three commits:

  1. ONNX frontend (0b61116e): ingestion skill, provenance/coverage checks, ORT comparison, native routing and installation.
  2. Graph-dependent support (6152ccdb): preserves intermediate dtypes/Casts, improves converter coverage, and validates generated goldens on NPU. Native frozen-weight binding remains an explicit host-wrapper responsibility.
  3. Shared guidance (50a208ea): adds numerical-debugging guidance to the existing native workflow.

Validation: 644 ONNX tests; 37 installer tests (one skip); four golden-scaffold and 14 native-SPEC checks passed. A fresh, planner-assisted OpenCode DeepSeek Pro run produced a small weighted Add/Mul/Sub native kernel with zero observed NPU comparison error and passing weight controls. A mixed-precision ingestion case preserved rounding boundaries. Source checks were completed after device execution; remote CI and performance are not claimed.

Workflow diagrams, validation and example — the rendered artifact still reflects the pre-rebase Scriptor flow; its source Markdown has been updated for manual re-rendering.

Developer-only portable setup examples/locks and campaign artifacts are excluded.

likedislike
Merge blocked