A compute resource is a building block that represents compute resources such as GPUs, CPU cores, and CPU memory. The compute resources may consist of multiple physical resources, for example, 0.5 GPU, 8 cores and 200 Megabytes of CPU memory. A compute resource is available to a scope and and all of the organizational units within that scope.
For more information, see Compute resource.
Use to retrieve a list of compute assets.
Request completed successfully.
Unauthorized
Forbidden
unexpected error
{- "entries": [
- {
- "meta": {
- "name": "my-asset",
- "scope": "tenant",
- "id": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "kind": "s3",
- "createdBy": "test@run.ai",
- "createdAt": "2023-02-23T14:25:36.707685Z",
- "updatedBy": "test@run.ai",
- "updatedAt": "2023-02-23T14:25:36.707685Z",
- "workloadSupportedTypes": {
- "workspace": false,
- "training": false,
- "distributed": true,
- "distFramework": "TF"
}
}, - "spec": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}
}
]
}
Use to create a compute asset.
required | object (AssetCreationRequest) |
required | object or null (ComputeAssetSpec) |
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
{- "meta": {
- "name": "my-asset",
- "scope": "tenant",
- "workloadSupportedTypes": {
- "workspace": false,
- "training": false,
- "inference": false,
- "distributed": true,
- "distFramework": "TF"
}
}, - "spec": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}
}
{- "meta": {
- "name": "my-asset",
- "scope": "tenant",
- "id": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "kind": "s3",
- "createdBy": "test@run.ai",
- "createdAt": "2023-02-23T14:25:36.707685Z",
- "updatedBy": "test@run.ai",
- "updatedAt": "2023-02-23T14:25:36.707685Z",
- "workloadSupportedTypes": {
- "workspace": false,
- "training": false,
- "distributed": true,
- "distFramework": "TF"
}
}, - "spec": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}
}
Use to retrieve the details of a compute asset by id.
Request completed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "meta": {
- "name": "my-asset",
- "scope": "tenant",
- "id": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "kind": "s3",
- "createdBy": "test@run.ai",
- "createdAt": "2023-02-23T14:25:36.707685Z",
- "updatedBy": "test@run.ai",
- "updatedAt": "2023-02-23T14:25:36.707685Z",
- "workloadSupportedTypes": {
- "workspace": false,
- "training": false,
- "distributed": true,
- "distFramework": "TF"
}
}, - "spec": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}
}
Use to update the details of a compute asset by id.
Request accepted successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "meta": {
- "name": "my-asset"
}, - "spec": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}
}
{- "meta": {
- "name": "my-asset",
- "scope": "tenant",
- "id": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "kind": "s3",
- "createdBy": "test@run.ai",
- "createdAt": "2023-02-23T14:25:36.707685Z",
- "updatedBy": "test@run.ai",
- "updatedAt": "2023-02-23T14:25:36.707685Z",
- "workloadSupportedTypes": {
- "workspace": false,
- "training": false,
- "distributed": true,
- "distFramework": "TF"
}
}, - "spec": {
- "gpuDevicesRequest": 1,
- "gpuRequestType": "portion",
- "gpuPortionRequest": 0.5,
- "gpuPortionLimit": 0.5,
- "gpuMemoryRequest": "10M",
- "gpuMemoryLimit": "10M",
- "migProfile": "1g.5gb",
- "cpuCoreRequest": 0.5,
- "cpuCoreLimit": 2,
- "cpuMemoryRequest": "20M",
- "cpuMemoryLimit": "30M",
- "largeShmRequest": false,
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}
}
Use to delete a compute asset, by id.
Accepted.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "code": 202,
- "message": "Request has been accepted."
}