# InferenceComponentComputeResourceRequirementsProperty

Defines the compute resources to allocate to run a model, plus any adapter models, that you assign to an inference component.

These resources include CPU cores, accelerators, and memory.

- Source: Generated code
- Type last changed: v2.113.0 · 1 Dec 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const inferenceComponentComputeResourceRequirementsProperty: sagemaker.CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty = {
  maxMemoryRequiredInMb: 123,
  minMemoryRequiredInMb: 123,
  numberOfAcceleratorDevicesRequired: 123,
  numberOfCpuCoresRequired: 123,
};
```

## Properties

- `maxMemoryRequiredInMb`: number — The maximum MB of memory to allocate to run a model that you assign to an inference component.

- `minMemoryRequiredInMb`: number — The minimum MB of memory to allocate to run a model that you assign to an inference component.

- `numberOfAcceleratorDevicesRequired`: number — The number of accelerators to allocate to run a model that you assign to an inference component.

  Accelerators include GPUs and AWS Inferentia.

- `numberOfCpuCoresRequired`: number — The number of CPU cores to allocate to run a model that you assign to an inference component.
