# Quantize neural upscaling models with ExecuTorch

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/quantize-neural-upscaling-models/)
- [Explore PTQ and QAT for ExecuTorch INT8 deployment](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/quantize-neural-upscaling-models/1-introduction/)
- [Set up your environment for ExecuTorch quantization](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/quantize-neural-upscaling-models/2-set-up-your-environment/)
- [Apply PTQ and export a quantized VGF model](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/quantize-neural-upscaling-models/3-run-ptq-and-export-vgf/)
- [Apply QAT and export a quantized VGF model](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/quantize-neural-upscaling-models/4-run-qat-and-export-vgf/)
- [Inspect the graph with Model Explorer](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/quantize-neural-upscaling-models/5-validate-and-choose-a-quantization-strategy/)
- [Next Steps](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/quantize-neural-upscaling-models/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Advanced |
| Reading time: | 1 hr |
| Last updated: | 12 Nov 2026 |

### Authors:
- Richard Burton, Arm ([GitHub](https://github.com/Burton2000))

### Arm IP:
[Mali](https://support.arm.com/?tab=compute-ip&Product%20Type=Graphics%20Processors)

### Tags:
- [AI/ML](https://learn.arm.com/tag/ai-ml/)
- [Linux](https://learn.arm.com/tag/linux)
- [macOS](https://learn.arm.com/tag/macos)
- [Windows](https://learn.arm.com/tag/windows)
- [ExecuTorch](https://learn.arm.com/tag/executorch)
- [TorchAO](https://learn.arm.com/tag/torchao)
- [Vulkan](https://learn.arm.com/tag/vulkan)
- [TOSA](https://learn.arm.com/tag/tosa)
- [NX](https://learn.arm.com/tag/nx)

### Who is this for?
This is an advanced topic for ML developers who want to reduce latency and memory bandwidth by exporting INT8 models to the `.vgf` file format using the ExecuTorch Arm backend.

### What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Explain when to use post-training quantization (PTQ) versus quantization-aware training (QAT)
- Prepare and quantize a PyTorch model using TorchAO PT2E quantization APIs
- Export the quantized model to TOSA and generate a model artifact with the ExecuTorch Arm backend
- Validate the exported graph by visualizing it using Google's Model Explorer

### Prerequisites
Before starting, you'll need the following prerequisites:
- Basic PyTorch model training and evaluation experience
- A development machine with Python 3.10+ and PyTorch installed that runs ExecuTorch

### Summary
You’ll use TorchAO and the ExecuTorch Arm backend to export INT8 `.vgf` artifacts from an image-to-image PyTorch model. First, you’ll set up the Python environment and run a CIFAR-10-based PTQ example, then extend it with QAT. Finally, you’ll inspect both exports in Model Explorer for layouts, operators, and tensor shapes before adapting the workflow to your model and calibration data.
