dynamic map checkpoint naming based on model objective.#1840
Open
xin3he wants to merge 1 commit into
Open
Conversation
Signed-off-by: Xin He <xin3.he@intel.com>
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Description
This pull request improves the handling of model path remapping during quantization configuration and enhances the evaluation helpers and tests for HuggingFace models, including multimodal support. The main changes ensure remapping is only applied when appropriate, preventing incorrect path transformations for composite models, and extend the evaluation utilities and tests for better flexibility and coverage.
Quantization remapping logic improvements:
get_layer_config(convert_model.py) to only apply checkpoint conversion mapping when the model's module paths do not already match the checkpoint namespace, preventing incorrect remapping for composite models such as VLMs.quant_block_listandextra_configto respect the new_should_remapflag, ensuring remapping only occurs when necessary.Evaluation helper enhancements:
Modified
evaluate_accuracyinhelpers.pyto accept amodel_typeparameter, allowing evaluation of different model types (e.g., "hf", "hf-multimodal"). Also, now passes thelimitparameter tosimple_evaluatefor more controlled test runs.Test improvements:
Refactored HuggingFace integration tests to use the new
model_typeandlimitparameters, and added a new test for HuggingFace multimodal models (test_hf_multimodal).Type of Change
Bug fix
Related Issues
Fixes or relates to #1784 #1836
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.