R L

Stop model resources

POST
/rl/model-resources/{model_resources_id}/stop

Stops the model resource and releases its allocated compute. If active training sessions are attached, the request fails unless force=true. A forced stop also stops all attached training sessions.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

model_resources_id*string

ID of the model resource

Query Parameters

force?boolean

When true, also stop all attached training sessions. When false, the request fails if any training sessions are active.

Defaultfalse

Response Body

application/json

application/json

curl -X POST "https://example.com/rl/model-resources/string/stop"
{  "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"}