Match each instruction dataset to its on-disk row shape.
Alpaca is flat instruction, input, output, ShareGPT is a conversation list with from tags, OASST is a parent_id message tree, FLAN is input_text-target_text pairs, OpenAI Chat-JSONL is the role-tagged messages array.
Imagine five different ways to record a tutoring conversation. Alpaca writes one neat card with the question, optional context, and the answer. ShareGPT writes a small script of who said what in order. OASST is more like a family tree of replies where any line can branch into several follow-ups. FLAN fills out a worksheet with a prompt and the expected response. OpenAI Chat-JSONL is a tidy diary where every entry tags the speaker as system, user, or assistant. Each format suits a different purpose, and recognising the shape on disk tells you what the dataset was built for.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: topology sort first (three flat, one list, one tree) + field-name vocabulary per format + how to disambiguate ShareGPT from OpenAI Chat-JSONL + why OASST is a tree + format adapters in modern stacks.
Real products, models, and research that use this idea.
- Hugging Face's tulu-v3 mix in 2026 converts source datasets including Alpaca, ShareGPT, and OASST descendants into a unified ShareGPT-shape JSONL for community fine-tuning.
- OpenAI's hosted fine-tuning for gpt-5.5 accepts only the Chat-JSONL format, so most other formats must be transformed before upload.
- Axolotl and LLaMA-Factory both ship dataset-format adapters for Alpaca, ShareGPT, OASST, FLAN, and Chat-JSONL, automatically applying the right chat template per format.
- The OpenAssistant project's released data uses the tree format on Hugging Face Hub, and most downstream uses flatten preferred-rank paths into ShareGPT-shape conversations for training.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does OASST use a tree structure instead of just storing flat conversations?
QWhat information is lost when converting an OASST tree to a ShareGPT-shape conversation list?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Confusing ShareGPT and OpenAI Chat-JSONL because both encode conversations. The giveaway is the field names, ShareGPT uses from and value with informal speaker tags, OpenAI uses role and content with strict role names.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.