--- 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 # PostPrune Codex TraceMix **Short worked answers for fine-tuning GLM after expert pruning.** `10,000 examples`  ·  `Russian + English`  ·  `5 domains`  ·  `JSONL` [The mix](#the-mix) · [Load the dataset](#load-the-dataset) · [Manifest](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/manifest.json) · [Source licenses](#licenses-and-attribution) --- > **Built for [GLM-5.3-Flash-34B-A17B](https://huggingface.co/biscet/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 ```python 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](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/manifest.json) 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](https://github.com/openai/grade-school-math/tree/3101c7d5072418e28b9008a6636bde82a006892c) · [License copy](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/gsm-MIT.txt) | | MBPP | [CC BY 4.0](https://creativecommons.org/licenses/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](https://github.com/google-research/google-research/tree/64170b92c64837f51cec8bae8ac48bf6da8e6b54/mbpp) · [Dataset license statement](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/google-license.txt) · [Split description](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/google-mbpp.md) | | Tatoeba | [CC BY 2.0 France](https://creativecommons.org/licenses/by/2.0/fr/). Credit to the original contributors named in every row, [Tatoeba](https://tatoeba.org/) and [ManyThings.org](https://www.manythings.org/anki/). 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](https://tatoeba.org/en/terms_of_use) · [Official download license](https://tatoeba.org/en/downloads) · [Original export notice](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/tatoeba-about.txt) | | 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](https://github.com/TheAlgorithms/Python/tree/30507bbe41397065728167fb09aa820f9fce8dc7) · [License copy](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/algorithms-license.txt) | | 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](https://huggingface.co/datasets/google-research-datasets/tydiqa/tree/da78f23f9119363459acbaf46bf89426ff26c259) · [Dataset notice](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/tydi-hf-card.md) · [Apache license](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/tydi-Apache.txt) · [Wikipedia license](https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix/blob/main/licenses/wiki-CC-BY-SA-3.0.txt) | | Original | Original procedural prompts and solutions authored for this corpus, dedicated under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/). |
Citation ```bibtex @misc{postprune_codex_tracemix, author = {biscet}, title = {PostPrune Codex TraceMix}, year = {2026}, url = {https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix} } ```