Requirements
- Python 3.10+
- Windows, Linux, or macOS
- An R3AL platform account and API key (quantization runs on the platform)
Prerequisite: account + API key
Quantization runs on the R3AL platform, so you need a key before you can submit a job:1
Create an account
Sign up at platform.r3al.ai and verify your email.
2
Create an API key
On the SDK / API keys page, mint a key (
r3l_live_...). Copy it immediately: the secret is shown only once.Install from PyPI
pydantic + numpy, no torch). The vision extra adds what you need to run and benchmark the downloaded quantized model locally.
Install from source
Extras
The base install has no torch and no ONNX Runtime. Add
vision to run the deliverable locally, and an export-* extra only if you need the SDK to convert framework weights to ONNX before upload. If you already have an .onnx file, vision alone is enough.The r3al command
Installing the package also puts an r3al command on your PATH, covering the
same workflow from a terminal or a coding agent:
quantize and qat consume a
plan run, and both refuse to submit without --yes.
Verify
GPU support
Quantization always runs on R3AL GPU infrastructure, so you do not need a local GPU to quantize. Locally, thevision extra installs onnxruntime-gpu on Linux and Windows and the CPU build on macOS (onnxruntime-gpu has no macOS wheels). Local benchmark() and load() transparently fall back to CPU when no GPU is present.
For CUDA inference with ONNX Runtime on Windows, ensure the NVIDIA runtime DLLs (installed under site-packages/nvidia/*/bin by the pip CUDA packages) are on PATH.
