Deploying
Download a trained artifact and serve it on your own vLLM or SGLang servers. Hosted serving on Gradiated Cloud is coming soon.
Every training run produces a versioned Artifact (such as fast-diff-merge@2026-11-26-1). You download it as standard weights and serve it with the inference stack you already run:
5 / 7
Artifact
The best checkpoint by held-out eval, as a versioned .grad bundle: a PEFT LoRA adapter, merged weights, or a task bundle for routers and decision models. Its manifest records the base model, template and training settings.
grad artifacts download support-router@latest --output ./support-routerrun.download("./support-router")Serve it yourself#
grad artifacts download fetches the bundle, checks its SHA-256 and every file against the manifest, and extracts it. SFT, DPO and distillation runs export a standard Hugging Face PEFT LoRA (adapter_config.json and adapter_model.safetensors) for the base model in the manifest's base_model_repo. Pass --max-lora-rank 32, because grad's default rank is 32 and vLLM's default cap is 16:
grad artifacts download fast-diff-merge@2026-11-26-1 --output ./fast-diff-merge
vllm serve Qwen/Qwen3-8B \
--enable-lora --max-lora-rank 32 \
--lora-modules fast-diff-merge=./fast-diff-merge
To pin the base weights, add --revision with the manifest's base_model_revision. A run with merge_on_export=True exports standalone merged weights instead, which serve with a plain vllm serve ./fast-diff-merge.
The other recipes export small bundles on top of a base model: a router or decision head, a reward head, a cartridge's KV prefix, or a full embedding encoder. The artifact format spec documents each one's files and config and gives a reference Python loader for it; see What's inside.
Handle traffic splitting and rollbacks with what you already use (feature flags, Envoy or Nginx weights, Argo Rollouts). Every artifact version is immutable, so rolling back means pointing your server at the previous version's download. Log requests and outcomes to your observability tool and sync them into a dataset to train the next version; see Send feedback from production.
Host on Gradiated Cloud#
On Gradiated Cloud you won't manage GPUs or a serving stack. You publish an artifact (trained, uploaded or imported) as a version of a model, your-org/<name>, from the Gradiated console or the Cloud Models API. grad itself has no deploy command: it owns the artifacts, and the inference side serves them straight from the artifact store.
Call a published model#
Your app calls the same OpenAI SDK, Anthropic SDK or SystemOne SDK it already uses; only the model string changes. The endpoint uses the chat template and thinking setting the artifact was trained with, and reasoning models return their reasoning in reasoning_content, separate from content:
import os
from openai import OpenAI
oai = OpenAI(
base_url="https://api.gradiated.com/v1",
api_key=os.environ["GRADIATED_API_KEY"],
)
res = oai.chat.completions.create(
model="your-org/fast-diff-merge",
messages=[{"role": "user", "content": "Merge these two diffs into one patch: ..."}],
)
print(res.choices[0].message.content)
Decision models will be called through TypeSafeClient (/v1/systemone), embedding models through openai.embeddings.create(model="your-org/<name>", ...), and routers as a model name in the OpenAI or Anthropic SDK.
Versions and rollback#
Every artifact is a fixed version, so rolling forward or back is a pointer update on the model with no app redeploy: promote the new version, or roll back to the previous one, in the console or the Models API. A published version pins its artifact, so grad never deletes it (not by retention, cleanup or grad artifacts delete, which answers 409 artifact_pinned and names the model versions using it).
Feed production back into training#
The Gradiated gateway will record every request to your deployed model along with its feedback, so you won't need a separate observability tool. The built-in gradiated source syncs them into a dataset: each sync adds a new dataset version with the latest traces and scores, ready for your next run.