Interface GraderConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GraderConfig.Builder,,GraderConfig> SdkBuilder<GraderConfig.Builder,,GraderConfig> SdkPojo
- Enclosing class:
GraderConfig
@Mutable
@NotThreadSafe
public static interface GraderConfig.Builder
extends SdkPojo, CopyableBuilder<GraderConfig.Builder,GraderConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GraderConfig.BuilderlambdaGrader(Consumer<LambdaGraderConfig.Builder> lambdaGrader) Configuration for using an AWS Lambda function as the grader for evaluating model responses and provide reward signals in reinforcement fine-tuning.lambdaGrader(LambdaGraderConfig lambdaGrader) Configuration for using an AWS Lambda function as the grader for evaluating model responses and provide reward signals in reinforcement fine-tuning.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
-
lambdaGrader
Configuration for using an AWS Lambda function as the grader for evaluating model responses and provide reward signals in reinforcement fine-tuning.
- Parameters:
lambdaGrader- Configuration for using an AWS Lambda function as the grader for evaluating model responses and provide reward signals in reinforcement fine-tuning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaGrader
Configuration for using an AWS Lambda function as the grader for evaluating model responses and provide reward signals in reinforcement fine-tuning.
This is a convenience method that creates an instance of theLambdaGraderConfig.Builderavoiding the need to create one manually viaLambdaGraderConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambdaGrader(LambdaGraderConfig).- Parameters:
lambdaGrader- a consumer that will call methods onLambdaGraderConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-