Skip to main content

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

Supported Versions Table
TPC 1.0 TPC 4.0 TPC 5.0
IMX500 Converter 3.14 Run Tests

Not supported

Not supported

IMX500 Converter 3.16 Run Tests Run Tests Run Tests

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.20250422.130601

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for edge-mdt-tpc-nightly 1.1.0.20250422.130601
File Interpreter ABI Platform
edge_mdt_tpc_nightly-1.1.0.20250422.130601-py3-none-any.whl Python 3 none any Details

Release files / edge_mdt_tpc_nightly-1.1.0.20250422.130601-py3-none-any.whl

Download URL edge_mdt_tpc_nightly-1.1.0.20250422.130601-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc481b7004c77a6860482850282dd30761365237beba989e53f56ae36ab02f48
BLAKE2b-256 checksum
How to use checksums
de4ba937c489daced2f225b9804efe58bd133ab9486aa798ef3cc2f4c359b216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page