Skip to content

Olive recipe updates for QNN-GPU#255

Open
unnim-qti wants to merge 1 commit intomicrosoft:mainfrom
CodeLinaro:dev/unnim-qti/qnn-gpu-recipe-updates
Open

Olive recipe updates for QNN-GPU#255
unnim-qti wants to merge 1 commit intomicrosoft:mainfrom
CodeLinaro:dev/unnim-qti/qnn-gpu-recipe-updates

Conversation

@unnim-qti
Copy link

  • Add Olive support for QNN‑GPU weight sharing through the QNN‑EP.
  • Added graph‑surgery pass converting SimplifiedLayerNormalizaton to RMSNorm for QNN‑GPU compatibility.

@unnim-qti unnim-qti changed the title Add recipes to support weight sharing and SimplifiedLayerNormalization in QNN-GPU Olive receipe updates for QNN-GPU Mar 6, 2026
@unnim-qti unnim-qti changed the title Olive receipe updates for QNN-GPU Olive recipe updates for QNN-GPU Mar 6, 2026
@unnim-qti
Copy link
Author

@microsoft-github-policy-service agree company="Qualcomm"

Comment on lines +55 to +61
"g": {
"type": "GptqQuantizer",
"sym": true,
"group_size": 32,
"desc_act": false,
"data_config": "wikitext2_train_joined"
},

Choose a reason for hiding this comment

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

@unnim-qti, should we switch to the GptqModel pass? At some point it would beneficial to do so, since AutoGptq is deprecated in favor of GptqModel, and GptqModel also supports quantization with the CPU instead of requiring CUDA.

Doing so would also have the added benefit of not having to split things up into multiple recipes.


```bash
# Install Olive
pip install olive-ai==0.9.3

Choose a reason for hiding this comment

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

Any reason why we are pinning this to an older release?


# Install ONNX Runtime QNN
pip install -r https://raw.githubusercontent.com/microsoft/onnxruntime/refs/heads/main/requirements.txt
pip install --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple "onnxruntime-qnn==1.22.2" --no-deps

Choose a reason for hiding this comment

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

Any reason why we are pinning this to an older release?

To ensure compatibility, please install Olive directly from the source at the required commit:

```bash
pip install git+https://github.com/microsoft/Olive.git@da24463e14ed976503dc5871572b285bc5ddc4b2

Choose a reason for hiding this comment

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

Any reason why we are pinning this to a specific commit?

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