QNN: Whisper encoder compiled with QAIRT 2.51 crashes the HTP on SM8850

未关闭
#25,689 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
12/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, python

调研方向

The failure is a QNN HTP runtime crash on SM8850 after compiling Whisper encode with QAIRT 2.51, so it sits outside the ExecuTorch Python code. Start from the repro in exporter_models/whisper/qnn/export.py and compare the v1.4.1/QAIRT 2.47 and v1.6.0/QAIRT 2.51 context binaries with qnn-context-binary-utility, focusing on spillFillBufferSize. Done would mean identifying the cause of error 0x2301 or confirming a QAIRT-side fix, which likely needs hardware and vendor SDK access.

由索引模型根据 Issue 内容生成。

描述

Whisper-tiny encode lowered to QNN (fp16, SM8850) with v1.6.0 + QAIRT 2.51.0.260929 fails at execute on a Galaxy S26 Ultra in most runs; repeated runs ended in a kernel panic:

QnnDsp <E> skelExecute call failed with err 1007
CDSP0:[R]: Error code : 0x2301

Probably QAIRT rather than ExecuTorch:

  • The same graph compiled with v1.4.1 + QAIRT 2.47 runs fine on the same device and the same 2.51 runtime (com.qualcomm.qti:qnn-runtime:2.51.0).
  • qnn-context-binary-utility shows the same graph and IO in both contexts; only spillFillBufferSize grows, 21.9 MB -> 31.4 MB.
  • The x86 HTP simulator runs the 2.51 context fine.
  • Single-SoC and multi-SoC (FCB) contexts both fail.

Repro: exporter_models/whisper/qnn/export.py in software-mansion-labs/executorch-export-recipes (variant whisper_tiny_qnn_fp16_v81.pte), then run method encode on any 480000-sample float input.

主要语言
Python
星标
5.2k
派生
1.3k
平均合并
1 天 7 小时
30 天内合并 PR
644

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pytorch/executorch 的其他 Issue

查看 pytorch/executorch 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。