← Datasets

Compare

HotpotQA
#158 · remove
swallowcode2
#154 · remove
Kinddatasetdataset
Published—2025
Licensecc-by-sa-4.0apache-2.0
License familyCopyleftPermissive
Accessfreefree
Language codesenen
Modalitiestexttext
Size100K to 1M rows100M to 1B rows
Downloads (last month)102,0505,638
Likes33450
Last updated2025-08-112025-11-08
Tasksquestion-answeringtext-generation
Formatsparquetjson
ScalePaper Table 1 112,779 (train-easy 18,089 / train-medium 56,814 / train-hard 15,661 / dev 7,405 / test-distractor 7,405 / test-fullwiki 7,405). Hub distractor train 90,447 + validation 7,405 = 97,852; fullwiki train 90,447 + validation 7,405 + test 7,405 = 105,257. datasets-server num_rows 203,109 is distractor+fullwiki concat — do not add. YAML distractor download_size 359,239,231 (~359.2 MB) / dataset_size 598,664,854 (~571 MB); fullwiki download_size 387,387,120 (~387.4 MB) / dataset_size 645,797,266 (~616 MB). Parquet 331.8+27.5 + 331.8+28.0+27.6 = 746.7 MB. Card stale 1.27 GB download / 1.24 GB generated / 2.52 GB disk. size_categories 100K<n<1M. Hub overview 1.2M downloads / 323 likes at check. gated=false.Card: 49.8B Llama-3 tokens (v1 was 16.1B). usedStorage 5,194,499,027,449 bytes (~5.19 TB / 4.72 TiB) for all pipeline stages on Hub. Default SwallowCode-v2 = stage5-auto-format/python/medium: 150 jsonl (train_0001–0160 with gaps 0050, 0055, 0115–0122); most ~7.0–7.2 GB, a tail of ~2.2–4.7 GB shards. datasets-server estimated_num_rows 146,711,936 across configs (partial viewer). stage4-llm-rewrite estimated 19,588,324 rows (stage5 is the ruff-formatted medium rewrite of that set; stage5/swallowcode-v2 size endpoints failed). YAML size_categories 10M<n<100M vs Hub tag 100M<n<1B (multi-config). gated=false. Hub 11,154 downloads / 44 likes at check.
Formatparquet. Configs distractor and fullwiki. Columns: id, question, answer, type, level, supporting_facts (title, sent_id), context (title, sentences). ~10 paragraphs/question.jsonl per pipeline stage (stage1-auto-format … stage5-auto-format). Default config swallowcode-v2 points at stage5 python medium train*.
TypeAnnotated multi-hop QA / Wikipedia MRC + sentence-level supporting factsPretraining corpus / rewritten Python code
CostFreeFree
LanguagesEnglish 100% (card language:en). Preview questions and Wikipedia paragraphs are English. No LID table. Per-language percents N/A.Python source (card language:en). Comments mixed; rewriter is English-oriented. Python-only released (13-language plan dropped for GPU cost). Leftover stage1/c jsonl shards exist but are not the v2 release.
ModalityText-only (questions, Wikipedia paragraphs, supporting-fact indices). Hub modality:text.Text (Python source)
Domainmulti-hop question answering; Wikipedia machine reading; supporting-fact explanation; entity comparisonPython code pretraining; LLM-rewritten Stack-v2
Time periodPaper arXiv 1809.09600 (Hub publishedAt 2018-09-25T17:28:20Z; EMNLP 2018). HF createdAt 2022-03-02; lastModified 2025-08-11T10:16:27Z. Crowdsourced over 2017-era Wikipedia first paragraphs. One-shot dump, not a live wiki crawl.HF createdAt 2025-10-20; lastModified 2025-11-08. Paper 2025-05-05 (arXiv 2505.02881) describes v1 (16.1B, Llama 3.3 license); this Hub dump is the Apache v2 rewrite. Discord posted 2025-11-17. Source The-Stack-v2 (Software Heritage GitHub; older). Rewriter Qwen3-235B-A22B-Instruct-2507.
PurposeTrain and evaluate QA systems that must reason over multiple Wikipedia paragraphs, emit sentence-level supporting facts, and answer factoid comparison questionsPublic 49.8B-token Apache-2.0 rewritten Python corpus for code pre-training, vs gated The-Stack-v2 and metadata-only Nemotron-Pretraining-Code-v1
Used forLandmark multi-hop QA dump / HotpotQA leaderboard. Hub overview 1.2M downloads / 323 likes at check. Paper 4 upvotes / 2 linked models / 32 linked datasets at paper-metadata check. Distinct from already-cataloged MS MARCO (Bing MRC).Llama-3.1-8B 50B-token continual pretrain: +20.7 HumanEval / +21.9 HumanEval+ pass@1 vs Stack-Edu (card). Paper v1 CPT +17.0 / +17.7 vs Stack-Edu. Hub 11,154 downloads / 44 likes at check. GitHub rioyokotalab/swallow-code-math 31 stars. Tokyo Tech Swallow checkpoints.
AuthorsCrowdworkers (Amazon Mechanical Turk) wrote questions/answers/supporting facts. Curators Yang, Qi, Zhang, Bengio, Cohen, Salakhutdinov, Manning (CMU / Stanford / Mila / Google AI; arXiv 1809.09600). Context paragraphs from Wikipedia article authors.Original snippets: GitHub via The-Stack-v2. Rewrites: Qwen3-235B-A22B-Instruct. Quality scorer: SeedCoder prompt. Tokyo Tech (Kazuki Fujii, Yukito Tajima, Masaki Kawamura, Naoaki Okazaki, Rio Yokota et al.).
BiasEnglish Wikipedia first-paragraphs; comparison vs bridge; train-easy 18,089 mostly single-hop (paper: those turkers contributed >70% of the data). Dev/test constrained to hard multi-hop. Paper sample: ~6% single-hop / ~2% unanswerable. Distinct from already-cataloged MS MARCO. Do not concat mrqa-workshop/mrqa or mehuldamani/hotpot_qa as extra n.Python-only. Ablation: rewriting Medium-quality SeedCoder-scored seeds beat High-quality on HumanEval (authors hypothesize simpler, problem-like files match the bench). Qwen3 rewrite style can uniformize code. Upstream The-Stack-v2 GitHub popularity/permissive-license skew remains. Instruct rewriter used (Thinking model similar quality, higher GPU). 1-stage rewrite adopted over v1’s 2-stage (similar downstream, ~2× cheaper).
Text qualityPreview distractor train 0 (Arthur's Magazine 1844 vs First for Women 1989) is a clean comparison; train 1–2 are bridge (Oberoi head office Delhi; Milhouse named after Nixon) with gold titles among 10 shuffled paragraphs. Residual: 8 tf-idf distractors are retrieval noise not adversarial; fullwiki test answers hidden; supporting_facts are sentence indices into titled paras. Not independently re-answered here.Five-stage transform-and-retain: ruff auto-format → length filter → SeedCoder 0–10 score → Qwen3-235B rewrite for clarity/structure → final ruff. Contrasts filter-only Stack-Edu. Residual LLM rewrite errors, over-simplification, and leftover tmp_*.jsonl under stage3/high. Do not train on stage1/c or unreleased language dirs.
Sample sizedistractor train 90,447 / validation 7,405. fullwiki train 90,447 / validation 7,405 / test 7,405. type/level are columns not Hub configs. Do not add MRQA or other Hub copies as extra n. Catalog paper 112,779 including both 7,405 tests; Hub public-with-answers is train+val 97,852.Default swallowcode-v2 / stage5-auto-format: python medium train* (150 shards; ~20M estimated from stage4). Also configs stage1-auto-format, stage2-length-filter (high), stage3-llm-score (high+medium YAML; server currently exposes medium), stage4-llm-rewrite. No val/test. Sister tokyotech-llm/swallow-math-v2 is a separate repo.
Long contextMixed (10 Wikipedia first-paragraphs per item; not book-length). Exact token histogram Unknown without aggregating.Mixed (length-filtered; stage2 longer_samples dir exists). Typical files are medium code snippets, not repo-scale documents.
Intermediate stepsYes (Wikipedia hyperlink pairs → crowdworker multi-hop questions + supporting-fact sentences; train-easy/medium/hard by model difficulty; 8 bigram-tf-idf distractors). Code at github.com/hotpotqa/hotpot.Yes (The-Stack-v2 Python → ruff → length filter → SeedCoder score → Qwen3 1-stage rewrite → ruff). Intermediate stages 1–4 are on Hub. Code/prompts: github.com/rioyokotalab/swallow-code-math.
Idea qualityHighHigh
NoveltyHigh (public landmark 113k multi-hop Wikipedia QA dump vs already-cataloged MS MARCO Bing MRC; remaining dump leftover)High (public 49.8B Apache rewritten Stack-v2 Python with actual files, not metadata-only)
Text conversionReady parquet; load_dataset('hotpotqa/hotpot_qa', 'distractor', split='train'). Catalog unique questions from paper 112,779; do not concat distractor+fullwiki as extra n. ~747 MB parquet — streaming optional.Ready jsonl. load_dataset("tokyotech-llm/swallow-code-v2", "swallowcode-v2") or config stage5-auto-format. Streaming required (multi-TB repo; stage5 alone is ~1 TB of jsonl).
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2025-08-11; Wikipedia freeze at collection ~2017–2018).Unknown (HF lastModified 2025-11-08; Python-only one-shot; authors mention a possible v3)
ProcessedUnknownUnknown
SummaryHotpotQA is a new dataset with 113k Wikipedia-based question-answer pairs with four key features: (1) the questions require finding and reasoning over multiple supporting documents to answer; (2) the questions are diverse and not constrained to any pre-existing knowledge bases or knowledge schemas; (3) we provide sentence-level supporting facts required for reasoning, allowingQA systems to reason with strong supervision and explain the predictions; (4) we offer a new type of factoid comparison questions to test QA systems’ ability to extract relevant facts and perform necessary comparison.[SwallowCode-v1](https://huggingface.co/datasets/tokyotech-llm/swallow-code) was a high-quality Python code dataset generated through an LLM-based rewriting pipeline.