Skip to main content
QAT is the second paradigm in the R3AL.AI SDK. Where PTQ needs no training, QAT fine-tunes your model with quantization simulated in the loop, then quantizes it. The training runs on R3AL GPU infrastructure; the SDK uploads your model and images, streams progress, and downloads the result. A QAT job consumes one plan run.

When to use it

Run it

What happens on the platform

1

Upload

The SDK uploads your model (exporting to ONNX locally first if you passed a checkpoint) and your calibration images.
2

Fine-tune with quantization in the loop

R3AL’s engine trains on GPU with lower precision simulated during the forward pass, and automatically protects accuracy-sensitive layers.
3

Download the bundle

The engine exports a standard quantized ONNX model plus r3alai_manifest.json, downloaded into your output_dir.

Key options

See QAT explained for a detailed breakdown of qat_wbit and qat_abit.

Monitoring and results

train_qat() blocks and prints live progress; you can also follow the job on the platform’s Jobs page. When it finishes, the deliverable is downloaded and result.path points at the bundle:
epochs=1 is a smoke test, not a converged model. Use representative images from your deployment domain and more epochs for production runs.

Next steps

QAT explained

Deep dive on wbit, abit, and epochs.

Calibration

Building a representative image set for QAT.