Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QNN Quant] Handle external data for QNN preprocessing/quant #19670

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

adrianlizarraga
Copy link
Contributor

Description

  • Adds parameters to qnn_preprocess_model() to allow saving the new model with external data.
  • Updates get_qnn_qdq_config() to:
    • Load model without external data (it is not needed)
    • Return a quantization configuration with use_external_data_format set to True if the model has external data or if the model is >= 2GB.

Motivation and Context

Update QNN quantization to better handle large models that use external data.

@adrianlizarraga adrianlizarraga marked this pull request as ready for review February 27, 2024 17:33
@adrianlizarraga adrianlizarraga merged commit 913bdc7 into main Feb 28, 2024
95 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/quant-qnn-preprocess-ext-data branch February 28, 2024 16:30
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