R L

Create model resources

POST
/rl/model-resources

Provisions a standalone model resource that training sessions can attach to.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

Request to provision a standalone model resource

base_model*string

Base model to provision the resource for, selected from /rl/supported-models

base_weights_ref?string

Model in this project's model registry whose weights the resource trains in place of the base model's own. It must be a full-weight model.

Match^together://ml_[A-Za-z0-9]+(@rv_[A-Za-z0-9]+)?$
Lengthlength <= 256
compute_config?

Compute layout to provision.

lora_enabled?boolean

Whether the resource hosts LoRA sessions or a single full-weight session

Defaulttrue
optimizer_config?

Optimizer configuration for this resource.

Response Body

application/json

application/json

curl -X POST "https://example.com/rl/model-resources" \  -H "Content-Type: application/json" \  -d '{    "base_model": "string"  }'
{  "id": "string",  "status": "MODEL_RESOURCES_STATUS_PENDING",  "error": {    "code": "MODEL_RESOURCES_ERROR_CODE_CAPACITY_WAIT_TIMEOUT",    "message": "string",    "occurred_at": "2019-08-24T14:15:22Z"  },  "base_model": "string",  "base_weights_ref": "string",  "compute_config": {    "num_generator_replicas": 0,    "gpu_type": "H100-80GB"  },  "lora_enabled": true,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "optimizer_config": {    "adam": {},    "muon": {      "scaling_strategy": "MUON_SCALING_STRATEGY_UNSPECIFIED"    }  },  "created_by": "string"}