rlcli serve gives you locally, on GPUs we operate. Everything you already know applies: the Tinker API, the rlcli train commands, the tinker SDK. Two things change — you don’t run rlcli serve, and you get a console at polygramme.com/console that mints keys, shows usage, serves your adapters, and hands you your weights.
Cloud is in preview. Trainers scale to zero when idle; the first request after an idle period pays a 3–6 minute cold boot. Warm a trainer from the console before a training run or a chat session.
Two tiers
Both tiers speak the same protocol and share one product shell: API keys from the console, per-key metering, HMAC-signed expiring download links, and the chat endpoint below.
Quickstart
- Sign in at polygramme.com/console and create an API key (Settings → API keys). Keys look like
pg_…. - Pick a tier in the console header and press Warm. The URL for the selected tier is shown in the quickstart card.
- Train exactly as you would locally, with
--base-urlpointed at the trainer:
polygramme-cloud is a thin client (tinker SDK + a tokenizer). rlcli itself — with its [train] extra and tinker-cookbook — is for training on your own GPUs; you don’t need it to use the cloud. rlcli’s train commands also accept --base-url $PG_URL if you have it installed.
The tinker SDK works too: from polygramme_cloud import Cloud; sc = Cloud().service_client() returns a tinker.ServiceClient with auth handled. Full, signed-in docs live in the console at polygramme.com/app/docs.
Chat with what you trained
Every trainer exposes an OpenAI-compatible endpoint over your sampler checkpoints. As soon as a run callssave_weights_for_sampler (rlcli does this at every --save-every step and at the end), the adapter is servable — no export, no second deployment, LoRA unmerged.
model accepts:
GET $PG_URL/v1/models lists what your key can serve, with every checkpoint. The OpenAI Python SDK works as-is:
model_id can chat with it. The console’s Playground uses the same endpoint on your behalf.
Get your weights
Containers are ephemeral: download before a trainer goes idle.- Checkpoints in the console list everything your key owns — training checkpoints, PEFT adapters, and merged exports — with one-hour signed download links and a ready-to-run
vllm servesnippet. GET $PG_URL/pg/checkpointsreturns the same listing for scripts;GET $PG_URL/pg/checkpoints/download?path=adapter/<model_id>streams a tarball.POST $PG_URL/pg/export/merged?model_id=<model_id>merges your adapter into the base model and produces a complete Hugging Face checkpoint (poll/pg/export/status?job_id=…). An adapter is a diff; a merged export is a model.
Usage and metering
The Usage panel shows, per month, training tokens (from everyforward_backward), prompt and completion tokens (sampling and chat), operation counts, GPU-seconds, and an estimated cost at the preview rates shown on the page — broken down by model and by key. It reads from the console’s own store, so it never wakes a trainer.
Endpoint reference
Keys are accepted as
Authorization: Bearer, x-api-key, or a /k/<key>/ URL prefix for clients that can’t set headers.