biscet's picture
Add the full 10,000-example GLM recovery corpus, dataset card and source notices
8f36be2 verified
|
Raw History Blame Contribute Delete
9.08 kB
metadata
pretty_name: PostPrune Codex TraceMix
author: biscet
language:
  - ru
  - en
license: other
license_name: multiple-per-example
license_link: >-
  https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix#licenses-and-attribution
size_categories:
  - 10K<n<100K
task_categories:
  - text-generation
  - question-answering
  - translation
tags:
  - glm
  - glm-5.3-flash
  - mixture-of-experts
  - model-pruning
  - post-pruning
  - recovery-training
  - supervised-fine-tuning
  - sft
  - instruction-tuning
  - lora
  - conversational
  - bilingual
  - russian
  - english
  - reasoning
  - logical-reasoning
  - math
  - arithmetic
  - word-problems
  - code
  - python
  - code-generation
  - code-tracing
  - debugging
  - unit-tests
  - reading-comprehension
  - extractive-qa
  - grammar
  - punctuation-restoration
  - synthetic-data
  - gsm8k
  - mbpp
  - tatoeba
  - tydiqa
  - thealgorithms
  - jsonl
configs:
  - config_name: default
    default: true
    data_files:
      - split: train
        path: train.jsonl
      - split: validation
        path: dev.jsonl
      - split: test
        path: test.jsonl

PostPrune Codex TraceMix

Short worked answers for fine-tuning GLM after expert pruning.

10,000 examples  ·  Russian + English  ·  5 domains  ·  JSONL

The mix · Load the dataset · Manifest · Source licenses


Built for GLM-5.3-Flash-34B-A17B. Each example pairs a user task with a reference answer. The recovery experiment trains the model to finish a solution, return a requested fact or write a Python function that passes its tests.

The corpus combines 3,843 procedurally generated exercises with 6,157 examples adapted from five public sources. Traces include worked calculations and step-by-step reasoning about program output. The corpus contains no Codex session logs.

The mix

Domain Tasks Train Validation Test
reasoning Constraints, schedules, graphs and planning 1,989 64 64
math Word problems, probability, counting and geometry 2,331 93 93
code Python implementation, tracing, debugging and test selection 1,451 68 68
ru Translation into Russian, punctuation, grammar and reading 1,737 76 76
en Translation into English, punctuation, grammar and reading 1,738 76 76
Total 9,246 377 377

The language field identifies the instruction or answer language across all five domains. In total, 4,309 examples are labeled ru and 5,691 are labeled en.

Load the dataset

from datasets import load_dataset

data = load_dataset("biscet/PostPrune-Codex-TraceMix")
train = data["train"].select_columns(["messages"])
example = data["validation"][0]
prompt = example["messages"][0]["content"]
expected = example["grading"]

The Hub maps dev.jsonl to validation. Its rows retain split="dev". For supervised fine-tuning, pass the two messages in order, user then assistant. For evaluation, show the model only the user message.

Record format and grading

Each row includes id, split, domain, language, task, source, group_id, license, attribution, messages and grading. Keep grading metadata out of the prompt.

grading.type How to check a response
number Compare the number on the final line with grading.value.
exact Compare the short answer on the final line with grading.value.
reference Review the translation or edit against the reference. Other phrasings can be correct.
code Run the assertions in grading.tests against the solution in an isolated sandbox.

grading.value is a string and grading.tests is a list of strings. Each held-out split has 257 numeric or exact answers, 80 language references and 40 code solutions.

Before your training run
  • The GLM recovery run samples one example per domain per optimizer step. Uniform sampling over rows produces different domain weights.
  • Corpus version 2.0 adds 4,038 training examples. Only these additions were checked against a 512-token limit including the GLM chat template, response and end-of-sequence token. Check lengths again with your tokenizer.
  • Source groups stay within one split. GSM8K examples come exclusively from its original training set. MBPP follows the original split ranges and excludes few-shot tasks. Tatoeba contributes at most one pair per connected translation group.
  • Normalized duplicate prompts were removed. For the expansion, five-word shingles were compared at Jaccard thresholds of 0.90 against training prompts and 0.72 against held-out prompts and a separate 50-task evaluation suite. Paraphrases and overlap with model pretraining remain possible.
  • Validation and test are unchanged from version 1.0. TheAlgorithms/Python and TyDiQA-GoldP occur only in training. Reserve test for final evaluation. These splits alone cannot establish recovery across all tasks.

Licenses and attribution

Preserve the license and attribution fields of each row and the corresponding notices when redistributing. The manifest records source revisions, split counts and SHA-256 checksums.

Sources, adaptations and terms
Rows License and provenance
GSM8K MIT. Copyright © 2021 OpenAI. Original worked solutions with calculator markup removed and a separate final-answer line. Pinned source · License copy
MBPP CC BY 4.0. Austin et al., Program Synthesis with Large Language Models (2021), Google Research. Original tasks and code with formatting, a public example, hidden tests and derived trace tasks. Pinned source · Dataset license statement · Split description
Tatoeba CC BY 2.0 France. Credit to the original contributors named in every row, Tatoeba and ManyThings.org. Sentence IDs in attribution can be looked up at https://tatoeba.org/en/sentences/show/ID. Prompts for translation and comma restoration have been added. Export dated 2026-02-13. Tatoeba terms §6.2 · Official download license · Original export notice
TheAlgorithms/Python MIT. TheAlgorithms and contributors. Educational functions, doctest inputs and adapted repair, implementation and trace prompts. The row attribution identifies its source path, function and pinned revision. Source · License copy
TyDiQA-GoldP Clark et al. (2020). Train-passage identifiers and source metadata come from TyDiQA-GoldP (Apache-2.0). The reading exercises and answers were generated from the Wikipedia passages themselves. Each adapted excerpt credits its article and contributors and retains CC BY-SA 3.0. Citation markers and whitespace may have been normalized. Pinned dataset · Dataset notice · Apache license · Wikipedia license
Original Original procedural prompts and solutions authored for this corpus, dedicated under CC0 1.0.
Citation
@misc{postprune_codex_tracemix,
  author = {biscet},
  title  = {PostPrune Codex TraceMix},
  year   = {2026},
  url    = {https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix}
}