Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-dataset

Skill by areal-project

Add-dataset is a guide for adding a new dataset loader to the AReaL project. It is for developers who want to integrate a new dataset for SFT or RL training.

  • Score 87
  • 5.9k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-dataset

Built from the published package, never by AI.

git clone --depth 1 https://github.com/areal-project/AReaL /tmp/AReaL && mkdir -p ~/.claude/skills && cp -r /tmp/AReaL/.claude/skills/add-dataset ~/.claude/skills/add-dataset

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-dataset in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill walks through adding a new dataset loader to AReaL. It describes creating a file under areal/dataset/ with one function for SFT training and one for RL training, each returning a HuggingFace Dataset. The SFT loader tokenizes the prompt and response and builds a loss mask, while the RL loader wraps the question in a user message with its answer.

The guide also covers registering the new dataset in areal/dataset/__init__.py, optionally adding config fields in areal/api/cli_args.py, and writing tests. It lists reference implementations such as GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL, and common mistakes to avoid. It is aimed at developers working on the AReaL codebase.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create dataset fileGuides creating areal/dataset/<name>.py with SFT and RL loader functions.
  • SFT loaderTokenizes prompt and response and builds a loss mask for SFT training.
  • RL loaderReturns prompts in a messages format with an answer field for reward computation.
  • Register datasetShows how to add the dataset to VALID_DATASETS and _get_custom_dataset.
  • Optional configShows how to add dataset-specific fields to TrainDatasetConfig.
  • Test templatesProvides example pytest tests checking dataset loading and required columns.

What you need

  • The AReaL repository
  • HuggingFace datasets library
  • A tokenizer for the target model

Try asking

  • How do I add a new dataset to AReaL?
  • Create an RL dataset loader for my question and answer data in AReaL
  • Show me how to register a new dataset in areal/dataset/__init__.py

Good to know

  • Written for the AReaL codebase and its dataset layout
  • Assumes source data has question and answer fields
  • Covers only SFT and RL dataset formats described in the guide

Security check

D
  • Has instructions to the assistant hidden in an HTML commentIn .claude/skills/add-dataset/SKILL.md: <!-- ================================================================================ MAINTAINER GUIDE =========

Checked automatically: .claude/skills/add-dataset/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to add-dataset

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

add-dataset: common questions

What does the add-dataset skill do?

It guides a developer through adding a new dataset loader to AReaL, including SFT and RL loader functions, registration and tests.

What dataset formats does it cover?

It covers an SFT format with a messages list of user and assistant turns, and an RL format with a user message and an answer field.

Which existing datasets can I use as references?

The guide lists GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL as reference implementations in the AReaL dataset folder.

How do I install add-dataset?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-dataset free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is add-dataset safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (has instructions to the assistant hidden in an html comment). Review the code before you install. How grades work.

What are alternatives to add-dataset?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

add-dataset Install

Add to stack

Loading.