Troubleshoot GenAI Evaluation job errors
SageMaker AI checks your job configuration when you call CreateJob, so that a configuration that the service can't run is rejected before the job starts. Most problems return a validation error that names the field that needs to change. A few problems appear only after the job starts, such as a judge model that the job role can't invoke, or a judge response that can't be scored. The following list describes each problem, its likely cause, and how to resolve it.
What you might see
-
EvaluationCandidate must name exactly one model – Remove the extra entry in
Models. A job evaluates one model. -
InferenceProvider SAGEMAKER requires a model package, an endpoint, or a hub content ARN – With
SAGEMAKER, name a fine-tuned model package, an endpoint, or a JumpStart base model by its hub content ARN. A bare model ID isn't accepted. To use a bare model ID, useBEDROCK_MANTLEwith a Mantle model ID instead. -
Judge prompt has an unsupported placeholder – Use only
{{prompt}},{{prediction}}, and{{ground_truth}}, without spaces. -
Judge prompt has no {{prediction}} – Add
{{prediction}}so that the judge sees the response. -
Failed to read the judge prompt – The job role can't read the judge prompt, or the bucket is in another Region. Add the permissions that are described in Set up permissions and storage for GenAI Evaluation, and use a bucket in the job Region.
-
Judge is not a Bedrock model – Set the judge
ModelIdto a Amazon Bedrock model ID, inference profile, or ARN. -
Evaluator names no JudgeModels and the job has no JudgeModelConfig – Add a judge model to the Evaluator, or set
EvaluationMethod.JudgeModelConfig. -
Samples are unscored – The judge response was cut off at the token limit, or the job couldn't parse it. To resolve this problem, do the following:
-
Increase
MaxOutputTokensin the judge settings of the Evaluator, so that the judge has room for its reasoning. -
Check that the judge prompt asks for the output format that the Evaluator expects.
-
Run the job again.
-