Skip to content

Add QNN EP documentation to OGA including Genie note - #2158

Merged
baijumeswani merged 5 commits into
microsoft:mainfrom
CodeLinaro:dev/qti-kromero/qnn-genie-docs
May 18, 2026
Merged

Add QNN EP documentation to OGA including Genie note#2158
baijumeswani merged 5 commits into
microsoft:mainfrom
CodeLinaro:dev/qti-kromero/qnn-genie-docs

Conversation

@qti-kromero

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 12, 2026 22:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new documentation page describing how to run ONNX Runtime GenAI models on Qualcomm Snapdragon NPUs using the QNN Execution Provider, including prerequisites, Python usage, and common provider options.

Changes:

  • Introduces docs/qnn.md with QNN EP overview and prerequisites (packages + model format).
  • Provides a Python example showing EP plugin registration and model execution.
  • Documents a small set of QNN provider options and how to set them via og.Config.

Comment thread docs/qnn.md
Comment thread docs/qnn.md Outdated
Comment thread docs/qnn.md
…rify EP naming

- Use TokenizerStream for token-by-token decode (Tokenizer.decode expects an
  array, not a scalar)
- Expand Genie API description: define it, note transparency to users, and
  clarify that only newer QAIRT-targeting Olive recipes produce the DLC
  EPContext type; older QNN recipes do not
- Add comment clarifying QNNExecutionProvider (registration) vs QNN (options)

@qti-kromero qti-kromero left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed all three review comments. See inline notes for details.

Comment thread docs/qnn.md
Comment thread docs/qnn.md Outdated
Comment thread docs/qnn.md Outdated
Comment thread docs/qnn.md Outdated
Comment thread docs/qnn.md Outdated
Comment thread docs/qnn.md
Comment thread docs/qnn.md Outdated
Comment thread docs/qnn.md Outdated
Comment thread docs/qnn.md
@qti-kromero
qti-kromero requested a review from baijumeswani May 14, 2026 22:01
Comment thread docs/qnn.md Outdated
Replace hardcoded EP name and library path with onnxruntime_qnn.get_ep_name()
and onnxruntime_qnn.get_library_path(), which are platform-aware and
self-documenting.
@qti-kromero
qti-kromero requested a review from baijumeswani May 15, 2026 23:43
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.

3 participants