datasets

Construct and normalize ML datasets across JSONL, HuggingFace, and conversation formats.

4.0k|507|Updated Jul 14, 2025
One-click install
npx skills add https://github.com/thinking-machines-lab/tinker-cookbook --skill datasets-thinking-machines-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: datasets
Source: https://github.com/thinking-machines-lab/tinker-cookbook/tree/main/.claude/skills/datasets
Command: npx skills add https://github.com/thinking-machines-lab/tinker-cookbook --skill datasets-thinking-machines-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Data scientists and engineers often struggle to assemble clean, diverse, and deployment-ready datasets. This skill codifies common dataset constructions (SupervisedDatasetBuilder, RLDatasetBuilder, ChatDatasetBuilder) and shows how to create datasets from JSONL files, HuggingFace datasets, or conversation data, plus practical data loading and preprocessing steps for reproducible model fine-tuning.

Core Features & Use Cases

  • Guides to build datasets using the NoRobotsBuilder, Tulu3Builder, and other built-ins with a common_config.
  • Demonstrates converting conversations to data for training, evaluating, or RLHF workflows.
  • Provides low-level helpers to convert, load, and serialize datasets from various formats.

Quick Start

Construct a SupervisedDatasetBuilder with a shared common_config and build a dataset from a JSONL file for training.

Frequently Asked Questions about datasets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an ML dataset from JSONL files for fine-tuning?

You can build an ML dataset from JSONL files by constructing a SupervisedDatasetBuilder with a shared common_config, which automates data loading, normalization, and serialization for reproducible fine-tuning workflows.

What's the best way to prepare HuggingFace datasets for RLHF workflows?

The best way to prepare HuggingFace datasets for RLHF is to use an RLDatasetBuilder, which normalizes loaded data and serializes it into deployment-ready formats specifically structured for reinforcement learning pipelines.

Can I convert conversation data into a training dataset?

You can convert conversation data into a training dataset using a ChatDatasetBuilder, which structures and normalizes conversational inputs into serialized formats suitable for supervised fine-tuning or evaluation workflows.

Does this dataset builder approach support built-in configurations like Tulu3?

Yes, the dataset builder approach supports built-in configurations like Tulu3Builder and NoRobotsBuilder, allowing you to apply standardized preprocessing and normalization across diverse data sources through a shared common_config.

How do I serialize datasets across different formats for training pipelines?

To serialize datasets across different formats, use the low-level helpers within the builders to convert, load, and normalize data from sources like JSONL or HuggingFace into reproducible outputs for your training pipelines.