SageMakerモデルを評価するPythonコードを生成します。2つの評価方式に対応しています:LLM-as-Judge(大規模言語モデルが審査者となる評価)とCustom Scorer(カスタムスコアラー、独自の採点方法)です。 次のような場合に使用: ユーザーが「自分のモデルを評価してほしい」「ベンチマーク(性能測定)を実行してほしい」「モデルのテストをしてほしい」「モデルはどの程度の性能ですか」「複数のモデルを比較してほしい」といった、これと似た内容の依頼をした場合。
Generates python code that evaluates SageMaker models. Supports two evaluation types: LLM-as-Judge and Custom Scorer. Use when the user says "evaluate my model", "run a benchmark", "test model performance", "how did my model perform", "compare models", or other similar requests.
SageMaker モデルを評価するコードを生成します。
sdk-getting-started スキルを有効化してください。workflow_state.json、plan.md、または既に読んだファイルに答えがある場合はそれを使用する。不確かな場合は確認するが、再度聞き直さない。このスキルは、SageMaker Serverless Model Customization の評価機能をサポートします。 SageMaker サーバーレスモデルカスタマイズでサポートされているベースモデルおよびファインチューニング済みモデル(OSS モデル(Llama、Mistral、Qwen 等)および Nova モデルの両方)を評価できます。
スキルが有効化された際にユーザーへ伝えること:
「SageMaker サーバーレスモデルカスタマイズでサポートされている、あらゆるベースモデルまたはファインチューニング済みモデルの評価をお手伝いできます。」
SageMaker サーバーレスモデルカスタマイズでサポートされていないモデルの評価支援をユーザーが要求した場合は、このスキルではサポートされていない旨を説明してください。
評価タイプは 2 種類あります:
使用する評価タイプを既に把握していますか?
会話履歴、plan.md、workflow_state.json、または既に読んだその他の情報を確認してください。
把握している場合: ユーザーに確認する。
「[評価タイプ] を実行したいということですね。よろしいですか?」
⏸ 確認を待つ。確認が取れたら → ステップ 2 へ。
把握していない場合: 質問する。
「どのような評価を実行したいですか?サポートしている評価タイプは以下の通りです:
- LLM-as-Judge — LLM がモデルのレスポンスを採点します
- Custom Scorer — プログラム的なスコアリング(数学、コード、または独自ロジック)
どちらかを選択するか、決められない場合は「決めるのを手伝って」とお伝えください。」
⏸ ユーザーの回答を待つ。
references/evaluation-type-guide.md を読み、その指示に従う。このファイルがユーザーを選択へ導いた後、ここに戻ってくる。
references/evaluation-type-guide.md を読まずに、評価タイプについてユーザーへ推奨を行ってはならない。参照ファイルを読む前に、選択された評価タイプがユーザーの状況と互換性があるか検証してください。 会話のコンテキストから既に把握している場合は、不要な質問をしないこと。
list-tags をトレーニングジョブ ARN に対して使用し、sagemaker-studio:jumpstart-model-id タグを確認する。「nova」を含む → Nova。それ以外 → OSS。describe-model-package を使用し、モデルの説明またはソースタグを確認する。検証が失敗した場合は、満たされていない要件をユーザーに伝え、代替案を提示してください:
「[評価タイプ] は [理由] のため使用できません。」
失敗の理由が評価データセットの欠如である場合、対処できることはありません。ユーザーに次のように伝えてください:
「申し訳ありませんが、サポートされているすべての評価タイプには評価データセットが必要です。モデル評価のサポートはできません。」
失敗の理由がそれ以外の場合は、別の評価タイプの選択を支援することを提案してください。
⏸ ユーザーの回答を待つ。
別の評価タイプの選択を希望する場合 → references/evaluation-type-guide.md を読む。
検証が通過した場合は、対応する参照ファイルを読んでください:
| ユーザーの選択 | 読むファイル |
|---|---|
| LLM-as-Judge | references/llmaaj-evaluation.md |
| Custom Scorer | references/custom-scorer-evaluation.md |
参照ファイルの指示を最初から従ってください。
Generate code that evaluates a SageMaker model.
sdk-getting-started skill first.This skill supports the evaluation feature for SageMaker Serverless Model Customization. It can evaluate any base or fine-tuned model supported by SageMaker serverless model customization — both OSS models (Llama, Mistral, Qwen, etc.) and Nova models.
Tell the user when the skill is activated:
"I can help evaluate any base or fine-tuned model supported by SageMaker serverless model customization."
If the user requests help evaluating a model that isn't supported by SageMaker serverless model customization, explain that it is not supported by this skill.
There are two evaluation types:
Do you already know which evaluation type to use?
Check conversation history, plan.md, workflow_state.json, or anything else you've already read.
If yes: confirm with the user.
"It sounds like you want to run [evaluation type]. Is that right?"
⏸ Wait for confirmation. If confirmed → go to Step 2.
If no: ask.
"What kind of evaluation would you like to run? I support:
- LLM-as-Judge — an LLM grades your model's responses
- Custom Scorer — programmatic scoring (math, code, or your own logic)
Pick one, or say 'help me decide' if you're not sure."
⏸ Wait for user.
references/evaluation-type-guide.md and follow its instructions. It will guide the user to a choice and then return here.
You MUST NEVER make a recommendation to the user on eval type without reading references/evaluation-type-guide.md.Before reading the reference file, validate that the chosen evaluation type is compatible with the user's situation. You may already know these answers from conversation context — don't ask if you don't need to.
list-tags on the training job ARN and look for the sagemaker-studio:jumpstart-model-id tag. Contains "nova" → Nova. Anything else → OSS.describe-model-package and check the model description or source tags.If validation fails, tell the user which requirement(s) aren't met and offer alternatives:
"[Evaluation type] won't work because [reason]."
If the failure reason was lack of an eval dataset, there's nothing we can do. Inform the user:
"Unfortunately all of the supported eval types require an eval dataset. I can't help you with model evaluation."
If the failure reason is something else, offer to help them pick a different evaluation type.
⏸ Wait for user.
If they say they do want help choosing a different eval type → read references/evaluation-type-guide.md.
If validation passes, read the corresponding reference file:
| User chose | Read |
|---|---|
| LLM-as-Judge | references/llmaaj-evaluation.md |
| Custom Scorer | references/custom-scorer-evaluation.md |
Follow the reference file's instructions from the beginning.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。