CoolFace
Datasetpublic

ansulev/glm-5.1-reasoning-1m-cleaned

GLM-5.1-Reasoning-1M-Cleaned GLM-5.1-Reasoning-1M-Cleaned is a cleaned and reformatted derivative of Kassadin88/GLM-5.1-1000000x. It preserves the original four-subset layout (main, PHD-Science, Multilingual-STEM, Math) while converting every example into a unified SFT-ready schema with explicit conversations, input, output, domain, and meta fields. This release was prepared from the original dataset published by Kassadin88. Summary Teacher model in the data:… See the full description on the dataset page: https://huggingface.co/datasets/ansulev/glm-5.1-reasoning-1m-cleaned.

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
1likes118downloads
Dataset Card

GLM-5.1-Reasoning-1M-Cleaned

GLM-5.1

GLM-5.1-Reasoning-1M-Cleaned is a cleaned and reformatted derivative of Kassadin88/GLM-5.1-1000000x. It preserves the original four-subset layout (main, PHD-Science, Multilingual-STEM, Math) while converting every example into a unified SFT-ready schema with explicit conversations, input, output, domain, and meta fields.

This release was prepared from the original dataset published by Kassadin88.

Summary

bench_51

  • Teacher model in the data: GLM-5.1
  • Total processed records: 766,535
  • Total kept records: 746,321
  • Total removed records: 20,214
  • Subset layout preserved exactly as the source dataset: main, PHD-Science, Multilingual-STEM, Math

Included Content

  • main: general reasoning and instruction-following data.
  • PHD-Science: graduate-level physics, chemistry, and biology reasoning traces.
  • Multilingual-STEM: multilingual STEM reasoning data, including Chinese, English, and other languages present in the source release.
  • Math: mathematics-heavy reasoning and proof-style responses.

Cleaning and Reformatting

The raw source dataset mixed two answer layouts:

  1. 1.Standard <think>...</think> reasoning tags.
  2. 2.A non-standard short-dash wrapper around the reasoning section.

This cleaned release normalizes both styles into a single output format:

json
{
  "id": "md5-hash-of-domain-input-reasoning-answer",
  "conversations": [
    {"from": "human", "value": "user prompt"},
    {"from": "gpt", "value": "<think>\nreasoning trace\n</think>\n\nfinal answer"}
  ],
  "input": "user prompt",
  "output": "<think>\nreasoning trace\n</think>\n\nfinal answer",
  "domain": "subset/domain name from the original _id prefix",
  "meta": {
    "input_tokens": 123,
    "output_tokens": 456,
    "teacher_model": "GLM-5.1"
  }
}

Removed data

The cleaning pipeline removed records with:

  • incomplete or obviously truncated answers,
  • repeated reasoning paragraphs or duplicated answer segments,
  • refusal-style answers,
  • unparseable reasoning/answer boundaries,
  • exact duplicate records after normalization.

Subset Statistics

SubsetProcessedKeptRemovedFile SizeMedian Input TokensMedian Output Tokens
main547,292527,73719,55518.28 GB503008
PHD-Science103,759103,706533.72 GB453387
Multilingual-STEM93,03292,7812513.53 GB664084
Math22,45222,0973554.03 GB5924498

Filter Statistics

SubsetIssueRemoved
mainincomplete_output12,726
mainrepeated_paragraph6,152
mainrefusal_answer638
mainunparseable_output38
mainduplicate_record1
PHD-Scienceincomplete_output33
PHD-Sciencerepeated_paragraph19
PHD-Sciencerefusal_answer1
Multilingual-STEMrepeated_paragraph116
Multilingual-STEMincomplete_output88
Multilingual-STEMrefusal_answer28
Multilingual-STEMunparseable_output19
Mathrepeated_paragraph303
Mathincomplete_output26
Mathunparseable_output26

Additional Token Statistics

SubsetMean Input TokensP95 Input TokensMean Output TokensP95 Output Tokens
main118.625154482.3515041
PHD-Science45.05564387.7310447
Multilingual-STEM79.911925461.4511034
Math62.018928133.464633

Data Structure

Each example is a single-turn reasoning distillation sample:

  • conversations[0]: the user prompt.
  • conversations[1]: the model response with reasoning wrapped in <think>...</think> and the final answer after the closing tag.
  • input: prompt-only view for training pipelines that prefer flat prompt fields.
  • output: tagged answer-only view for training pipelines that prefer flat completion fields.
  • domain: original subset/domain name extracted from the source record ID.
  • meta: lightweight per-example metadata.

Usage

python
from datasets import load_dataset

main = load_dataset("Jackrong/GLM5.1-Reasoning-1M-Cleaned", "main")
science = load_dataset("Jackrong/GLM5.1-Reasoning-1M-Cleaned", "PHD-Science")
stem = load_dataset("Jackrong/GLM5.1-Reasoning-1M-Cleaned", "Multilingual-STEM")
math = load_dataset("Jackrong/GLM5.1-Reasoning-1M-Cleaned", "Math")

If you publish under a different namespace, replace Jackrong/ with your actual Hugging Face username or org.

Provenance

This dataset is derived from:

Citation

Please cite the original dataset first:

bibtex
@misc{glm51-1000000x,
  title={GLM-5.1-1000000x: One Million Reasoning Traces Distilled from GLM-5.1},
  author={Kassadin88},
  year={2026},
  publisher={HuggingFace},
  url={https://huggingface.co/datasets/Kassadin88/GLM-5.1-1000000x}
}

You can additionally cite this cleaned derivative release as:

bibtex
@misc{glm51_reasoning_1m_cleaned,
  title={GLM-5.1-Reasoning-1M-Cleaned},
  author={Jackrong},
  year={2026},
  publisher={HuggingFace},
  url={https://huggingface.co/datasets/Jackrong/GLM5.1-Reasoning-1M-Cleaned}
}