Post-training quantization (PTQ) is a model compression technique that converts a pre-trained neural network's weights and activations from high-precision floating-point (e.g., FP32) to lower-bit integer representations (e.g., INT8) without requiring retraining. This process uses a small, representative calibration dataset to observe activation ranges and calculate optimal quantization scale and zero-point parameters, enabling efficient integer-only inference on specialized hardware accelerators.
Glossary
Post-Training Quantization (PTQ)

What is Post-Training Quantization (PTQ)?
Post-training quantization (PTQ) is a fundamental model compression technique for deploying neural networks on resource-constrained hardware like NPUs and edge devices.
The primary goal of PTQ is to reduce model size and accelerate inference by leveraging efficient integer arithmetic units, with common methods including static quantization (fixed parameters) and dynamic quantization (runtime calculation). While faster than quantization-aware training (QAT), PTQ can introduce quantization error, making the choice of calibration dataset and quantization granularity (e.g., per-tensor vs. per-channel quantization) critical for preserving accuracy in production deployments.
Key Characteristics of PTQ
Post-training quantization (PTQ) is a model compression technique that converts a pre-trained model's weights and activations from floating-point to lower-bit integer representations without requiring retraining, using a calibration dataset to determine optimal scaling factors.
Calibration-Driven Parameterization
PTQ determines the critical quantization parameters—scale and zero-point—by analyzing a small, representative calibration dataset. This process observes the statistical range (min/max values) of activation tensors during inference passes to set mapping boundaries that minimize information loss, without performing any backward passes or gradient updates.
Hardware-Accelerated Integer Math
A core goal of PTQ is to enable integer-only inference, where all computations use low-bit integers (e.g., INT8). This leverages dedicated integer arithmetic logic units (ALUs) in modern NPUs and GPUs, which offer higher throughput and lower power consumption compared to floating-point units, leading to significant latency and energy savings.
Granularity Trade-Offs
PTQ applies quantization at different levels of granularity, balancing accuracy and computational overhead.
- Per-tensor: One set of parameters for an entire tensor. Simple but less accurate.
- Per-channel: Unique parameters for each output channel of a weight tensor. Higher accuracy for convolutional layers.
- Group-wise: Parameters shared across small groups of values, offering a middle ground.
Static vs. Dynamic Modes
PTQ operates in two primary modes defined by when scaling factors are calculated:
- Static Quantization: Parameters are fixed after calibration. Enables full integer-only inference and maximum performance.
- Dynamic Quantization: Scaling factors for activations are computed at runtime for each input. More flexible for varying input ranges but adds overhead. Weights are typically statically quantized.
Symmetric vs. Asymmetric Mapping
PTQ uses affine mapping defined as quantized_value = round(real_value / scale) + zero_point.
- Symmetric Quantization: Zero-point is forced to 0. Simplifies arithmetic but can be inefficient if the data range is not symmetric.
- Asymmetric Quantization: Zero-point is adjusted to match the data range. Better captures skewed distributions but requires more complex integer arithmetic involving the zero-point.
Framework and Backend Integration
PTQ is implemented through specialized frameworks and backends that handle graph transformation and optimized kernel execution.
- Frameworks: PyTorch (FX Graph Mode), TensorFlow (TFLite Converter).
- Inference Backends: TensorRT, OpenVINO, TFLite. These backends fuse quantization/dequantization nodes, apply graph-level optimizations, and execute highly tuned integer kernels on target hardware (NPU/GPU/CPU).
PTQ vs. Quantization-Aware Training (QAT)
A technical comparison of the two primary approaches for converting neural networks to lower-precision integer formats, highlighting trade-offs between development effort, accuracy, and deployment efficiency.
| Feature / Metric | Post-Training Quantization (PTQ) | Quantization-Aware Training (QAT) |
|---|---|---|
Primary Objective | Fast model compression without retraining | Maximize accuracy recovery for low-bit quantization |
Required Input | Pre-trained FP32/BF16 model & calibration dataset | Pre-trained FP32/BF16 model & full training dataset |
Computational Overhead | Minimal (forward passes only for calibration) | High (full training loop with quantization simulation) |
Typical Development Time | Minutes to hours | Hours to days |
Typical Accuracy Drop (INT8) | < 1% on robust models | Often < 0.5% (near FP32 baseline) |
Support for Very Low Bitwidth (e.g., INT4) | Limited, often high accuracy loss | Required for viable INT4/INT2 deployment |
Hardware Deployment Readiness | High (standardized in most inference engines) | High (but may require QAT-specific graph export) |
Integration with Training Pipeline | None (post-processing step) | Tight (embedded in training framework) |
Handling of Activation Outliers | Relies on calibration; may require clipping | Model learns to reduce outlier magnitude |
Common Use Cases | Production deployment acceleration, edge device deployment | Maximum compression for constrained hardware, novel low-bit research |
Frameworks and Backends for PTQ
Post-training quantization requires specialized software frameworks and hardware backends to convert models, calibrate parameters, and execute optimized integer kernels. These tools bridge the algorithmic technique to production deployment.
Hardware-Specific NPU SDKs
Deploying quantized models on dedicated Neural Processing Units (NPUs) requires vendor-specific SDKs that handle final graph compilation and kernel mapping. These backends take a pre-quantized model (e.g., from TFLite or ONNX) and perform hardware-aware optimizations:
- Qualcomm AI Engine Direct SDK: Compiles models for Hexagon DSPs and AI accelerators in Snapdragon platforms, using INT8 and INT16 precision.
- MediaTek NeuroPilot: Optimizes quantized models for APU cores in MediaTek Dimensity chips.
- Samsung ONE: Compiler stack for Samsung NPUs.
- Apple Core ML Tools (
coremltools): Can quantize models to 16-bit or 8-bit palettized weights for efficient execution on Apple Neural Engine. These tools perform critical low-level optimizations like memory hierarchy management and operator tiling specific to the silicon architecture.
Frequently Asked Questions
Post-training quantization (PTQ) is a critical model compression technique for deploying neural networks on resource-constrained hardware. These FAQs address the core mechanisms, trade-offs, and implementation details of PTQ.
Post-training quantization (PTQ) is a model compression technique that converts a pre-trained neural network's weights and activations from high-precision floating-point (e.g., FP32) to lower-bit integer representations (e.g., INT8) without requiring retraining. It works by using a small, representative calibration dataset to pass through the model and observe the statistical ranges (min/max) of activation tensors. These observed ranges are used to calculate quantization parameters—specifically a scale and zero-point—for each tensor via an affine transformation: quantized_value = round(real_value / scale) + zero_point. The original FP32 weights are then quantized using their static ranges, and the model is converted for integer-only inference.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Post-Training Quantization (PTQ) is a core technique within mixed-precision computation. The following terms define the specific methods, formats, and processes that enable efficient model compression and deployment.
Quantization-Aware Training (QAT)
A training-time technique that simulates quantization during the forward pass to make a model robust to the precision loss incurred during subsequent PTQ. Unlike PTQ, QAT involves backpropagation and weight updates.
- Key Mechanism: Inserts fake quantization nodes into the computational graph.
- Purpose: Allows the model to adapt its weights to lower precision, typically recovering more accuracy than PTQ alone.
- Trade-off: Requires retraining resources but yields higher accuracy for aggressive quantization (e.g., INT4).
Static vs. Dynamic Quantization
Two primary calibration strategies within PTQ that define when scaling factors are determined.
- Static Quantization: Calibration dataset is used once to pre-compute fixed scaling factors for activations. Enables integer-only inference, offering maximum speed on NPUs.
- Dynamic Quantization: Scaling factors for activations are calculated per input at runtime. More flexible for inputs with highly variable ranges but introduces overhead.
- PTQ Context: Static quantization is the most common and performance-critical PTQ method for NPU deployment.
Quantization Granularity
Defines the scope over which a single set of quantization parameters (scale, zero-point) is applied. This is a critical PTQ configuration choice.
- Per-Tensor: One set of parameters for an entire tensor. Simple but can lose accuracy.
- Per-Channel: Unique parameters for each output channel of a weight tensor (common for convolutions). Higher accuracy, widely used in PTQ.
- Group-Wise: Parameters shared across small groups of values within a tensor. Balances accuracy and hardware efficiency.
- Impact: Finer granularity (e.g., per-channel) reduces quantization error but may increase parameter storage overhead.
Calibration Dataset
A small, representative subset of data (typically 100-1000 samples) used during PTQ to statistically analyze activation ranges.
- Function: Used to compute the min/max values or histograms of layer outputs to determine optimal quantization scales and zero-points.
- Requirement: Must be representative of the inference data distribution to avoid clipping error.
- PTQ Process: The model performs forward passes on this dataset without training (no gradient computation).
Integer-Only Inference
The target execution mode enabled by successful PTQ, where the entire model graph uses integer arithmetic.
- Prerequisite: Requires static quantization for both weights and activations.
- Benefit: Eliminates floating-point units (FPUs), enabling execution on low-power NPUs, microcontrollers, and dedicated integer cores.
- Challenge: Requires quantization-aware fusion of operations (e.g., Conv + ReLU + Add) into a single integer kernel. Frameworks like TensorRT Lite and OpenVINO provide these optimized backends.
Quantization Backend
The hardware-specific software layer that executes a quantized model. It translates the PTQ-optimized graph into optimized kernel calls.
- Examples: TensorRT, OpenVINO, TFLite, ONNX Runtime, and vendor-specific NPU SDKs.
- Role: Implements highly tuned integer kernels (e.g., INT8 matrix multiplication) that leverage the target hardware's instruction set.
- PTQ Integration: The calibration and quantization process is often tightly coupled with the target backend to ensure the generated integer graph is executable and optimal.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us