dataset-evaluation
Skill910 starsChanged 9 months agoApache-2.0View on GitHub
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.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- amazon-location-serviceSkill
- amplify-workflowSkill
- api-gatewaySkill
- aws-lambda-durable-functionsSkill
- aws-lambda-managed-instancesSkill
- aws-lambda-microvmsSkill
- aws-lambdaSkill
- aws-serverless-deploymentSkill
- aws-step-functionsSkill
- aws-transformSkill
- document-serviceSkill
- dsqlSkill
- aws-architecture-diagramSkill
- deploySkill
- elastic-beanstalkSkill
- dataset-transformationSkill
- directory-managementSkill
- finetuningSkill
- finetuning-techniqueSkill
- hyperpod-cluster-debuggerSkill
- hyperpod-issue-reportSkill
- hyperpod-ncclSkill
- hyperpod-node-debuggerSkill
- hyperpod-performance-debuggerSkill
- hyperpod-slurm-debuggerSkill
- hyperpod-ssmSkill
- hyperpod-version-checkerSkill
- model-deploymentSkill
- model-evaluationSkill
- model-selectionSkill
- planningSkill
- sdk-getting-startedSkill
- use-case-specificationSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
If the strategy and model are already known from the conversation context (e.g., selected via the model-selection and finetuning-technique …
- Distinctive: line 27
If not available in context, activate the model-selection and/or finetuning-technique skills to determine them before proceeding.
- Distinctive: line 28
Exception: If the user is validating an evaluation dataset (not a training dataset), neither model nor technique is required — the format …
- Very specific: line 30
Check File Formatting: Run the tool format_detector.py to make sure the file conforms to formatting requirements.
- Distinctive: line 32
Do not send the model and strategy as arguments
- Distinctive: line 33
Do not download data from S3
- Distinctive: line 34
Do not make local copies of data
- Very specific: line 39
Training datasets: must match the fine-tuning strategy format per references/strategy_data_requirements.md
- Distinctive: line 45
If the user plans to finetune a model with the evaluated dataset, it needs to be uploaded to an S3 bucket in the same region as the planned …
- Distinctive: line 46
If the dataset is NOT in the necessary format, recommend transforming it using the dataset-transformation skill, wait for user …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workflow Instruction
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?
Prerequisites
- The SDK environment has been verified (SDK version, region, execution role). If not done, activate the
sdk-getting-startedskill first.
Workflow
- Locate Dataset:
- The full path may be a local file path, or an S3 URI
- Resolve the full path to the dataset file, make sure read permissions are available, and help the user if the file is not found
- Determine strategy and model:
- File formatting depends on the currently selected fine-tuning strategy and fine-tuning base model.
- If the strategy and model are already known from the conversation context (e.g., selected via the model-selection and finetuning-technique skills), use them.
- If not available in context, activate the model-selection and/or finetuning-technique skills to determine them before proceeding.
- Exception: If the user is validating an evaluation dataset (not a training dataset), neither model nor technique is required — the format detector can validate eval format (query/response structure) independently. Do not block on model-selection or finetuning-technique for eval dataset validation.
- Check File Formatting: Run the tool format_detector.py to make sure the file conforms to formatting requirements.
- Send the full path directly to the format_detector script as an argument
- Do not send the model and strategy as arguments
- Do not download data from S3
- Do not make local copies of data
- Summarize Results: Tell the user if their data is ready
- Examine the output of format_detector and compare to the known strategy and model
- Important: training datasets and evaluation datasets have different format requirements.
- Training datasets must match the fine-tuning strategy format per
references/strategy_data_requirements.md - Evaluation datasets (for model evaluation) must match one of the SageMaker evaluation dataset formats.
- Custom Scorer evaluation datasets have scorer-specific requirements. If the dataset is intended for Custom Scorer evaluation (Prime Math, Prime Code, or Custom Lambda), read
references/custom-scorer-evaluation-dataset-formats.mdand validate against the scorer-specific schema. The scorer type should be known from conversation context (determined in the model-evaluation skill).
- Training datasets must match the fine-tuning strategy format per
- Report back to the user if their current dataset is valid for its intended purpose
- Warn the user if their dataset is valid, but for a different strategy or model
- Warn the user if their dataset is not valid for any strategy/model pair
- If the user plans to finetune a model with the evaluated dataset, it needs to be uploaded to an S3 bucket in the same region as the planned training job (usually the default region). Warn the user if this is NOT the case.
- If the dataset is NOT in the necessary format, recommend transforming it using the dataset-transformation skill, wait for user confirmation, and update the plan based on their response
Messages to the User
- Introduction: "This skill checks the structure of your dataset for model fine-tuning."
- File types: This skill applies to files that are formatted according to the Amazon SageMaker AI Developer Guide
Resources
- scripts/format_detector.py is self-contained format validation script that can be run independently
- model-selection and finetuning-technique skills should have already determined the base model and fine-tuning strategy
- references/strategy_data_requirements.md contains data format requirements per strategy
Script Details
- scripts/format_detector.py is self-contained format validation script that can be run independently:
# With the file path argument identified in workflow step 1
python scripts/format_detector.py local_path/to/datasetReferences
scripts/format_detector.py— Self-contained format validation scriptreferences/strategy_data_requirements.md— Data format requirements per strategy
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

