SageMaker(Amazonの機械学習プラットフォーム)でのモデル調整(微調整)に向けて、データセット(学習用データ)の形式と品質を検証します。 対応する微調整方式: - SFT(教師あり微調整) - DPO(直接優先度最適化) - RLVR(強化学習による反応微調整) **次のような場合に使用:** - ユーザーが「このデータセットで大丈夫?」「データを評価してほしい」「学習データをチェックしてほしい」「独自のデータを持っている」と言った場合 - 微調整ジョブを開始する前 **主な機能:** - ファイル形式を自動判別 - 選んだモデルと微調整方式に合わせて、データ構造(スキーマ)が正しいか確認 - データが学習・評価の準備ができているかを判定し、レポートで報告
Validates dataset formatting and quality for SageMaker model fine-tuning (SFT, DPO, or RLVR). Use when the user says "is my dataset okay", "evaluate my data", "check my training data", "I have my own data", or before starting any fine-tuning job. Detects file format, checks schema compliance against the selected model and technique, and reports whether the data is ready for training or evaluation.
以下のワークフローに従ってください。 データセットを特定し、ファイル形式を確認し、ファイルが見つからない・形式が誤っているといった問題を解決します。 ファインチューニングするモデルとファインチューニング戦略を決定し、モデルファミリーに応じた適切な検証を実行します。 最終的に「データセットはファインチューニングの準備ができているか」という観点で結果をまとめます。
sdk-getting-started スキルを起動してください。データセットの特定:
戦略とモデルの決定:
ファイルフォーマットの確認: format_detector.py ツールを実行し、ファイルがフォーマット要件に準拠していることを確認します。
結果のまとめ: データが準備できているかどうかをユーザーに伝えます。
references/strategy_data_requirements.md に記載されたファインチューニング戦略のフォーマットに準拠している必要がありますreferences/custom-scorer-evaluation-dataset-formats.md を参照し、スコアラー固有のスキーマに対して検証してください。スコアラーの種類は、会話コンテキスト(model-evaluation スキルで決定済み)から判明しているはずです。scripts/format_detector.py は単独で実行可能な、自己完結型のフォーマット検証スクリプトですreferences/strategy_data_requirements.md には、戦略ごとのデータフォーマット要件が記載されていますscripts/format_detector.py は単独で実行可能な自己完結型のフォーマット検証スクリプトです:
# ワークフローのステップ1で特定したファイルパスを引数として渡す
python scripts/format_detector.py local_path/to/dataset
scripts/format_detector.py — 自己完結型のフォーマット検証スクリプトreferences/strategy_data_requirements.md — 戦略ごとのデータフォーマット要件Follow the workflow shown below. Locate the dataset, check the file type, and resolve any issues with missing files or wrong file types. Determine the fine-tuning model and fine-tuning strategy. Run the appropriate validation based on the model family. Summarize the results: is the dataset ready for fine-tuning?
sdk-getting-started skill first.Locate Dataset:
Determine strategy and model:
Check File Formatting: Run the tool format_detector.py to make sure the file conforms to formatting requirements.
Summarize Results: Tell the user if their data is ready
references/strategy_data_requirements.mdreferences/custom-scorer-evaluation-dataset-formats.md and validate against the scorer-specific schema. The scorer type should be known from conversation context (determined in the model-evaluation skill).# With the file path argument identified in workflow step 1
python scripts/format_detector.py local_path/to/dataset
scripts/format_detector.py — Self-contained format validation scriptreferences/strategy_data_requirements.md — Data format requirements per strategy原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。