Skip to content

[DO NOT MERGE] Adding qmoe op support for qnn-gpu - #819

Open
sachjang-qti wants to merge 3 commits into
mainfrom
dev/sachjang-qti/qmoe-op-support-qnn-gpu
Open

sachjang-qti wants to merge 3 commits into
mainfrom
dev/sachjang-qti/qmoe-op-support-qnn-gpu

Conversation

@sachjang-qti

Copy link
Copy Markdown
Collaborator

Description

Adding QMoE OP support for qnn-gpu

Motivation and Context

Required to run MoE OP on qnn-gpu needed by gpt-oss and other upcomming models

@sachjang-qti sachjang-qti changed the title Adding qmoe op support for qnn-gpu [QNN GPU] Adding qmoe op support for qnn-gpu Sep 11, 2026
@sachjang-qti sachjang-qti changed the title [QNN GPU] Adding qmoe op support for qnn-gpu [DO NOT MERGE] Adding qmoe op support for qnn-gpu Sep 11, 2026
@sachjang-qti
sachjang-qti force-pushed the dev/sachjang-qti/qmoe-op-support-qnn-gpu branch 2 times, most recently from db2a20c to 5c7e2ca Compare September 16, 2026 08:35
OrtNodeAttrHelper h(node_unit);
const uint32_t block_size = static_cast<uint32_t>(h.Get("block_size", int64_t(32)));
const uint32_t bits = static_cast<uint32_t>(h.Get("expert_weight_bits", int64_t(4)));
const size_t map[14] = {0, 1, 2, 5, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Here we are processing only 14 input slots. QMoE also has optional input slot 14, router_weights. IsOpSupported does not reject it, so models providing router weights may be assigned to QNN while the input is dropped, changing routing behavior.

@sachjang-qti
sachjang-qti force-pushed the dev/sachjang-qti/qmoe-op-support-qnn-gpu branch from 5c7e2ca to dbb57f1 Compare October 7, 2026 07:29

This branch has not been deployed

No deployments
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.

2 participants