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

Guides an assistant through adding a new dataset loader to the AReaL project. It covers SFT and RL loaders, registration, optional config and tests. Intended for developers who want to train AReaL on their own dataset.

  • 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/.agents/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 is a step-by-step guide for adding a new dataset loader to AReaL. It tells the assistant to create a file at areal/dataset/<name>.py with an SFT loader and an RL loader, both built on the HuggingFace datasets library. The SFT loader tokenizes prompt and response and builds a loss mask, while the RL loader returns messages and an answer for reward computation.

The guide also covers registering the loader in areal/dataset/__init__.py, adding an optional config field in areal/api/cli_args.py, and writing tests. It lists reference implementations for GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL, along with required message formats and common mistakes. It suits developers who want to add their own dataset to AReaL.

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

What it can do

  • Create SFT dataset loaderWrites a loader that tokenizes prompt and response and builds a loss mask.
  • Create RL dataset loaderWrites a loader that returns messages and an answer for reward computation.
  • Register new datasetAdds the dataset name to VALID_DATASETS and to _get_custom_dataset in __init__.py.
  • Add optional configAdds a dataset-specific field to TrainDatasetConfig in cli_args.py if needed.
  • Write dataset testsCreates a test file that checks the loaders return rows with the expected columns.
  • Reference implementationsPoints to existing loaders for GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL.

What you need

  • AReaL repository
  • HuggingFace datasets library
  • Tokenizer for the target model

Try asking

  • How do I add a new dataset loader to AReaL?
  • Create an SFT and RL dataset loader for my dataset in AReaL
  • Show me the required message format for AReaL RL datasets

Good to know

  • Code templates use <name> placeholders that must be replaced.
  • Config step is marked optional in the source.
  • Assumes the AReaL repository file layout.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

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

Inside the skill

  • SKILL.md5 KB

Alternatives to add-dataset

All alternatives →

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

add-dataset: common questions

What must a dataset loader return?

The source says loaders should return a HuggingFace Dataset, not a List of Dicts. SFT rows need a messages list, and RL rows need messages plus an answer field.

Where should the new loader file go?

The source places it at areal/dataset/<name>.py. The loader is then registered in areal/dataset/__init__.py.

Which existing datasets can serve as examples?

The skill lists GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL, each with its file path 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 A, no risky patterns found in the files checked. 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.