Skip to content

双芯入卷,验迹随行 · Add Intel and AMD NPU backends and release packaging - #67

Merged
eric8810 merged 2 commits into
mainfrom
feat/npu-runtime-packaging
Oct 6, 2026
Merged

eric8810 merged 2 commits into
mainfrom
feat/npu-runtime-packaging

Conversation

@eric8810

@eric8810 eric8810 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 接入 Linux x64 glibc 的 Intel OpenVINO 包内运行时和 AMD Ryzen AI NPU 后端;AMD 采用预编译 BF16 识别 context,检测保留 CPU 分区。
  • 增加固定 SDK 提取、AMD 20 桶模型编译/导入、descriptor 2.1、包内路径和完整哈希校验、驱动/compiler 最低版本检查。
  • 补齐 NPU 候选构建、审阅报告绑定、许可证/SBOM 和 npm 发布输入;NPU 真机报告不再作为发布前置,SDK 库存、哈希、模型和许可证检查保留;WebGPU 原有发布资格规则不变。
  • 更新 AMD/Intel 技术文档与构建发布说明,纠正旧 AMD 预研中对 Linux CNN 编译限制的判断。

Verification

已完成改造期间的检查:

  • Intel 本机成功使用包内 OpenVINO 2026.4.0 创建检测与识别 NPU 会话。
  • cmake --build build/npu-release --parallel 4:最终 Core 与 Node addon 构建通过。
  • ctest --test-dir build/npu-release --output-on-failure -R light_ocr_unit_tests:改造期间单元测试通过;后续收尾修改后已重新构建,未重新运行测试。
  • python -m unittest tests.python.test_npm_release tests.python.test_npm_webgpu_release:改造期间 15 项发布工具测试通过;后续收尾修改后未重新运行测试。
  • Python compileall、JavaScript syntax、workflow YAML/Bash syntax、AMD backend 和 AMD Core 分支的 C++ strict syntax 检查通过。
  • git diff --check 通过。

Release policy (updated per maintainer request)

  • AMD 默认关闭,始终排除在 Auto 候选列表之外;用户通过 execution.provider: "amdnpu"、CLI --provider amdnpu 或 C++ 显式开启。
  • 按维护者最新要求,不再进行 NPU 真机验收,也不要求设备报告才能发布 NPU 支持。Intel 仍位于已包含 provider 的 Auto 首位。
  • 未经验证的设备诊断保留 deviceValidated: false,发布状态不再被当作设备已验收的证据。
  • AMD vendor SDK 与真实的 20 桶编译模型仍需取得并随构建交付;当前没有这些二进制,源码编译不代表真实设备部署验证。
  • 本次策略调整后 Core/Node 已重新构建,Python/JavaScript/workflow syntax 检查通过;更新了已有 OpenVINO 策略断言,未重新运行测试。
  • 未调整版本号、未发布 npm。

Checklist

  • Relevant NPU behavior tests were added or updated (existing OpenVINO release-status assertion updated; no new device tests).
  • Documentation and CHANGELOG.md were updated for user-visible changes.
  • No credentials, private OCR inputs, generated build trees, or SDK/model binaries are included.

@eric8810
eric8810 merged commit 778ce18 into main Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant