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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- ============================================================
|
| 2 |
+
DATASET_CARD v4 — DRAFT (integrator: Hart N-02, 2026-09-12)
|
| 3 |
+
Sekcje: PII+Licensing = Wartownik (verbatim z KARTA-HF-sekcje-wartownik.md)
|
| 4 |
+
Tabele danych/sha = Monter (liczby z bajtow; FINAL po tokenizacji)
|
| 5 |
+
Placeholdery — WSZYSTKIE ZAMKNIETE (karta gotowa do push, 2026-09-13):
|
| 6 |
+
GATE-PENDING: ZAMKNIETY (0.0018% ≤351/19.32M, sha-tie 8/8, GREEN Wartownika 2026-09-13)
|
| 7 |
+
V32K-FINAL: ZAMKNIETY (16.58B V32k / 19.32M docs / per-register sha - manifest 2026-09-13)
|
| 8 |
+
REPO-NAME: KLEPNIETE = SlayerLab/gollem-corpus-16b-pl (16.58B V32k measured; floor-name = uczciwe "16B+")
|
| 9 |
+
PAWEL-HANDLE: ZAMKNIETY = ppuzio (huggingface.co/ppuzio, potwierdzone Arek 2026-09-13)
|
| 10 |
+
DEDUP-FINAL: ZAMKNIETY (575 exact / 974,277 near / 2,632 decontam / retencja 95.18% - build_25b full 2026-09-12)
|
| 11 |
+
============================================================ -->
|
| 12 |
+
---
|
| 13 |
+
license: other
|
| 14 |
+
license_name: per-source
|
| 15 |
+
license_link: "#license"
|
| 16 |
+
language:
|
| 17 |
+
- pl
|
| 18 |
+
task_categories:
|
| 19 |
+
- text-generation
|
| 20 |
+
pretty_name: GoLLeM Corpus v4 PL (16B tokens)
|
| 21 |
+
size_categories:
|
| 22 |
+
- 10M<n<100M
|
| 23 |
+
configs:
|
| 24 |
+
- config_name: default
|
| 25 |
+
data_files: "data/default/*.parquet"
|
| 26 |
+
- config_name: cc-by-sa
|
| 27 |
+
data_files: "data/cc-by-sa/*.parquet"
|
| 28 |
+
- config_name: web
|
| 29 |
+
data_files: "data/web/*.parquet"
|
| 30 |
+
tags:
|
| 31 |
+
- pretraining
|
| 32 |
+
- polish
|
| 33 |
+
- gollem
|
| 34 |
+
- from-scratch
|
| 35 |
+
- pii-scrubbed
|
| 36 |
+
- deduplicated
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
# GoLLeM Corpus v4 PL — SlayerLab/gollem-corpus-16b-pl
|
| 40 |
+
|
| 41 |
+
**The exact pretraining corpus of the Polish base model GoLLeM v4 (250M, trained from
|
| 42 |
+
scratch)** — released *before* training, so the published bytes are byte-identical
|
| 43 |
+
(sha-tied) to what the model will see. Successor of
|
| 44 |
+
[`SlayerLab/gollem-corpus-2b-pl`](https://huggingface.co/datasets/SlayerLab/gollem-corpus-2b-pl)
|
| 45 |
+
(the v2/v3 corpus), scaled ~7.5x with per-record provenance this time.
|
| 46 |
+
|
| 47 |
+
- **16.58B unique tokens** (GoLLeM V32k tokenizer, measured) =
|
| 48 |
+
~1.96B curated + 14.62B cleaned Polish web.
|
| 49 |
+
- **Per-record `license`, `is_share_alike`, `register`, `source_id` columns** — no blanket license.
|
| 50 |
+
- **Three partitions** (Dynaword-style): `default` (permissive), `cc-by-sa` (share-alike
|
| 51 |
+
sources), `web` (HPLT v3 PL, TDM basis — see [License](#license)).
|
| 52 |
+
- PII-scrubbed (two-stage pipeline + independent gate), deduplicated (license-aware
|
| 53 |
+
MinHash+LSH), decontaminated against our evaluation sets.
|
| 54 |
+
|
| 55 |
+
## Composition
|
| 56 |
+
|
| 57 |
+
Register sizes (V32k tokens, measured this build; sha256 = train `.bin` per register, full set in
|
| 58 |
+
[`_manifest.json`](./_manifest.json)):
|
| 59 |
+
|
| 60 |
+
| register | V32k tokens | docs | train-bin sha256 | main sources |
|
| 61 |
+
|---|---:|---:|---|---|
|
| 62 |
+
| encyclopedic | 984,163,312 | 1,707,741 | `98a3da0e979c` | Wikipedia PL, Wikisource (CC-BY-SA) |
|
| 63 |
+
| science | 522,045,834 | 41,484 | `a5449de3307f` | Biblioteka Nauki (per-record license) |
|
| 64 |
+
| news | 210,859,436 | 355,740 | `cf156a47cc20` | polish_news, elka, Wikinews, Global Voices |
|
| 65 |
+
| legal/gov | 176,224,723 | 99,152 | `25a5fe007936` | Dziennik Ustaw, gov.pl (PD; 15% register cap) |
|
| 66 |
+
| literary | 60,405,659 | 4,228 | `b91f051fc579` | Wolne Lektury, ELTeC-pol (PD/CC-BY-SA) |
|
| 67 |
+
| mixed | 1,621,359 | 18,348 | `992d76483f8d` | NKJP-1M |
|
| 68 |
+
| **web** | **14,624,198,792** | 17,092,459 | `5045b38564b5` | HPLT v3 PL, cleaned + scrubbed |
|
| 69 |
+
| **total** | **16,579,519,115** | 19,319,152 | | train 16,495,148,611 + heldout 84,467,087 |
|
| 70 |
+
|
| 71 |
+
Held-out (val split, NEVER trained): 84,467,087 V32k tokens / 96,583 docs (sha256 `c4b4990fef60`,
|
| 72 |
+
deterministic `sha1(document_id) % 200`). 18 parquet shards across 3 partitions.
|
| 73 |
+
|
| 74 |
+
Design decisions (documented in the build experiment, DS25B-EXP1):
|
| 75 |
+
- **QA sources excluded from base:** PoQuAD is a published Polish QA benchmark — its
|
| 76 |
+
documents in pretraining data would leak evaluation (held out as eval-only). PolQA is
|
| 77 |
+
deferred to the SFT stage (Q/A format skews base-model style).
|
| 78 |
+
- **1000 Novels excluded** — residual-author-rights concern despite the CC-BY label
|
| 79 |
+
(mirrors upstream Dynaword's own handling).
|
| 80 |
+
- **Legal register capped at 15%** — the dominant failure mode of open Polish corpora is
|
| 81 |
+
legalese skew (71.8% in polish-dynaword v0.2.1); this corpus caps it by construction.
|
| 82 |
+
- **Token counts** are reported in the GoLLeM V32k tokenizer (vocab 32,000). Document
|
| 83 |
+
counts are tokenizer-agnostic; re-tokenize with your own tokenizer as needed.
|
| 84 |
+
|
| 85 |
+
## Quality benchmarks (this corpus)
|
| 86 |
+
|
| 87 |
+
All numbers from **full-corpus scans of the published artifact** (not samples), pipeline scripts in the build repo:
|
| 88 |
+
|
| 89 |
+
| check | method | result |
|
| 90 |
+
|---|---|---|
|
| 91 |
+
| exact duplicates | blake2b/sha8, normalized | 575 docs (0.003%) removed |
|
| 92 |
+
| near duplicates | MinHash K=32, 8 bands, word 5-grams (J≈0.6) | 4.80% removed (974,277 of 20,296,635 docs; total removal incl. exact+decontam 4.82%, full-web scan; a 15k sample had estimated 0.03–0.14% — sampling *underestimates* long-tail web duplication, which is why we only report full scans) |
|
| 93 |
+
| eval decontamination | exact + word 8-gram fingerprints vs d3_eval, llmzszl, MultiBLiMP, eval_admission | 2,632 docs (0.013%) removed |
|
| 94 |
+
| retention | | 95.18% kept (19,319,152 / 20,296,635; falsification threshold pre-registered at >15% removal — not met) |
|
| 95 |
+
| license-aware dedup | duplicate survivor chosen by permissiveness (CC0 > CC-BY > CC-BY-SA) | implemented; effect small here (cross-license dups pre-excluded), method contributed for general corpora |
|
| 96 |
+
| PII residual (post-gate) | independent full scan, `check ⊋ scrub` | 0.0018% (≤351 / 19,319,152 docs; sha-tie 8/8 verified) |
|
| 97 |
+
| trainability smoke | 300 docs/register schema+content audit | schema OK, 0 empty docs, scrub markers present, registers consistent |
|
| 98 |
+
|
| 99 |
+
## Reference downstream results (predecessor models)
|
| 100 |
+
|
| 101 |
+
The v4 model trained on this corpus will publish its own benchmarks. For calibration,
|
| 102 |
+
models trained on this pipeline's predecessor corpus (gollem-corpus-2b-pl, same source
|
| 103 |
+
family and cleaning approach):
|
| 104 |
+
|
| 105 |
+
- **GoLLeM-110M-PL-v3** (2 epochs / ~2B V32k): PL sentiment polemo2 56.5 acc /
|
| 106 |
+
8tags 37.2 (bench_pl harness; +9.3/+5.7 over an independently built 45M PL model on the
|
| 107 |
+
same harness). Cross-lingual control (lm-eval 0.4.12 zero-shot): BLiMP .546,
|
| 108 |
+
SciQ .620, LAMBADA-EN ppl 10508 — i.e. a genuinely Polish model, near-random on
|
| 109 |
+
English, as expected.
|
| 110 |
+
- Honest framing: at 110M/2B tokens these are fluency/completion models, ~random on
|
| 111 |
+
zero-shot classification (8tags .11 vs random .125). v4 (250M / 24B seen tokens,
|
| 112 |
+
DataDecide-style 100:1 overtraining) is the scale-up this corpus exists for.
|
| 113 |
+
|
| 114 |
+
## PII Statement
|
| 115 |
+
|
| 116 |
+
<!-- === SEKCJA WARTOWNIKA (verbatim) === -->
|
| 117 |
+
### Personal Data / PII Processing
|
| 118 |
+
|
| 119 |
+
All text passed a two-stage PII pipeline before inclusion:
|
| 120 |
+
|
| 121 |
+
1. **Scrubbing** (`scrub_pii.py`, Paweł, PR#28 + international-format extension): emails → `[PII]`,
|
| 122 |
+
phone numbers (Polish and international formats, label-anchored and self-labelling `+CC`) → `[Telefon]`,
|
| 123 |
+
PESEL/NIP/REGON/KRS and identity-document numbers (checksum-validated, label-anchored) → `[PII]`,
|
| 124 |
+
bank accounts / IBAN (MOD-97 validated) → `[PII]`. Placeholders are semantic tags, not fake values,
|
| 125 |
+
so no synthetic high-frequency numbers poison the corpus.
|
| 126 |
+
2. **Independent gate** (second reviewer, lens strictly wider than the scrubber — `check ⊋ scrub`):
|
| 127 |
+
full-corpus residual scan on the exact artifact being published (sha-tied, `verify == publish`).
|
| 128 |
+
Residual after independent gate on the published artifacts: ≤351 documents with unredacted contact data out of 19,319,152 (**0.0018%**), all triaged as institutional/business contacts (university department listings, ministry switchboards, travel-guide venues) in edge formats (+0-trunk, legacy 8-digit); no private-person data found in any triaged sample. Verified sha-tied: all 8 manifest checksums independently recomputed and matched.
|
| 129 |
+
|
| 130 |
+
Out of scope by explicit decision (ADR): public-institution donation account numbers, court registry
|
| 131 |
+
numbers (KRS as bare references), emergency numbers (112/997/998/999), timestamps, coordinates, ISBNs.
|
| 132 |
+
|
| 133 |
+
Names of public officials in official/government documents are left intact by design (public-interest
|
| 134 |
+
information, consistent with the source datasets' practice).
|
| 135 |
+
|
| 136 |
+
### Known limitations
|
| 137 |
+
- Numbers damaged at the source (truncated 8-digit forms) may survive scrubbing; measured share is
|
| 138 |
+
included in the residual figure above.
|
| 139 |
+
- The scrubber is regex-based; free-form descriptions of persons are not redacted. The corpus is
|
| 140 |
+
web/official text — downstream users training generative models should apply their own output filters.
|
| 141 |
+
|
| 142 |
+
## License
|
| 143 |
+
|
| 144 |
+
This dataset is a compilation of sources with **per-record license tracking** (`license` and
|
| 145 |
+
`is_share_alike` columns). It is NOT distributed under a single blanket license.
|
| 146 |
+
|
| 147 |
+
| Partition | Sources | License basis |
|
| 148 |
+
|---|---|---|
|
| 149 |
+
| `default` | Wikisource, Wikinews, Wikivoyage (PD/CC0 parts), gov.pl documents, Dziennik Ustaw, Wolne Lektury (PD), NKJP-1M, PoQuAD, ELTeC-pol, Global Voices, news (per-source) | CC0 / public domain / permissive per-source — see per-record `license` column |
|
| 150 |
+
| `cc-by-sa` | Wikipedia (994M tok), Wikibooks, Wikiquote, Biblioteka Nauki (SA parts) | CC-BY-SA-4.0 — share-alike applies to derivatives of the TEXT |
|
| 151 |
+
| `web` | HPLT v3 PL (cleaned web crawl) | see below |
|
| 152 |
+
|
| 153 |
+
**HPLT web partition — legal basis statement (important):** the HPLT project releases its *compilation*
|
| 154 |
+
under CC0, but explicitly does not own the underlying texts ("we do not own any of the text"). We therefore
|
| 155 |
+
do NOT claim CC0 on the web texts themselves. Our redistribution relies on the text-and-data-mining
|
| 156 |
+
framework (Directive (EU) 2019/790, art. 4 — lawful access, opt-out respected at crawl level by HPLT);
|
| 157 |
+
training use falls under the same TDM basis. Users redistributing or re-publishing the raw texts are
|
| 158 |
+
responsible for their own legal review. This mirrors the approach of the Danish Dynaword project.
|
| 159 |
+
|
| 160 |
+
Attribution for curated sources is provided per-source in the table above and per-record in the
|
| 161 |
+
`provenance` column.
|
| 162 |
+
<!-- === KONIEC SEKCJI WARTOWNIKA === -->
|
| 163 |
+
|
| 164 |
+
## How to use
|
| 165 |
+
|
| 166 |
+
```python
|
| 167 |
+
from datasets import load_dataset
|
| 168 |
+
|
| 169 |
+
# permissive partition only
|
| 170 |
+
ds = load_dataset("SlayerLab/gollem-corpus-16b-pl", "default", split="train")
|
| 171 |
+
|
| 172 |
+
# full corpus (all partitions; mind per-partition licenses)
|
| 173 |
+
for cfg in ("default", "cc-by-sa", "web"):
|
| 174 |
+
part = load_dataset("SlayerLab/gollem-corpus-16b-pl", cfg, split="train")
|
| 175 |
+
```
|
| 176 |
+
|
| 177 |
+
Columns: `document_id`, `source_id`, `text`, `register`, `license`, `is_share_alike`,
|
| 178 |
+
`provenance`, `n_tokens_v32k`.
|
| 179 |
+
|
| 180 |
+
## Provenance & reproducibility
|
| 181 |
+
|
| 182 |
+
- Build pipeline (scrub → uniform web subsample → license-aware dedup → decontam →
|
| 183 |
+
assembly) is documented step-by-step with parameters in the build experiment log;
|
| 184 |
+
every shard ships a sha256 in the manifest. Published bytes ARE the verified bytes
|
| 185 |
+
(`verify == publish`, checked post-upload by independent re-download).
|
| 186 |
+
- Curated layer provenance per-source: [`SlayerLab/polish-dynaword`](https://huggingface.co/datasets/SlayerLab/polish-dynaword).
|
| 187 |
+
- Predecessor corpus (v2/v3, 2B): [`SlayerLab/gollem-corpus-2b-pl`](https://huggingface.co/datasets/SlayerLab/gollem-corpus-2b-pl).
|
| 188 |
+
- Model line: [`SlayerLab/GoLLeM-110M-PL-v3`](https://huggingface.co/SlayerLab/GoLLeM-110M-PL-v3) → GoLLeM v4 (250M, this corpus).
|
| 189 |
+
|
| 190 |
+
## Acknowledgements
|
| 191 |
+
|
| 192 |
+
- PII scrubbing: Paweł Puzio ([ppuzio](https://huggingface.co/ppuzio), PR#28 in polish-dynaword)
|
| 193 |
+
- Independent PII gate + international-format fix: Wartownik (N-04, Slayer Kolektyw)
|
| 194 |
+
- License-aware dedup + per-license partitions: Monter (N-03, Slayer Kolektyw)
|
| 195 |
+
- Card integration & training: Hart (N-02, Slayer Kolektyw)
|
| 196 |
+
|
| 197 |
+
**Author:** Arkadiusz Słota / SlayerLab.
|
| 198 |
+
|
| 199 |
+
## Podsumowanie (PL)
|
| 200 |
+
|
| 201 |
+
Dokładny korpus pretreningowy polskiego modelu bazowego **GoLLeM v4 (250M, od zera)** —
|
| 202 |
+
publikowany PRZED treningiem, bajt-w-bajt ten sam zbiór (sha-tied), na którym model będzie
|
| 203 |
+
uczony. 16.58B unikatowych tokenów V32k: ~1.96B kuratorowanych (encyklopedia, nauka, news,
|
| 204 |
+
legal z capem 15%, literatura) + 14.62B oczyszczonego polskiego weba (HPLT v3). Licencje
|
| 205 |
+
per-rekord w trzech partycjach (permissive / CC-BY-SA / web-TDM), PII po dwustopniowym
|
| 206 |
+
scrubie z niezależną bramką (residual 0.0018%), dedup license-aware z pełnego skanu (retencja 95.18%),
|
| 207 |
+
dekontaminacja względem naszych zbiorów ewaluacyjnych.
|