Publish exact DistillationProject training split and provenance
Browse files- README.md +33 -0
- data/committed-45000.parquet +3 -0
- data/not-in-45k-checkpoint-5000.parquet +3 -0
- data/prepared-50000.parquet +3 -0
- provenance/loader-order.json +0 -0
- provenance/original/manifest.json +74 -0
- provenance/original/selection_config.json +102 -0
- provenance/original/training_loader.py +90 -0
- provenance/retained_45k_export.json +28 -0
- publication.json +40 -0
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- math
|
| 8 |
+
- sft
|
| 9 |
+
- distillation-project
|
| 10 |
+
source_datasets:
|
| 11 |
+
- AI-MO/NuminaMath-1.5
|
| 12 |
+
configs:
|
| 13 |
+
- config_name: prepared_50k
|
| 14 |
+
default: true
|
| 15 |
+
data_files:
|
| 16 |
+
- split: train
|
| 17 |
+
path: data/prepared-50000.parquet
|
| 18 |
+
- config_name: retained_45k_checkpoint
|
| 19 |
+
data_files:
|
| 20 |
+
- split: train
|
| 21 |
+
path: data/committed-45000.parquet
|
| 22 |
+
- split: not_in_checkpoint
|
| 23 |
+
path: data/not-in-45k-checkpoint-5000.parquet
|
| 24 |
+
license: apache-2.0
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
# DistillationProject: original NuminaMath 50K pool
|
| 28 |
+
|
| 29 |
+
The exact 50,000-example prepared pool for the original Qwen2.5-1.5B base SFT experiment. The `prepared_50k` configuration preserves the original prepared parquet byte for byte. Training stopped with a retained 45K checkpoint. The `retained_45k_checkpoint` configuration exposes its 45,000 contributing examples in the actual seed-42 loader order, plus the 5,000 examples not represented in that checkpoint. Intermediate Numina checkpoints correspond to 5K prefixes of the ordered 45K view. The remaining 5K view is a provenance split, not a validation benchmark.
|
| 30 |
+
|
| 31 |
+
Exact original question and response text is preserved. No resampling, solution rewriting or truncation is performed for publication. Source revisions, row counts, order and file SHA256 values are recorded in `publication.json` and `provenance/`. Prepared tables retain their original columns. Source validity labels do not establish independently verified mathematical correctness.
|
| 32 |
+
|
| 33 |
+
Collection: https://huggingface.co/collections/zbeeb/disstillation-project-6ace05e5f40dbe715407516c
|
data/committed-45000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d189768b7dd1e1ec9ea1d29f3523a0dbf8c5d32f266f78bb2295da8b0bca8287
|
| 3 |
+
size 22042171
|
data/not-in-45k-checkpoint-5000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36ad149ee135e52547315a4ddee98ed47a4e58bf0ad734cf562ea35c32978fac
|
| 3 |
+
size 2490539
|
data/prepared-50000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:117a4a06ac35eb24bb6a0fa843ef6955d87a187eac38ef97e648da338ab83f2d
|
| 3 |
+
size 24521313
|
provenance/loader-order.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
provenance/original/manifest.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"at": "2026-10-13T00:24:13.659856+00:00",
|
| 3 |
+
"experiment_sha256": "7cb618ffedcee2ceb662a5080deea283c6596d17be69cce84b11f3e4155c0bd5",
|
| 4 |
+
"files_sha256": {
|
| 5 |
+
"data/sft-50000.parquet": "117a4a06ac35eb24bb6a0fa843ef6955d87a187eac38ef97e648da338ab83f2d",
|
| 6 |
+
"data/train.arrow": "c2221bbde6ae2fc263e72c15dd5255c51e07e353499345f24a5eccb2d7082a8f",
|
| 7 |
+
"models/base/merges.txt": "599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3",
|
| 8 |
+
"models/base/vocab.json": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910",
|
| 9 |
+
"models/base/config.json": "0e8c8aa86468aba09c9d32157ff4bc2301c7e6c50e4398960425b2ea71e66f77",
|
| 10 |
+
"models/base/model.safetensors": "a961db72e75d52b18e6b0c9d379e51a26973b233385e0e127fdda7d648aec796",
|
| 11 |
+
"models/base/tokenizer_config.json": "c91efca15ceff6e9ee9424db58a6f59cd41294e550a86cbd07e3c1fb500b34f9",
|
| 12 |
+
"models/base/LICENSE": "832dd9e00a68dd83b3c3fb9f5588dad7dcf337a0db50f7d9483f310cd292e92e",
|
| 13 |
+
"models/base/tokenizer.json": "c0382117ea329cdf097041132f6d735924b697924d6f6fc3945713e96ce87539",
|
| 14 |
+
"models/base/README.md": "84cc3bdbfd781149913126b70981cf1e341176fe4bc9d878601a83f18b035ddf",
|
| 15 |
+
"models/base/generation_config.json": "8c970692323e3ea0e9b8b0a4dca79388d31226e41f83c9fd6014804280ebf6e8",
|
| 16 |
+
"data/raw/numina/data/train-00000-of-00003.parquet": "1e37cedcc5104c0d5a9afbf8b26328a59d7005cd37c2bd08352419f5f0e03214",
|
| 17 |
+
"data/raw/numina/data/train-00001-of-00003.parquet": "bc48fdddc1ab4e559727ad4f1f03b0263785c1c16b7964fb885fba07e18d6a39",
|
| 18 |
+
"data/raw/numina/data/train-00002-of-00003.parquet": "951aa899fe2a1b64f5b40c6636372d35b9db4f0b9c922e874d4bf357db64da66",
|
| 19 |
+
"data/benchmark-exclusions/MATH-500/test.jsonl": "35dc41080a3680858b27fa7e0533d2d547825316fc5dafe5d316f4ccc5a06132",
|
| 20 |
+
"data/benchmark-exclusions/aime_2024/data/train-00000-of-00001.parquet": "26139847601a5037c237d5928b195e7260ca8074cf4f264b794af42847f79ccf",
|
| 21 |
+
"data/benchmark-exclusions/amc23/test-00000-of-00001.parquet": "b696e87ba47be4e879a60fd4ef1d4aa522ba78c5ae013c6aff5cc9788a397c5e"
|
| 22 |
+
},
|
| 23 |
+
"raw_dataset_sha256": {
|
| 24 |
+
"data/raw/numina/data/train-00000-of-00003.parquet": "1e37cedcc5104c0d5a9afbf8b26328a59d7005cd37c2bd08352419f5f0e03214",
|
| 25 |
+
"data/raw/numina/data/train-00001-of-00003.parquet": "bc48fdddc1ab4e559727ad4f1f03b0263785c1c16b7964fb885fba07e18d6a39",
|
| 26 |
+
"data/raw/numina/data/train-00002-of-00003.parquet": "951aa899fe2a1b64f5b40c6636372d35b9db4f0b9c922e874d4bf357db64da66"
|
| 27 |
+
},
|
| 28 |
+
"selected_prompt_ids_sha256": "fe2a01533bee1dc88e00c27c003f929fe1ffa476d756f782ed19712ad401307e",
|
| 29 |
+
"selection_method": "seeded hash priority over full eligible deduplicated source; filter complete lengths in priority order",
|
| 30 |
+
"examples": 50000,
|
| 31 |
+
"optimizer_steps": 790,
|
| 32 |
+
"snapshots": [
|
| 33 |
+
{
|
| 34 |
+
"optimizer_step": 79,
|
| 35 |
+
"examples_processed": 5000
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"optimizer_step": 158,
|
| 39 |
+
"examples_processed": 10000
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"optimizer_step": 237,
|
| 43 |
+
"examples_processed": 15000
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"optimizer_step": 316,
|
| 47 |
+
"examples_processed": 20000
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"optimizer_step": 395,
|
| 51 |
+
"examples_processed": 25000
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"optimizer_step": 474,
|
| 55 |
+
"examples_processed": 30000
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"optimizer_step": 553,
|
| 59 |
+
"examples_processed": 35000
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"optimizer_step": 632,
|
| 63 |
+
"examples_processed": 40000
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"optimizer_step": 711,
|
| 67 |
+
"examples_processed": 45000
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"optimizer_step": 790,
|
| 71 |
+
"examples_processed": 50000
|
| 72 |
+
}
|
| 73 |
+
]
|
| 74 |
+
}
|
provenance/original/selection_config.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"id": "Qwen/Qwen2.5-1.5B",
|
| 4 |
+
"revision": "8faed761d45a263340a0528343f099c05c9a4323"
|
| 5 |
+
},
|
| 6 |
+
"dataset": {
|
| 7 |
+
"id": "AI-MO/NuminaMath-1.5",
|
| 8 |
+
"revision": "1b05109f9e5c1ad06c0663519502416c30b300f8",
|
| 9 |
+
"split": "train",
|
| 10 |
+
"available_rows": 896215,
|
| 11 |
+
"files": [
|
| 12 |
+
"data/train-00000-of-00003.parquet",
|
| 13 |
+
"data/train-00001-of-00003.parquet",
|
| 14 |
+
"data/train-00002-of-00003.parquet"
|
| 15 |
+
]
|
| 16 |
+
},
|
| 17 |
+
"selection": {
|
| 18 |
+
"examples": 50000,
|
| 19 |
+
"seed": 42,
|
| 20 |
+
"candidate_multiplier": 3,
|
| 21 |
+
"require_problem_valid": "Yes",
|
| 22 |
+
"require_solution_valid": "Yes",
|
| 23 |
+
"exclude_sources": [
|
| 24 |
+
"amc_aime",
|
| 25 |
+
"metamath"
|
| 26 |
+
],
|
| 27 |
+
"maximum_prompt_tokens": 1024,
|
| 28 |
+
"overlength_policy": "reject",
|
| 29 |
+
"preserve_raw_text": true
|
| 30 |
+
},
|
| 31 |
+
"training": {
|
| 32 |
+
"epochs": 1,
|
| 33 |
+
"learning_rate": 1e-05,
|
| 34 |
+
"global_batch_size": 64,
|
| 35 |
+
"micro_batch_size": 1,
|
| 36 |
+
"maximum_sequence_tokens": 4096,
|
| 37 |
+
"warmup_ratio": 0.03,
|
| 38 |
+
"scheduler": "cosine",
|
| 39 |
+
"weight_decay": 0.01,
|
| 40 |
+
"gradient_clip": 1.0,
|
| 41 |
+
"packing": false,
|
| 42 |
+
"snapshot_examples": 5000,
|
| 43 |
+
"keep_all_checkpoints": true,
|
| 44 |
+
"system_prompt": "Solve the mathematical problem and explain your reasoning.",
|
| 45 |
+
"loss": "completion_only_token_mean",
|
| 46 |
+
"finetuning": "full_parameters"
|
| 47 |
+
},
|
| 48 |
+
"topology": {
|
| 49 |
+
"nodes": 2,
|
| 50 |
+
"gpus_per_node": 8,
|
| 51 |
+
"minimum_gpu_memory_gib": 79,
|
| 52 |
+
"maximum_hp_gpus": 18,
|
| 53 |
+
"master_port": 29571,
|
| 54 |
+
"timeout_seconds": 1800,
|
| 55 |
+
"node_gpu_counts": [
|
| 56 |
+
8,
|
| 57 |
+
9
|
| 58 |
+
],
|
| 59 |
+
"minimum_gpu_memory_gib_by_node": [
|
| 60 |
+
79,
|
| 61 |
+
39
|
| 62 |
+
],
|
| 63 |
+
"secondary_nodes": [
|
| 64 |
+
"deep-chungus-3"
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
"runtime": {
|
| 68 |
+
"profile": "prime-rl",
|
| 69 |
+
"source_hashes": {
|
| 70 |
+
"prime_rl.trainer.sft.train": "ac5f90594634bf3c57d1770ba6a169ae45fc9f541e25222a27c2e1b0c818e298",
|
| 71 |
+
"prime_rl.trainer.ckpt": "c7488f3ded3b56bb0633b75b361054d9df135b723bf4d9dd0909672a39a9d7ee"
|
| 72 |
+
},
|
| 73 |
+
"expected_packages": {
|
| 74 |
+
"torch": "2.11.0+cu128",
|
| 75 |
+
"transformers": "5.6.2"
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
"benchmark_exclusions": [
|
| 79 |
+
{
|
| 80 |
+
"id": "HuggingFaceH4/MATH-500",
|
| 81 |
+
"revision": "6e4ed1a2a79af7d8630a6b768ec859cb5af4d3be",
|
| 82 |
+
"file": "test.jsonl",
|
| 83 |
+
"question_key": "problem",
|
| 84 |
+
"count": 500
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"id": "HuggingFaceH4/aime_2024",
|
| 88 |
+
"revision": "2fe88a2f1091d5048c0f36abc874fb997b3dd99a",
|
| 89 |
+
"file": "data/train-00000-of-00001.parquet",
|
| 90 |
+
"question_key": "problem",
|
| 91 |
+
"count": 30
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"id": "math-ai/amc23",
|
| 95 |
+
"revision": "80815d37005feb82cd7f8fbc6901d5d3eff43057",
|
| 96 |
+
"file": "test-00000-of-00001.parquet",
|
| 97 |
+
"question_key": "question",
|
| 98 |
+
"count": 40
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"launch_status": "not_approved"
|
| 102 |
+
}
|
provenance/original/training_loader.py
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import random
|
| 3 |
+
from collections import defaultdict
|
| 4 |
+
|
| 5 |
+
from core import ROOT, Plan, completion_mask, config, digest, world_size
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class PreparedLoader:
|
| 9 |
+
def __init__(self):
|
| 10 |
+
import pyarrow as pa
|
| 11 |
+
|
| 12 |
+
self.cfg = config()
|
| 13 |
+
self.rank = int(os.environ["RANK"])
|
| 14 |
+
self.world = int(os.environ["WORLD_SIZE"])
|
| 15 |
+
expected = world_size(self.cfg)
|
| 16 |
+
if self.world != expected:
|
| 17 |
+
raise ValueError("Actual distributed world differs from the prepared topology")
|
| 18 |
+
training = self.cfg["training"]
|
| 19 |
+
self.plan = Plan(self.cfg["selection"]["examples"], training["snapshot_examples"], training["global_batch_size"], self.world)
|
| 20 |
+
self.mapping = pa.memory_map(str(ROOT / "data/train.arrow"), "r")
|
| 21 |
+
self.table = pa.ipc.open_file(self.mapping).read_all()
|
| 22 |
+
if len(self.table) != self.plan.examples:
|
| 23 |
+
raise ValueError("Prepared example count differs")
|
| 24 |
+
self.order = list(range(len(self.table)))
|
| 25 |
+
random.Random(self.cfg["selection"]["seed"]).shuffle(self.order)
|
| 26 |
+
self.cursor = 0
|
| 27 |
+
self.num_samples, self.num_tokens = defaultdict(int), defaultdict(int)
|
| 28 |
+
self.input_tokens = 0
|
| 29 |
+
self.dataset = self
|
| 30 |
+
self.manifest_hash = digest(ROOT / "data/manifest.json")
|
| 31 |
+
|
| 32 |
+
@property
|
| 33 |
+
def step(self):
|
| 34 |
+
return self.plan.processed(self.cursor)
|
| 35 |
+
|
| 36 |
+
@property
|
| 37 |
+
def epoch(self):
|
| 38 |
+
return self.step / self.plan.examples
|
| 39 |
+
|
| 40 |
+
def __iter__(self):
|
| 41 |
+
return self
|
| 42 |
+
|
| 43 |
+
def __next__(self):
|
| 44 |
+
import torch
|
| 45 |
+
|
| 46 |
+
if self.cursor == self.plan.total_steps * self.plan.accumulation:
|
| 47 |
+
raise StopIteration
|
| 48 |
+
index = self.plan.index(self.cursor, self.rank)
|
| 49 |
+
dummy = index is None
|
| 50 |
+
row = self.table.slice(self.order[0 if dummy else index], 1).to_pylist()[0]
|
| 51 |
+
tokens, prefix = row["input_ids"], row["prompt_length"]
|
| 52 |
+
if not 0 < prefix < len(tokens) <= self.cfg["training"]["maximum_sequence_tokens"]:
|
| 53 |
+
raise ValueError("Prepared completion boundary or sequence length is invalid")
|
| 54 |
+
length = len(tokens) - 1
|
| 55 |
+
mask = torch.tensor(completion_mask(tokens, prefix, dummy), dtype=torch.bool)
|
| 56 |
+
if not dummy:
|
| 57 |
+
self.num_samples["numina"] += 1
|
| 58 |
+
self.num_tokens["numina"] += int(mask.sum())
|
| 59 |
+
self.input_tokens += length
|
| 60 |
+
self.cursor += 1
|
| 61 |
+
return {"input_ids": torch.tensor(tokens[:-1], dtype=torch.long).unsqueeze(0),
|
| 62 |
+
"target_ids": torch.tensor(tokens[1:], dtype=torch.long).unsqueeze(0),
|
| 63 |
+
"position_ids": torch.arange(length, dtype=torch.long).unsqueeze(0),
|
| 64 |
+
"loss_mask": mask.unsqueeze(0), "seq_lens": torch.tensor([length], dtype=torch.long)}
|
| 65 |
+
|
| 66 |
+
def state_dict(self):
|
| 67 |
+
import numpy as np
|
| 68 |
+
import torch
|
| 69 |
+
|
| 70 |
+
return {"cursor": self.cursor, "rank": self.rank, "world": self.world, "manifest_sha256": self.manifest_hash,
|
| 71 |
+
"cpu_rng": torch.get_rng_state(), "cuda_rng": torch.cuda.get_rng_state(),
|
| 72 |
+
"python_rng": random.getstate(), "numpy_rng": np.random.get_state(),
|
| 73 |
+
"num_samples": dict(self.num_samples), "num_tokens": dict(self.num_tokens), "input_tokens": self.input_tokens}
|
| 74 |
+
|
| 75 |
+
def load_state_dict(self, state):
|
| 76 |
+
import numpy as np
|
| 77 |
+
import torch
|
| 78 |
+
|
| 79 |
+
if (state["rank"], state["world"], state["manifest_sha256"]) != (self.rank, self.world, self.manifest_hash):
|
| 80 |
+
raise ValueError("Resume rank, topology or dataset contract differs; no fallback to rank zero")
|
| 81 |
+
if not 0 <= state["cursor"] <= self.plan.total_steps * self.plan.accumulation or state["cursor"] % self.plan.accumulation:
|
| 82 |
+
raise ValueError("Saved cursor is not at an optimizer boundary")
|
| 83 |
+
self.cursor = state["cursor"]
|
| 84 |
+
self.num_samples.update(state["num_samples"])
|
| 85 |
+
self.num_tokens.update(state["num_tokens"])
|
| 86 |
+
self.input_tokens = state["input_tokens"]
|
| 87 |
+
torch.set_rng_state(state["cpu_rng"])
|
| 88 |
+
torch.cuda.set_rng_state(state["cuda_rng"])
|
| 89 |
+
random.setstate(state["python_rng"])
|
| 90 |
+
np.random.set_state(state["numpy_rng"])
|
provenance/retained_45k_export.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"at": "2026-10-13T22:26:35.779656+00:00",
|
| 3 |
+
"teacher_dataset": {
|
| 4 |
+
"id": "AI-MO/NuminaMath-1.5",
|
| 5 |
+
"revision": "1b05109f9e5c1ad06c0663519502416c30b300f8",
|
| 6 |
+
"split": "train",
|
| 7 |
+
"available_rows": 896215,
|
| 8 |
+
"files": [
|
| 9 |
+
"data/train-00000-of-00003.parquet",
|
| 10 |
+
"data/train-00001-of-00003.parquet",
|
| 11 |
+
"data/train-00002-of-00003.parquet"
|
| 12 |
+
]
|
| 13 |
+
},
|
| 14 |
+
"initial_model": {
|
| 15 |
+
"id": "Qwen/Qwen2.5-1.5B",
|
| 16 |
+
"revision": "8faed761d45a263340a0528343f099c05c9a4323"
|
| 17 |
+
},
|
| 18 |
+
"optimizer_step": 711,
|
| 19 |
+
"examples_processed": 45000,
|
| 20 |
+
"contract_id": "eeb34a30b8666f32f58755d2ad3f1d969f79cbd0d90ed7d4ecbf13b100d0ac14",
|
| 21 |
+
"native_metadata_sha256": "2dfac97a4f7621236340491cc0946e7c62aaeead005f4cb0387265891dbc02b1",
|
| 22 |
+
"weights_sha256": {
|
| 23 |
+
"model-00001-of-00002.safetensors": "8de13194076e91ba55881c618fa89913e0963dff2b21be29398737705f6b2c52",
|
| 24 |
+
"model-00002-of-00002.safetensors": "51894ebf01457a02fae8a73b9a2d6c8e43d4644a77333f86564a8a14ee7196d0"
|
| 25 |
+
},
|
| 26 |
+
"saved_precision": "float32",
|
| 27 |
+
"retention": "all"
|
| 28 |
+
}
|
publication.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"publication_version": 1,
|
| 3 |
+
"raw_question_response_text": "unchanged",
|
| 4 |
+
"seed": 42,
|
| 5 |
+
"sources": {
|
| 6 |
+
"original": {
|
| 7 |
+
"root": "/mnt/nfs/home/mohamadzbib/projects/DistillationProject",
|
| 8 |
+
"config": "configs/experiment.json",
|
| 9 |
+
"config_sha256": "7cb618ffedcee2ceb662a5080deea283c6596d17be69cce84b11f3e4155c0bd5",
|
| 10 |
+
"manifest_sha256": "616b49cfb824a4099a5ce9a29e0d6bd665cd876d88f31d28a17cd865b5df6edb",
|
| 11 |
+
"loader_sha256": "adbf05e429945472460b5b69a5652939ac9511b8b630b84a19ff4f73f667ffd2"
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
"details": {
|
| 15 |
+
"prepared_examples": 50000,
|
| 16 |
+
"retained_checkpoint_examples": 45000,
|
| 17 |
+
"not_in_retained_45k_checkpoint": 5000,
|
| 18 |
+
"retained_checkpoint_optimizer_step": 711,
|
| 19 |
+
"training_order": "seed42 permutation of prepared row indices",
|
| 20 |
+
"maximum_sequence_tokens": 4096,
|
| 21 |
+
"overlength_policy": "reject"
|
| 22 |
+
},
|
| 23 |
+
"files": {
|
| 24 |
+
"data/prepared-50000.parquet": {
|
| 25 |
+
"sha256": "117a4a06ac35eb24bb6a0fa843ef6955d87a187eac38ef97e648da338ab83f2d",
|
| 26 |
+
"bytes": 24521313,
|
| 27 |
+
"rows": 50000
|
| 28 |
+
},
|
| 29 |
+
"data/committed-45000.parquet": {
|
| 30 |
+
"sha256": "d189768b7dd1e1ec9ea1d29f3523a0dbf8c5d32f266f78bb2295da8b0bca8287",
|
| 31 |
+
"bytes": 22042171,
|
| 32 |
+
"rows": 45000
|
| 33 |
+
},
|
| 34 |
+
"data/not-in-45k-checkpoint-5000.parquet": {
|
| 35 |
+
"sha256": "36ad149ee135e52547315a4ddee98ed47a4e58bf0ad734cf562ea35c32978fac",
|
| 36 |
+
"bytes": 2490539,
|
| 37 |
+
"rows": 5000
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
}
|