fix(task_05_fmops): upgrade judge model from legacy Sonnet 4 to Sonnet 4.6#256
Open
el-pedrito wants to merge 1 commit into
Open
fix(task_05_fmops): upgrade judge model from legacy Sonnet 4 to Sonnet 4.6#256el-pedrito wants to merge 1 commit into
el-pedrito wants to merge 1 commit into
Conversation
…t 4.6 claude-sonnet-4-20250514-v1:0 was marked as Legacy on Bedrock, causing all LLM-as-a-judge calls to fail silently and produce NaN scores. Replace with active model: global.anthropic.claude-sonnet-4-6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
QualitativeModelEvaluationpipeline step fails with:This error occurs 6 times (3 metrics × 2 aggregations: mean + variance).
Root Cause
The LLM-as-a-judge model
claude-sonnet-4-20250514-v1:0has been marked as Legacy by Anthropic on Amazon Bedrock. When a model is Legacy and hasn't been used in the last 30 days, Bedrock rejects all invocations with:This causes
make_genai_metricto silently fail on every judge call → all scores becomeNone→ aggregated asNaN→ the SageMaker Managed MLflow tracking server (GraphQL API) rejects NaN float values.The downstream
EvaluationGatestep also fails withIncompatible types in BinaryCondition left type [String], right type [Float]because the qualitative result is not a valid float.Fix
Replace all references to the legacy model ID with the active
claude-sonnet-4-6:bedrock:/global.anthropic.claude-sonnet-4-20250514-v1:0→bedrock:/global.anthropic.claude-sonnet-4-6Also removed commented-out references to the legacy
claude-3-haiku-20240307-v1:0.Files Changed
steps/qualitative_eval_step.py— 3 metric definitions + 1 log_param05.00_fmops_examples.ipynb— judge_llm variable + markdown descriptionTesting
Pipeline executed end-to-end successfully after the fix:
QualitativeModelEvaluation: ✅ Succeeded (real scores logged)EvaluationGate: ✅ SucceededModelRegistration: ✅ Succeeded