SageMaker サーバーレスモデルカスタマイズ(独自に調整したモデルをサーバー管理下で動かす仕組み)から、SageMaker エンドポイント(モデルを実際に使える状態に設定した場所)または Bedrock へモデルをデプロイ(展開・配置)するコードを生成します。 次のような場合に使用: ユーザーが「モデルをデプロイしたい」「エンドポイントを作成したい」「利用可能にしたい」と言った場合、またはデプロイ方法について質問する場合 正しいデプロイ経路(Nova か OSS)を判断し、デプロイ用のコードを生成して、エンドポイントの設定を処理します。
Generates code that deploys fine-tuned models from SageMaker Serverless Model Customization to SageMaker endpoints or Bedrock. Use when the user says "deploy my model", "create an endpoint", "make it available", or asks about deployment options. Identifies the correct deployment pathway (Nova vs OSS), generates deployment code, and handles endpoint configuration.
モデルの特性に基づいて適切なデプロイパスを特定し、デプロイ用コードを生成します。
このスキルは、SageMaker Serverless Model Customization を通じてファインチューニングされた Nova モデルおよび OSS モデルのデプロイのみをサポートします。
非対応:
sdk-getting-started スキルを有効化してください。トレーニングジョブ名または ARN が必要です。 まず会話履歴を確認してください — ユーザーがすでに言及している場合や、ワークフローの前のステップ(例: ファインチューニング)から取得できる場合があります。 見つからない場合は、ユーザーに確認します。
トレーニングジョブ名または ARN が確認できたら、AWS MCP ツールで検索します:
describe-training-job を使用し、以下を抽出する:
ModelArtifacts.S3ModelArtifacts または OutputDataConfig.S3OutputPath から)RoleArn から)list-tags を使用し、以下を抽出する:
sagemaker-studio:jumpstart-model-id タグから モデル ID非対応モデル: このスキルは、SageMaker Serverless Model Customization で LoRA ファインチューニングされた OSS モデルおよび Nova モデルのみをサポートします。 モデルが該当しない場合は、このスキルでは対応できない旨をユーザーに伝え、ファインチューニングスキルを案内してください。
以下の表を参照してください:
| モデルタイプ | 対応デプロイ先 |
|---|---|
| OSS | SageMaker、Bedrock |
| Nova | SageMaker、Bedrock |
候補が一つのみの場合は、ユーザーに確認します。詳細はステップ 5 を参照してください。
候補が複数ある場合は、ユーザーの選択を支援します。詳細はステップ 5 を参照してください。
候補がない場合は、その旨とその理由をユーザーに説明します。
候補となるオプションをユーザーに提示します。 SageMaker と Bedrock の両方が選択肢にある場合は、以下の詳細を提示して判断を助けてください:
SageMaker エンドポイント:
Bedrock:
推奨は行わないでください。ユーザー自身に選択させてください。
マージ済み/未マージの重みや参照ファイル、API などの技術的詳細は、ユーザーが尋ねない限り言及しないでください。
⏸ ユーザーがデプロイ先を選択するまで待機する。
デプロイへ進む前に、モデルのライセンスまたはサービス利用規約をユーザーに表示します。
references/model-licenses.md を読み込み、ステップ 1 で確認したモデル ID でモデルを検索する。⏸ ユーザーが確認するまで待機する。
選択されたパスの参照ファイルを読み込み、その指示に従ってください。
| モデルタイプ | デプロイ先 | 参照ファイル |
|---|---|---|
| OSS | SageMaker | references/deploy-oss-sagemaker.md |
| OSS | Bedrock | references/deploy-oss-bedrock.md |
| Nova | SageMaker | references/deploy-nova-sagemaker.md |
| Nova | Bedrock | references/deploy-nova-bedrock.md |
デプロイ完了後、ステップ 5 で参照したパスのリファレンスドキュメントの内容をもとに、以下の項目をユーザーに提示してください:
デプロイが予期せず失敗した場合、モデルが LoRA ではなく Full Fine-Tuning(FFT)でファインチューニングされている可能性があります。
確認するには、トレーニングジョブの S3 出力パスにある .hydra/config.yaml から hydra config をダウンロードしてください:
peft_config に値が設定されている(r、alpha、dropout など)→ LoRA(対応)peft_config: null → FFT(このスキルでは非対応)Identifies the correct deployment pathway based on model characteristics and generates deployment code.
This skill supports deploying Nova and OSS models that were fine-tuned through SageMaker Serverless Model Customization only.
Not supported:
sdk-getting-started skill first.You need the training job name or ARN. Check the conversation history first — the user may have already mentioned it, or it may be available from earlier steps in the workflow (e.g., fine-tuning). If not, ask the user.
Once you have the training job name or ARN, use the AWS MCP tool to look it up:
describe-training-job and extract:
ModelArtifacts.S3ModelArtifacts or OutputDataConfig.S3OutputPath)RoleArn)list-tags on the training job ARN and extract:
sagemaker-studio:jumpstart-model-id tagUnsupported models: This skill only supports OSS and Nova models that were LoRA fine-tuned through SageMaker Serverless Model Customization. If the model doesn't match, tell the user this skill can't help and suggest the finetuning skill.
Use the following table:
| Model Type | Eligible Targets |
|---|---|
| OSS | SageMaker, Bedrock |
| Nova | SageMaker, Bedrock |
If only one target is eligible, confirm it with the user. Use details from Step 5.
If multiple targets are eligible, help the user decide. Use details from Step 5.
If no targets are eligible, tell the user and explain why.
Present the eligible options to the user. Present these details to help them decide between SageMaker and Bedrock, if both are available options:
SageMaker Endpoint:
Bedrock:
Do NOT make a recommendation. Let the user choose.
Do NOT mention technical details like merged/unmerged weights, reference files, or APIs, unless the user asks.
⏸ Wait for user to select a deployment option.
Before proceeding to deployment, display the model's license or service terms to the user.
references/model-licenses.md and look up the model by its model ID (determined in Step 1).⏸ Wait for the user to confirm before proceeding.
Read the reference file for the selected pathway and follow its instructions.
| Model Type | Deployment Target | Reference |
|---|---|---|
| OSS | SageMaker | references/deploy-oss-sagemaker.md |
| OSS | Bedrock | references/deploy-oss-bedrock.md |
| Nova | SageMaker | references/deploy-nova-sagemaker.md |
| Nova | Bedrock | references/deploy-nova-bedrock.md |
After deployment completes, provide the user with a summary. Cover these topics, using details from the pathway reference doc you followed in Step 5:
If deployment fails unexpectedly, the model may have been full fine-tuned (FFT) rather than LoRA. To check, download the training job's hydra config from its S3 output path at .hydra/config.yaml:
peft_config populated (r, alpha, dropout, etc.) → LoRA (supported)peft_config: null → FFT (not supported by this skill)原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。