Interface ComputeLogprobsConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ComputeLogprobsConfig.Builder,,ComputeLogprobsConfig> SdkBuilder<ComputeLogprobsConfig.Builder,,ComputeLogprobsConfig> SdkPojo
- Enclosing class:
ComputeLogprobsConfig
@Mutable
@NotThreadSafe
public static interface ComputeLogprobsConfig.Builder
extends SdkPojo, CopyableBuilder<ComputeLogprobsConfig.Builder,ComputeLogprobsConfig>
-
Method Summary
Modifier and TypeMethodDescriptionmodelPackageArn(String modelPackageArn) The ARN of the model package whose checkpoint this operation should run against.default ComputeLogprobsConfig.Builderprompt(Consumer<ModelInput.Builder> prompt) The input prompt whose token log-probabilities will be computed.prompt(ModelInput prompt) The input prompt whose token log-probabilities will be computed.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
-
prompt
The input prompt whose token log-probabilities will be computed.
- Parameters:
prompt- The input prompt whose token log-probabilities will be computed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prompt
The input prompt whose token log-probabilities will be computed.
This is a convenience method that creates an instance of theModelInput.Builderavoiding the need to create one manually viaModelInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprompt(ModelInput).- Parameters:
prompt- a consumer that will call methods onModelInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelPackageArn
The ARN of the model package whose checkpoint this operation should run against. Must be a valid SageMaker model package ARN in the format
arn:aws:sagemaker:REGION:ACCOUNT:model-package/PACKAGE_NAME/VERSION. When absent, the operation runs against the session's latest checkpoint.- Parameters:
modelPackageArn- The ARN of the model package whose checkpoint this operation should run against. Must be a valid SageMaker model package ARN in the formatarn:aws:sagemaker:REGION:ACCOUNT:model-package/PACKAGE_NAME/VERSION. When absent, the operation runs against the session's latest checkpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-