Skip to content

[AIMIGRAPHX-1203] Fix hash collision for MXRs and add salting script - #56

Draft
TedThemistokleous wants to merge 3 commits into
mainfrom
fix_mxr_hashing
Draft

[AIMIGRAPHX-1203] Fix hash collision for MXRs and add salting script#56
TedThemistokleous wants to merge 3 commits into
mainfrom
fix_mxr_hashing

Conversation

@TedThemistokleous

Copy link
Copy Markdown
Collaborator

Two main hash related items in this PR

Fix a hash collision that occurs when we try to load mxrs with quantization, exhaustive tune, mlss and other flags on/off.
Previous cases allow us to read in the incorrect MXR for the filename. The fix is to encode quantization levels and other EP hash values as part of the MXR name so different compilations that are saved produce different hash keys

Second item is adding a script called migraphx_hash_compile.py which uses the EP to generate a precompiled mxr file that uses the hash and indexes each generated file by quantization. The script also adds a hashed-model_<md5sum>_manifest.log to the corresponding directory so that the compiled .mxr is referenced by the manifest of what compile options where used as well as pre build settings.

This is required as the built in EP which is planned for EoL will not encode the other flags so as path forward future users would use the -v2 flag which will run the script with the entire quant changes mirroring the EP provider_options used in the compile.

@TedThemistokleous TedThemistokleous changed the title [AIMIGRAPHX-1203] Fix hash collision for Mxrs and add salting script [AIMIGRAPHX-1203] Fix hash collision for MXRs and add salting script Jul 23, 2026
@TedThemistokleous TedThemistokleous added documentation Improvements or additions to documentation Bugfix Bugfix to a critical component labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix Bugfix to a critical component documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants