FORMAT: Reasoning Datasets - DeepSeek Format
Collection
Aggregating reasoning datasets (5M) • 20 items • Updated • 1
Error code: TooBigContentError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Combined converted dataset from two sources:
Each row has three columns:
input — list of dicts [{"role": "user", "content": "..."}]response — response string including <think> reasoning blockdomain — Math_FineProofs or stem-reasoningRows were dropped if any required field was empty or if the response did not contain exactly one <think> and one </think> tag.
import random
from collections import Counter
import pyarrow.parquet as pq
pf = pq.ParquetFile("./reasoning-model/fineproofs-stem/data_converted.parquet")
rows = {"input": [], "response": [], "domain": []}
for batch in pf.iter_batches(batch_size=65_536):
d = batch.to_pydict()
rows["input"].extend(d["input"])
rows["response"].extend(d["response"])
rows["domain"].extend(d["domain"])
total = len(rows["input"])
counts = Counter(rows["domain"])
print(f"Total: {total:,}\n")
for domain, count in counts.most_common():
print(f" {domain:<25} {count:>8,} ({100*count/total:.2f}%)")
for idx in random.sample(range(total), 3):
print(f"\n{'='*80}\nRow {idx:,} / {total:,} | domain: {rows['domain'][idx]}\n{'='*80}")
for msg in rows["input"][idx]:
print(f"\n [{msg['role']}]\n {msg['content'][:300]}{'...' if len(msg['content']) > 300 else ''}")
print(f"\n[response]\n{rows['response'][idx][:600]}{'...' if len(rows['response'][idx]) > 600 else ''}")
Apache 2.0