Skip to content

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 Studio
On 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 StudioWhat it meansSizeSpeed on a small device
Unoptimized (float32)Every number is a 32-bit decimal number: the original modelLarger (4 bytes per weight)Slower
Quantized (int8)Numbers are squeezed into 8-bit whole numbersAbout 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

  1. Open Deployment in the left menu.
  2. Choose your device.
  3. Look at the Precision list. Each option shows its score (for example Accuracy, F1 or mAP, depending on the model) and its file size.
  4. The option Studio suggests has a Recommended badge.
  5. 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:

ModelMetric used
Motion and Audio classifiersAccuracy
NanoVisionF1
Vision Pro, EdgeDetect LitemAP@50
Motion Regression, Audio Anomaly DetectionAverage 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.

What next?