Interface ComputeQuotaResourceConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ComputeQuotaResourceConfig.Builder,,ComputeQuotaResourceConfig> SdkBuilder<ComputeQuotaResourceConfig.Builder,,ComputeQuotaResourceConfig> SdkPojo
- Enclosing class:
ComputeQuotaResourceConfig
-
Method Summary
Modifier and TypeMethodDescriptionacceleratorPartition(Consumer<AcceleratorPartitionConfig.Builder> acceleratorPartition) The accelerator partition configuration for fractional GPU allocation.acceleratorPartition(AcceleratorPartitionConfig acceleratorPartition) The accelerator partition configuration for fractional GPU allocation.accelerators(Integer accelerators) The number of accelerators to allocate.The number of instances to add to the instance group of a SageMaker HyperPod cluster.instanceType(String instanceType) The instance type of the instance group for the cluster.instanceType(ClusterInstanceType instanceType) The instance type of the instance group for the cluster.memoryInGiB(Float memoryInGiB) The amount of memory in GiB to allocate.The number of vCPU to allocate.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceType
The instance type of the instance group for the cluster.
- Parameters:
instanceType- The instance type of the instance group for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type of the instance group for the cluster.
- Parameters:
instanceType- The instance type of the instance group for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
count
The number of instances to add to the instance group of a SageMaker HyperPod cluster.
- Parameters:
count- The number of instances to add to the instance group of a SageMaker HyperPod cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accelerators
The number of accelerators to allocate. If you don't specify a value for vCPU and MemoryInGiB, SageMaker AI automatically allocates ratio-based values for those parameters based on the number of accelerators you provide. For example, if you allocate 16 out of 32 total accelerators, SageMaker AI uses the ratio of 0.5 and allocates values to vCPU and MemoryInGiB.
- Parameters:
accelerators- The number of accelerators to allocate. If you don't specify a value for vCPU and MemoryInGiB, SageMaker AI automatically allocates ratio-based values for those parameters based on the number of accelerators you provide. For example, if you allocate 16 out of 32 total accelerators, SageMaker AI uses the ratio of 0.5 and allocates values to vCPU and MemoryInGiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vCpu
The number of vCPU to allocate. If you specify a value only for vCPU, SageMaker AI automatically allocates ratio-based values for MemoryInGiB based on this vCPU parameter. For example, if you allocate 20 out of 40 total vCPU, SageMaker AI uses the ratio of 0.5 and allocates values to MemoryInGiB. Accelerators are set to 0.
- Parameters:
vCpu- The number of vCPU to allocate. If you specify a value only for vCPU, SageMaker AI automatically allocates ratio-based values for MemoryInGiB based on this vCPU parameter. For example, if you allocate 20 out of 40 total vCPU, SageMaker AI uses the ratio of 0.5 and allocates values to MemoryInGiB. Accelerators are set to 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryInGiB
The amount of memory in GiB to allocate. If you specify a value only for this parameter, SageMaker AI automatically allocates a ratio-based value for vCPU based on this memory that you provide. For example, if you allocate 200 out of 400 total memory in GiB, SageMaker AI uses the ratio of 0.5 and allocates values to vCPU. Accelerators are set to 0.
- Parameters:
memoryInGiB- The amount of memory in GiB to allocate. If you specify a value only for this parameter, SageMaker AI automatically allocates a ratio-based value for vCPU based on this memory that you provide. For example, if you allocate 200 out of 400 total memory in GiB, SageMaker AI uses the ratio of 0.5 and allocates values to vCPU. Accelerators are set to 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorPartition
ComputeQuotaResourceConfig.Builder acceleratorPartition(AcceleratorPartitionConfig acceleratorPartition) The accelerator partition configuration for fractional GPU allocation.
- Parameters:
acceleratorPartition- The accelerator partition configuration for fractional GPU allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorPartition
default ComputeQuotaResourceConfig.Builder acceleratorPartition(Consumer<AcceleratorPartitionConfig.Builder> acceleratorPartition) The accelerator partition configuration for fractional GPU allocation.
This is a convenience method that creates an instance of theAcceleratorPartitionConfig.Builderavoiding the need to create one manually viaAcceleratorPartitionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toacceleratorPartition(AcceleratorPartitionConfig).- Parameters:
acceleratorPartition- a consumer that will call methods onAcceleratorPartitionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-