EdgeMDT TPC package
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edge_mdt_tpc_nightly-1.1.0.20250515.91354-py3-none-any.whl.
File metadata
- Download URL: edge_mdt_tpc_nightly-1.1.0.20250515.91354-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed81e3ef72de081f9684e1892458cf3a089938f7153c09b65679c32f282e714b
|
|
| MD5 |
164883b5216d7bb3c23e5b2ac72b5ead
|
|
| BLAKE2b-256 |
83827a4fe1d7aed0e4056c9602ed64b5457731cbe8d6ffdb39e64d4a819304ef
|