ServerlessJobConfig
¶
Used by
-
AsyncSageMakerClient Operationscreate_training_job -
SageMakerClient Operationscreate_training_job
Source code in docs_src/capo_sagemaker/types/serverless_job_config.py
accept_eula
instance-attribute
¶
accept_eula: NotRequired[AcceptEula]
Specifies agreement to the model end-user license agreement (EULA). The AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model. For more information, see End-user license agreements section for more details on accepting the EULA.
base_model_arn
instance-attribute
¶
base_model_arn: ServerlessJobBaseModelArn
The base model Amazon Resource Name (ARN) in SageMaker Public Hub. SageMaker always selects the latest version of the provided model.
customization_technique
instance-attribute
¶
customization_technique: NotRequired[CustomizationTechnique]
The model customization technique.
evaluation_type
instance-attribute
¶
evaluation_type: NotRequired[EvaluationType]
The evaluation job type. Required when serverless job type is Evaluation.
evaluator_arn
instance-attribute
¶
evaluator_arn: NotRequired[EvaluatorArn]
The evaluator Amazon Resource Name (ARN) used as reward function or reward prompt.
peft
instance-attribute
¶
peft: NotRequired[Peft]
The parameter-efficient fine-tuning configuration.
sequence_length
instance-attribute
¶
sequence_length: NotRequired[SequenceLength]
The maximum sequence length, in tokens, that the customization job supports. SageMaker uses this value to select a training configuration for the base model that you specify. The parameter supports the following values:
-
1K -
2K -
4K -
8K -
16K -
32K -
64K -
128K
If you don't specify a value, SageMaker selects a training configuration based on the other values that you specify. The selection is not restricted to a particular sequence length.