Interface ComputeLogprobsConfig.Builder

  • 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 the ModelInput.Builder avoiding the need to create one manually via ModelInput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to prompt(ModelInput).

      Parameters:
      prompt - a consumer that will call methods on ModelInput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • modelPackageArn

      ComputeLogprobsConfig.Builder modelPackageArn(String 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 format arn: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.