ProcessingInstancePreference
¶
Source code in docs_src/capo_sagemaker/types/processing_instance_preference.py
instance_count
instance-attribute
¶
instance_count: NotRequired[ProcessingInstanceCount]
The number of instances to launch if this instance type is selected. Specify the instance count for the processing job in one of the following two ways:
-
Per preference – Set
InstanceCounton every preference in theInstancePreferenceslist and don't setProcessingClusterConfig$InstanceCount. Use this when each instance type needs a different number of instances to deliver equivalent compute. -
One count for the job – Set
ProcessingClusterConfig$InstanceCountand omit it from every preference. Amazon SageMaker applies this to all instance types in the list.
For example, in a list of five preferences, either all five specify InstanceCount or none of them do. Amazon SageMaker rejects requests that set InstanceCount on only some preferences, that set it both per preference and in ProcessingClusterConfig, or that omit it in both places.
instance_type
instance-attribute
¶
instance_type: NotRequired[ProcessingInstanceType]
The ML compute instance type. An instance type can appear only once in an InstancePreferences list.