Add files using upload-large-folder tool
Browse files- README.md +57 -0
- data/train-00000.jsonl.gz +3 -0
- data/train-00001.jsonl.gz +3 -0
- data/train-00002.jsonl.gz +3 -0
- data/train-00003.jsonl.gz +3 -0
- metadata/manifest.json +60 -0
- validate_dataset.py +32 -0
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- instruction-tuning
|
| 9 |
+
- tool-calling
|
| 10 |
+
- math
|
| 11 |
+
- dfm11
|
| 12 |
+
pretty_name: dfm11-mathagentic-tinygsm-python
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# dfm11-mathagentic-tinygsm-python
|
| 16 |
+
|
| 17 |
+
English arithmetic word problems converted into native Python tool-call trajectories with precomputed tool responses and boxed final answers.
|
| 18 |
+
|
| 19 |
+
## Contents
|
| 20 |
+
|
| 21 |
+
- Rows: 367,749
|
| 22 |
+
- Shards: 4
|
| 23 |
+
- Format: deterministic gzip JSON Lines in `data/train-*.jsonl.gz`
|
| 24 |
+
- Schema: `tools`, four-message native tool trajectory, execution metadata,
|
| 25 |
+
stable source ID, source revision, and admission status
|
| 26 |
+
- Intended repository: `schneiderkamplab/dfm11-mathagentic-tinygsm-python`
|
| 27 |
+
|
| 28 |
+
Each row contains a user problem, an assistant tool call, a precomputed tool
|
| 29 |
+
response, and a terminal assistant response containing exactly one boxed final
|
| 30 |
+
answer. It is directly consumable by Mathagentic/HRM-Text's Gemma 4 native
|
| 31 |
+
tool-call rendering path; no executor is used during training.
|
| 32 |
+
|
| 33 |
+
## Upstream datasets
|
| 34 |
+
|
| 35 |
+
- `TinyGSM/TinyGSM`
|
| 36 |
+
|
| 37 |
+
## Selection and verification
|
| 38 |
+
|
| 39 |
+
Deterministic 1-in-20 source sample; restricted-Python validation and execution; independent Gemma 4 26B A4B semantic audit; accepted verdicts only.
|
| 40 |
+
|
| 41 |
+
The semantic audit covered 500,000 candidates and accepted 367,749 (73.55%). Rejected rows are not packaged.
|
| 42 |
+
|
| 43 |
+
The package contains source trajectories, not tokenized arrays or sampled epoch
|
| 44 |
+
indices. Packaging does not itself admit the dataset into a DFM11 data mix.
|
| 45 |
+
The approved DFM11 sampling policy is to deterministically cap to 50,000 distinct rows per epoch, with repeat
|
| 46 |
+
`1`. This policy does not remove rows from the published
|
| 47 |
+
source package.
|
| 48 |
+
|
| 49 |
+
## License and citation review
|
| 50 |
+
|
| 51 |
+
The upstream TinyGSM dataset declares the MIT license. Preserve its attribution.
|
| 52 |
+
|
| 53 |
+
## Validate
|
| 54 |
+
|
| 55 |
+
```bash
|
| 56 |
+
python validate_dataset.py
|
| 57 |
+
```
|
data/train-00000.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a676fa3969dcabeee142bf2b37e29d074d593a404ee5601f90311adf80136e6e
|
| 3 |
+
size 16257859
|
data/train-00001.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:596789e6be5e4e2603329fe1e2d991ae52563efe7bc31e973ea86f4eb4e04a1e
|
| 3 |
+
size 15562648
|
data/train-00002.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d49ebbe480484a09c87c520d444ed27c4a03fd8aa04d8031de97ab0845b280d0
|
| 3 |
+
size 16724818
|
data/train-00003.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:318ae8339303c05170259b89d57fa4abda8109884ff831fc7cd457b224d68327
|
| 3 |
+
size 10788975
|
metadata/manifest.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"admission_status": "semantic_verified",
|
| 3 |
+
"data_files": [
|
| 4 |
+
{
|
| 5 |
+
"bytes": 16257859,
|
| 6 |
+
"file": "data/train-00000.jsonl.gz",
|
| 7 |
+
"sha256": "a676fa3969dcabeee142bf2b37e29d074d593a404ee5601f90311adf80136e6e"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"bytes": 15562648,
|
| 11 |
+
"file": "data/train-00001.jsonl.gz",
|
| 12 |
+
"sha256": "596789e6be5e4e2603329fe1e2d991ae52563efe7bc31e973ea86f4eb4e04a1e"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"bytes": 16724818,
|
| 16 |
+
"file": "data/train-00002.jsonl.gz",
|
| 17 |
+
"sha256": "d49ebbe480484a09c87c520d444ed27c4a03fd8aa04d8031de97ab0845b280d0"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"bytes": 10788975,
|
| 21 |
+
"file": "data/train-00003.jsonl.gz",
|
| 22 |
+
"sha256": "318ae8339303c05170259b89d57fa4abda8109884ff831fc7cd457b224d68327"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"dfm11_sampling": {
|
| 26 |
+
"repeat": 1,
|
| 27 |
+
"row_cap_per_epoch": 50000
|
| 28 |
+
},
|
| 29 |
+
"format": "mathagentic-native-tool-sft-v1; deterministic gzip JSON Lines",
|
| 30 |
+
"intended_hf_id": "schneiderkamplab/dfm11-mathagentic-tinygsm-python",
|
| 31 |
+
"license": "mit",
|
| 32 |
+
"name": "dfm11-mathagentic-tinygsm-python",
|
| 33 |
+
"rows": 367749,
|
| 34 |
+
"selection": "Deterministic 1-in-20 source sample; restricted-Python validation and execution; independent Gemma 4 26B A4B semantic audit; accepted verdicts only.",
|
| 35 |
+
"semantic_audit": {
|
| 36 |
+
"acceptance_rate": 0.735498,
|
| 37 |
+
"accepted_rows": 367749,
|
| 38 |
+
"audit_models": [
|
| 39 |
+
"/work/mimir/.home/.cache/huggingface/hub/models--google--gemma-4-26B-A4B-it/snapshots/4d7ae4984b7db7de8f8457170b3f1a419ee76d52"
|
| 40 |
+
],
|
| 41 |
+
"audited_rows": 500000,
|
| 42 |
+
"rejected_rows": 132251,
|
| 43 |
+
"rejection_reasons": {
|
| 44 |
+
"ambiguous": 658,
|
| 45 |
+
"malformed_question": 9900,
|
| 46 |
+
"unit_error": 1924,
|
| 47 |
+
"unsafe_or_irrelevant": 3028,
|
| 48 |
+
"wrong_operation": 110774,
|
| 49 |
+
"wrong_quantity": 5967
|
| 50 |
+
},
|
| 51 |
+
"verdict_sha256": "9badd56a7c71a29c74cffc5ccc478a744b961b0a071a3657cabdfb7dfb048f97"
|
| 52 |
+
},
|
| 53 |
+
"shards": 4,
|
| 54 |
+
"source_revision": "5049a7840fa546985eaae4c698d5daf6fdf7b47d",
|
| 55 |
+
"source_shards": 50,
|
| 56 |
+
"upload_performed": false,
|
| 57 |
+
"upstream": [
|
| 58 |
+
"TinyGSM/TinyGSM"
|
| 59 |
+
]
|
| 60 |
+
}
|
validate_dataset.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import gzip, hashlib, json
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
|
| 5 |
+
root = Path(__file__).parent
|
| 6 |
+
manifest = json.loads((root / "metadata/manifest.json").read_text())
|
| 7 |
+
rows = 0
|
| 8 |
+
seen = set()
|
| 9 |
+
for item in manifest["data_files"]:
|
| 10 |
+
path = root / item["file"]
|
| 11 |
+
digest = hashlib.sha256(path.read_bytes()).hexdigest()
|
| 12 |
+
if digest != item["sha256"]:
|
| 13 |
+
raise ValueError(f"checksum mismatch: {path}")
|
| 14 |
+
with gzip.open(path, "rt", encoding="utf-8") as handle:
|
| 15 |
+
for line in handle:
|
| 16 |
+
row = json.loads(line)
|
| 17 |
+
sid = row.get("source_id")
|
| 18 |
+
if not sid or sid in seen:
|
| 19 |
+
raise ValueError(f"missing or duplicate source_id: {sid}")
|
| 20 |
+
seen.add(sid)
|
| 21 |
+
messages = row.get("messages")
|
| 22 |
+
if [message.get("role") for message in messages] != ["user", "assistant", "tool", "assistant"]:
|
| 23 |
+
raise ValueError(f"invalid roles: {sid}")
|
| 24 |
+
call = messages[1]["tool_calls"][0]
|
| 25 |
+
if call["id"] != messages[2].get("tool_call_id"):
|
| 26 |
+
raise ValueError(f"call/result mismatch: {sid}")
|
| 27 |
+
if not str(messages[3].get("content") or "").startswith("\\boxed{"):
|
| 28 |
+
raise ValueError(f"missing boxed answer: {sid}")
|
| 29 |
+
rows += 1
|
| 30 |
+
if rows != manifest["rows"]:
|
| 31 |
+
raise ValueError(f"row count mismatch: {rows} != {manifest['rows']}")
|
| 32 |
+
print(json.dumps({"rows": rows, "valid": True}, sort_keys=True))
|