Upload dedup_report.json with huggingface_hub
Browse files- dedup_report.json +75 -0
dedup_report.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "HONEST true-unique: FineWeb-clean(en.parquet) dedup vs minimal-en-corpus-5b + OpenStax MC semantic residual",
|
| 3 |
+
"generated": "2026-09-22 14:13:31",
|
| 4 |
+
"method": {
|
| 5 |
+
"tokenizer": "C:/Projekty/datasets/gollem-v5-models/tokenizer.json (nanogpt-12k, vocab 12288, EOS=12285); identical to corpus tokenizer",
|
| 6 |
+
"token_convention": "per-doc tokens = len(BPE.ids)+1 (one EOS/doc), matches fineweb_edu_clean.bin & corpus train.bin",
|
| 7 |
+
"normalize": "lowercase + whitespace-collapse + strip",
|
| 8 |
+
"fineweb_match": "OVERLAP if head-hash(sha1 first2000) OR tail-hash(sha1 last2000) OR document_id in corpus-fineweb set",
|
| 9 |
+
"device": "CPU-only (no GPU); not merged into canonical; no git commit"
|
| 10 |
+
},
|
| 11 |
+
"existing_corpus": {
|
| 12 |
+
"repo": "SlayerLab/minimal-en-corpus-5b",
|
| 13 |
+
"train_tokens_bpe12k": 5396605407,
|
| 14 |
+
"train_docs": 3968467,
|
| 15 |
+
"source": "data/train.idx idx[-1] == data/manifest train.tokens == train.bin_bytes/2 == qa.json (all agree)",
|
| 16 |
+
"note": "EXACT. The pivot placeholder '2.70B' is ~2x too low (2.70B ~= tokens/2). Corpus already contains fineweb-edu ~1.101B tok / 877,129 docs (source_id=fineweb-edu, scheme 'fineweb-edu:sample-10BT:<dump>:<idx>').",
|
| 17 |
+
"fineweb_edu_in_corpus_docs_scanned": 877129,
|
| 18 |
+
"fineweb_edu_in_corpus_tokens_mixture_quota": 1101114342
|
| 19 |
+
},
|
| 20 |
+
"fineweb_new": {
|
| 21 |
+
"source_parquet": "C:/Projekty/datasets/build/en/en.parquet (FineWeb-Edu-100BT-sample; document_id 'fineweb-edu:<row>')",
|
| 22 |
+
"en_parquet_total_docs": 2384000,
|
| 23 |
+
"decontam_dropped_docs": 3184,
|
| 24 |
+
"clean_docs": 2380816,
|
| 25 |
+
"overlap_docs": 42846,
|
| 26 |
+
"overlap_rate_pct": 1.7996,
|
| 27 |
+
"overlap_signals": {
|
| 28 |
+
"head_sha1": 39788,
|
| 29 |
+
"tail_sha1": 40595,
|
| 30 |
+
"document_id": 0,
|
| 31 |
+
"note": "document_id=0: corpus (sample-10BT) and en.parquet (sample-100BT) use different id schemes; ALL overlap caught by content-hash. head+tail caught ~8% more than head-only."
|
| 32 |
+
},
|
| 33 |
+
"new_unique_docs": 2337970,
|
| 34 |
+
"clean_bin_total_tokens": 2813489953,
|
| 35 |
+
"overlap_tokens_bpe12k": 57241804,
|
| 36 |
+
"new_unique_tokens_bpe12k": 2756248149,
|
| 37 |
+
"new_tokens_derivation": "bin_total(2,813,489,953) - overlap(57,241,804); cross-validated: overlap tokens via bin EOT-segment ranges == via re-tokenization (exact match)",
|
| 38 |
+
"interpretation": "sample-10BT and sample-100BT are ~independent draws: only 1.80% of en.parquet clean docs duplicate the corpus. 98.2% is genuinely new."
|
| 39 |
+
},
|
| 40 |
+
"openstax": {
|
| 41 |
+
"pre_semantic_tokens_bpe12k": 35185551,
|
| 42 |
+
"pre_semantic_chunks": 50630,
|
| 43 |
+
"semantic_gate": "all-MiniLM-L6-v2 (CPU), sentence-level max-cosine vs 78,963 protected questions, drop >=0.95",
|
| 44 |
+
"sample_size_chunks": 6000,
|
| 45 |
+
"sample_drops_ge_0.95": 12,
|
| 46 |
+
"sample_drop_rate_pct": 0.2,
|
| 47 |
+
"wilson95_ci_pct": [
|
| 48 |
+
0.114,
|
| 49 |
+
0.349
|
| 50 |
+
],
|
| 51 |
+
"est_drop_chunks_over_50630": 101,
|
| 52 |
+
"est_token_impact": 70371,
|
| 53 |
+
"final_clean_tokens_bpe12k_EST": 35115180,
|
| 54 |
+
"status": "ESTIMATED from sample (full 781k-sentence embed too slow on CPU; impact negligible <0.1M tok). Consistent with prior spotcheck (1/500=0.2%).",
|
| 55 |
+
"note": "12/6000 sample chunks hit cosine 1.0 (verbatim MC-question residual surviving any8) -> semantic gate would remove them."
|
| 56 |
+
},
|
| 57 |
+
"total_true_unique": {
|
| 58 |
+
"existing_tokens": 5396605407,
|
| 59 |
+
"fineweb_new_tokens": 2756248149,
|
| 60 |
+
"openstax_final_tokens_est": 35115180,
|
| 61 |
+
"TOTAL_tokens_est": 8187968736,
|
| 62 |
+
"ge_5B": true,
|
| 63 |
+
"margin_over_5B": 3187968736,
|
| 64 |
+
"no_double_count": "fineweb-new deduped vs corpus fineweb; corpus has no OpenStax (README source list). Cross-source dup (new-fineweb vs non-fineweb corpus) out of scope / expected negligible.",
|
| 65 |
+
"if_existing_were_2.70B_placeholder": {
|
| 66 |
+
"TOTAL": 5491363329,
|
| 67 |
+
"ge_5B": true
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"artifacts": {
|
| 71 |
+
"overlap_docs": "C:/Projekty/datasets/decontam/fineweb_overlap_docs.jsonl (42,846 docs: document_id,row,clean_ordinal,bin token/byte ranges for merge-remove)",
|
| 72 |
+
"clean_bin": "C:/Projekty/datasets/decontam/fineweb_edu_clean.bin",
|
| 73 |
+
"openstax_bin": "C:/Projekty/datasets/decontam/openstax_clean.bin"
|
| 74 |
+
}
|
| 75 |
+
}
|