-
Notifications
You must be signed in to change notification settings - Fork 55
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
Use Attach TPC to Framework as part of MCT main track #1308
Merged
Conversation
This file contains 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
Replace schema classes from dataclass to pydantic 'BaseModel'. Fix tests to support pydantic schema classes. Add test for exporting tp model to json
All Pytorch Feature model tests pass except few special cases to solve later.
…al tpc and dedicated tests for the TPC versions
- enforce matching opsets from tp model to fw - modify attach2fw classes names - remove unused static tpc initialization
@lior-dikstein @irenaby |
irenaby
reviewed
Jan 1, 2025
model_compression_toolkit/core/common/quantization/quantization_config.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/target_platform_capabilities/schema/v1.py
Outdated
Show resolved
Hide resolved
...pression_toolkit/target_platform_capabilities/tpc_models/get_target_platform_capabilities.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v1/tp_model.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/target_platform_capabilities/schema/v1.py
Outdated
Show resolved
Hide resolved
...oolkit/target_platform_capabilities/target_platform/targetplatform2framework/attach2keras.py
Show resolved
Hide resolved
...oolkit/target_platform_capabilities/target_platform/targetplatform2framework/attach2keras.py
Outdated
Show resolved
Hide resolved
...oolkit/target_platform_capabilities/target_platform/targetplatform2framework/attach2keras.py
Outdated
Show resolved
Hide resolved
...lkit/target_platform_capabilities/target_platform/targetplatform2framework/attach2pytorch.py
Outdated
Show resolved
Hide resolved
...arget_platform_capabilities/target_platform/targetplatform2framework/operations_to_layers.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/core/keras/resource_utilization_data_facade.py
Show resolved
Hide resolved
model_compression_toolkit/core/pytorch/resource_utilization_data_facade.py
Show resolved
Hide resolved
...n_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/attach2fw.py
Outdated
Show resolved
Hide resolved
...n_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/attach2fw.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/target_platform_capabilities/schema/v1.py
Outdated
Show resolved
Hide resolved
tests/keras_tests/feature_networks_tests/feature_networks/mixed_precision_bops_test.py
Show resolved
Hide resolved
haihabi
reviewed
Jan 2, 2025
model_compression_toolkit/core/common/quantization/quantization_config.py
Show resolved
Hide resolved
model_compression_toolkit/target_platform_capabilities/schema/v1.py
Outdated
Show resolved
Hide resolved
...n_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/attach2fw.py
Show resolved
Hide resolved
lior-dikstein
approved these changes
Jan 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Pull Request Description:
This PR changes the TPC mechanism in MCT APIs.
All the main API functions now get a framework-agnostic target platform description and use the Attach2Fw module to generate a framework-dependent quantization capabilities description.
The main changes include:
get_target_platform_capabilities
API function is kept with a reduced functionality that allows to only obtain the default v1 TPC.Checklist before requesting a review: