Fix quark quantization PHX/HPT NPU options#379
Open
Rohithmatham12 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary\n- Align quark_quantization benchmark VitisAI EP cache options with the working int8 ResNet predict path by using cache_dir/cache_key.\n- Set xlnx_enable_py3_round=0 for PHX/HPT alongside the required target and xclbin options.\n- Update the README NPU provider-options snippet so users copy the same option style.\n\nWhy\nIssue #376 reports that CNN-examples/quark_quantization/quark_quantize.py falls back to CPU on PHX/HPT while the same quantized model runs on the NPU through CNN-examples/getting_started_resnet/int8/predict.py. The benchmark path was using different provider option keys and missing the PHX/HPT rounding option used by the working path.\n\nTesting\n- python3 -m py_compile CNN-examples/quark_quantization/quark_quantize.py CNN-examples/quark_quantization/utils.py\n- git diff --check\n\nNot run locally: PHX/HPT NPU benchmark validation, because this machine does not have Ryzen AI hardware/XRT.\n\nFixes #376