Model Deployment
Choosing Float32 or INT8
Every trained model comes in two precisions. Learn what they mean and which one to put on your device.
Try it in StudioOn this page
Goal
By the end of this page you will know the difference between Unoptimized (float32) and Quantized (int8), and how to choose one on the Deployment page.
Two versions of the same model
When training finishes, Studio saves your model in two precisions:
| In Studio | What it means | Size | Speed on a small device |
|---|---|---|---|
| Unoptimized (float32) | Every number is a 32-bit decimal number: the original model | Larger (4 bytes per weight) | Slower |
| Quantized (int8) | Numbers are squeezed into 8-bit whole numbers | About 4 times smaller (1 byte per weight) | Usually faster |
Quantizing can cost a little accuracy, because 8-bit numbers are less precise. Studio measures both versions on your data so you can see the difference.
Steps
- Open Deployment in the left menu.
- Choose your device.
- Look at the Precision list. Each option shows its score (for example Accuracy, F1 or mAP, depending on the model) and its file size.
- The option Studio suggests has a Recommended badge.
- Pick the precision you want, then select Build Deployment Package.
How Studio recommends a precision
Studio recommends Quantized (int8) only when its score stays close to the float32 score. The comparison uses the model's main metric:
| Model | Metric used |
|---|---|
| Motion and Audio classifiers | Accuracy |
| NanoVision | F1 |
| Vision Pro, EdgeDetect Lite | mAP@50 |
| Motion Regression, Audio Anomaly Detection | Average error (MAE) |
If INT8 loses too much, Studio shows INT8 is not recommended for this model, with the reason. NanoVision packages use Unoptimized (float32) unless you choose Quantized (int8) yourself.
Some packages can only carry one precision. Studio then shows Only one precision can ship for this package.
Result
Your deployment package contains the precision you chose.