Skip to main content
Since 2.0, quantization runs on the R3AL platform at platform.r3al.ai. The SDK is the thin client that uploads your model, submits the job, and downloads the result. This page is the bridge between the two.

Create an account and an API key

1

Sign up and verify your email

Create an account at platform.r3al.ai. Verify your email to activate the account.
2

Mint an API key

Open the SDK / API keys page and create a key. Live keys look like r3l_live_.... The secret is shown once, so copy it immediately. If you lose it, revoke it and mint a new one.

Connect the SDK

The SDK resolves your key from, in order: the argument you pass, platform.login(...), then the R3AL_API_KEY environment variable.
To point at a non-default platform host (for example a staging URL), use configure:

Monitor jobs

Every quantize() or train_qat() call creates a job on the platform. The SDK prints live progress while it waits:
Open the platform’s Jobs page to watch the same job in real time: its status (pending, running, completed, error), a progress bar, and a history of every run you have submitted. From the SDK you can inspect a job directly:

Your plan and the free-run limit

The free plan includes 3 runs. Each quantize or QAT job consumes one run; local benchmark(), load(), and export do not. Check what you have left from the SDK or the platform’s usage/plan page:
A run beyond your quota raises PlanLimitError (HTTP 402):
Upgrade your plan on the platform to lift the limit.

Download results

quantize() and train_qat() download the deliverable automatically into output_dir, and result.path points at it. If you submit a job with the lower-level PlatformClient and want to download later, use the Job handle:
The unpacked bundle contains the quantized model and r3alai_manifest.json, so local load() and benchmark() work on it directly.

Errors

All platform errors subclass R3ALPlatformError:

Next steps

End-to-end workflow

Export, quantize, monitor, download, validate.

Python SDK

The Quantizer facade, PlatformClient, and Job.