Datasets:
File size: 9,082 Bytes
8f36be2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | ---
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
---
<div align="center">
# 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)
</div>
---
> **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.
<details>
<summary><strong>Record format and grading</strong></summary>
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.
</details>
<details>
<summary><strong>Before your training run</strong></summary>
- 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.
</details>
## 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.
<details>
<summary><strong>Sources, adaptations and terms</strong></summary>
| 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/). |
</details>
<details>
<summary><strong>Citation</strong></summary>
```bibtex
@misc{postprune_codex_tracemix,
author = {biscet},
title = {PostPrune Codex TraceMix},
year = {2026},
url = {https://huggingface.co/datasets/biscet/PostPrune-Codex-TraceMix}
}
```
</details>
|