Getting Started
Quick Installation
To install the TPC package, run:
pip install edge-mdt-tpc
Using the TPC
To initialize a TPC and integrate it with MCT, use the get_target_platform_capabilities function as follows:
from edgemdt_tpc import get_target_platform_capabilities
import model_compression_toolkit as mct
# Get a TPC object representing the imx500 hardware and use it for PyTorch model quantization in MCT
tpc = get_target_platform_capabilities(tpc_version='1.0', device_type='imx500')
# Apply MCT on your pre-trained model using the TPC
quantized_model, quantization_info = mct.ptq.pytorch_post_training_quantization(
in_module=pretrained_model, # Replace with your pretrained model.
representative_data_gen=dataset, # Replace with your representative dataset.
target_resource_utilization=tpc)
Supported Versions
Target Platform Capabilities (TPC)
About
TPC is our way of describing the hardware that will be used to run and infer with models that are optimized using the MCT. The TPC includes different parameters that are relevant to the hardware during inference (e.g., number of bits used in some operator for its weights/activations, fusing patterns, etc.)
License
The EdgeMDT-TPC package is licensed under Apache License Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
Metadata
Release files for edge-mdt-tpc-nightly 1.1.0.20250407.120738
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edge_mdt_tpc_nightly-1.1.0.20250407.120738-py3-none-any.whl | Python 3 | none | any | Details for edge_mdt_tpc_nightly-1.1.0.20250407.120738-py3-none-any.whl |
Release files / edge_mdt_tpc_nightly-1.1.0.20250407.120738-py3-none-any.whl
| Download URL | edge_mdt_tpc_nightly-1.1.0.20250407.120738-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6affd94c28fee9f6161e4a69dcd38020e10f84d87e542273e52acd9a42c9726d
|
|
BLAKE2b-256 checksum How to use checksums |
29dd8afa64dacd1af7350641447586460c7d61f3cbec39cb7a906d7d8a489f71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for edge-mdt-tpc-nightly 1.1.0.20250407.120738
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.