Post-training quantization (PTQ) is a compression technique that converts a model's 32-bit floating-point weights and activations to lower-precision integer formats, typically INT8, after training completes. This process dramatically reduces the model's memory footprint and accelerates inference by leveraging faster integer arithmetic available on modern CPUs and edge Neural Processing Units (NPUs).
Glossary
Post-Training Quantization

What is Post-Training Quantization?
A technique to reduce model size and accelerate inference by lowering numerical precision after training.
Unlike quantization-aware training, PTQ requires no retraining or access to the original training pipeline, making it ideal for deploying existing models to resource-constrained edge nodes. The technique applies calibration data to minimize accuracy loss by analyzing activation ranges, enabling near-lossless compression for deployment in containerized micro-inference environments on the factory floor.
Key Characteristics of Post-Training Quantization
Post-training quantization is a compression technique that reduces the numerical precision of a model's weights and activations from 32-bit floating-point to 8-bit integers after training, dramatically shrinking model size and accelerating inference.
Precision Reduction
Converts FP32 (32-bit floating-point) weights and activations to INT8 (8-bit integer) representations. This reduces the memory footprint by up to 4x and enables the use of faster integer arithmetic instructions on modern CPUs and edge accelerators. The core trade-off is between computational efficiency and a small, acceptable drop in model accuracy.
Calibration and Range Mapping
A critical step that determines the optimal scale and zero-point parameters to map floating-point values to integer ranges. A small, representative calibration dataset is passed through the model to observe the dynamic range of activations at each layer. Common calibration methods include:
- MinMax: Uses the absolute min and max values.
- MovingAverageMinMax: Tracks a moving average of min/max across batches.
- Histogram: Uses KL divergence or MSE to find the best range that minimizes information loss.
Quantization Granularity
Defines the scope at which quantization parameters are computed, directly impacting the accuracy-efficiency trade-off:
- Per-Tensor: A single scale and zero-point for an entire weight tensor. Fastest but least accurate.
- Per-Channel: Separate parameters for each output channel of a convolutional filter. The standard for quantizing weights in CNNs, offering high accuracy.
- Per-Group: Parameters for sub-groups within a channel, used in extreme low-bit quantization (e.g., INT4).
Quantization-Aware Training (QAT) vs. Post-Training Quantization (PTQ)
PTQ applies quantization after training is complete, requiring no retraining and minimal data. It is ideal for rapid deployment. QAT simulates quantization noise during training, allowing the model to learn to compensate for precision loss. QAT yields higher accuracy but requires full access to the training pipeline and dataset. PTQ is the default choice for edge deployment when training resources are unavailable.
Hardware Acceleration
Quantized INT8 models leverage specialized instruction sets for massive throughput gains:
- ARM Neon / x86 VNNI: Vectorized integer dot-product instructions on CPUs.
- NVIDIA TensorRT: Optimizes INT8 inference on GPUs with tensor cores.
- NPU and Edge TPU: Dedicated neural processing units often require or are heavily optimized for INT8 execution, making quantization a prerequisite for deployment on these accelerators.
Weight-Only vs. Full Integer Quantization
Weight-only quantization compresses only the model weights to INT8, while activations remain in floating-point. This reduces memory and bandwidth but still requires floating-point compute. Full integer quantization converts both weights and activations to INT8, enabling the entire inference graph to execute with integer arithmetic. Full integer quantization is required for maximum acceleration on edge NPUs and microcontrollers.
Frequently Asked Questions
Clear, technical answers to the most common questions about reducing model precision for edge deployment.
Post-training quantization (PTQ) is a compression technique that converts a pre-trained neural network's 32-bit floating-point weights and activations into lower-precision integer formats, typically 8-bit integers, without any further training or fine-tuning. The process works by first collecting calibration data—a small, representative sample of the training distribution—and passing it through the trained model to record the dynamic ranges of activations at each layer. A quantization scheme then maps these floating-point ranges to integer buckets using a scale factor and zero-point, enabling integer arithmetic during inference. This dramatically reduces model size by up to 4x and accelerates inference by leveraging fast integer math units on CPUs and NPUs, with minimal accuracy loss when properly calibrated.
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 is one of several techniques for compressing neural networks for edge deployment. These related concepts form the complete toolkit for manufacturing AI engineers.
Weight Pruning
A complementary compression method that removes redundant or near-zero connections within a neural network to create a sparse architecture. Unlike quantization, which reduces numerical precision, pruning eliminates entire weights.
- Magnitude pruning: removes weights below a threshold
- Structured pruning: removes entire channels or filters
- Combined with quantization, can yield 10x+ model size reduction
- Requires fine-tuning to recover accuracy after pruning
Knowledge Distillation
A training paradigm where a compact student model is trained to replicate the behavior of a larger, more accurate teacher model. The student learns from both hard labels and the teacher's soft probability outputs.
- Transfers predictive capability into a deployment-efficient architecture
- Often used before quantization for compound compression
- Student can be a different architecture entirely
- Preserves more accuracy than direct training of small models
Operator Fusion
A compiler optimization that merges multiple discrete neural network operations into a single kernel launch. This reduces memory bandwidth bottlenecks and kernel launch overhead on edge accelerators.
- Fuses common patterns like Conv+BatchNorm+ReLU
- Critical for maximizing NPU and GPU utilization
- Works in tandem with quantization for optimal throughput
- Reduces intermediate tensor memory allocations
Neural Network Compiler
A toolchain that translates a high-level model graph into an optimized, hardware-specific executable. Applies graph-level and kernel-level transformations to maximize inference throughput on target silicon.
- Examples: Apache TVM, TensorRT, OpenVINO
- Performs quantization-aware graph optimizations
- Generates code tuned for specific NPU instruction sets
- Essential bridge between training frameworks and edge hardware
Model Drift Detection
The continuous monitoring process that statistically compares a deployed model's live predictions against its training baseline. Quantized models are not immune to drift and require the same vigilance.
- Tracks input distribution shifts on factory floor data
- Alerts when accuracy degrades due to changing conditions
- Triggers retraining or recalibration pipelines
- Uses metrics like Population Stability Index (PSI) and Kullback-Leibler divergence
ONNX Runtime
An open-source, cross-platform inference accelerator that executes models in the Open Neural Network Exchange format. Provides hardware-agnostic optimizations for edge and cloud deployments.
- Supports INT8 and FP16 quantization execution
- Includes built-in graph optimizations and operator fusion
- Works across CPU, GPU, NPU, and FPGA backends
- Enables model portability between training and deployment

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