GPT-NL opens its data-cleaning code under Apache 2.0

In short

3 repositories published: data extraction, curation modules, curation pipeline; Apache 2.0 licence of all three; 32 extractors in the extraction code, most for a named source (our count); €13.5M government funding for the GPT-NL project

What is data curation for an AI model?

A language model learns from a very large pile of text. Before training, that pile has to be cleaned: broken characters repaired, junk pages dropped (menus, cookie notices, lists of numbers), copies removed, other languages filtered out and personal details hidden. This step is called data curation, and it shapes what the model knows and how it writes. Most model makers say little about it. GPT-NL's code shows its version step by step.

The three repositories

Extraction. Every document ends up as a row with its text, title, source, author and, notably, its licence and the licence of the dataset it came from. That fits GPT-NL's stated aim of training only on lawfully obtained data and sharing proceeds with copyright holders. The code has 32 extractor folders; 9 handle a file format (CSV, JSONL, PDF, XML and others) and the rest a particular source, several named for Dutch sources such as the national archive (Nationaal Archief), the courts (Rechtspraak), the official government gazette and the Frisian academy (Fryske Akademy).

Modules. The modules README lists the filters, and the pipeline README gives their thresholds. Most are borrowed rules published by others (from the C4, FineWeb, Gopher and Nordic Pile datasets), adapted with language-specific tokenisers. Pages are dropped, for example, if more than 90% of lines start with bullet points, if over 20% of characters are digits, or if they have fewer than two common stop words. A language filter keeps only Dutch and English text it is confident about (a score of at least 0.65). Other modules mask personal data, flag toxic language with two public classifiers (one trained on Dutch hate speech), score text by perplexity (how natural it looks to a small language model) and translate other-language text into Dutch with Google's MADLAD-400 10B translation model. The PII step uses a commercial tool, Private AI, according to the README.

Pipeline. It runs the stages in order: splitting the data into files, normalising characters, heuristic filtering, PII masking, removing exact and near duplicates, and toxic-language detection, with translation as an extra stage. It is built on Hugging Face's open Datatrove library. The repository holds 56 configuration files, many named for a data source, from parliament (Tweede Kamer) and the national library (KB) to public-domain American newspapers. The README notes that translation on one H100 GPU on Snellius takes about 12 seconds per batch of 32 texts.

Public, but not plug-and-play. The pipeline's install file pulls its 15 curation modules (plus an energy-tracking helper) from package servers at TNO. On 30 November 2026 that server answered our request with "unauthorised" (HTTP 401), and two of the package names we tried were not on the public Python index (PyPI). The modules' source is in the modules repository, so they can be built by hand. The extraction README itself says the code is "an effort to support this transparency and fairness, not to be seen as a working product of any kind".

Is GPT-NL open source?

The announcement is clear that openness has limits. GPT-NL uses "mixed licensing": the source code, the training dataset and the model weights each get a separate licence. Code and data it is allowed to share will be open source. The weights are not: they are available on request under one of two licences, one for research and one for other uses. Research access costs a nominal fee after registration, according to GPT-NL's FAQ; the second licence (which includes commercial use) is paid.

The reason given is the funding. The project received 13.5 million euro from the Netherlands Enterprise Agency (RVO) for the Ministry of Economic Affairs, awarded in October 2023. The subsidy terms say upkeep costs must be earned back, and more training rounds will need income, from licences or further grants.

The training data also has commercial owners. The planning page describes four kinds of data: private data from providers on a Content Board, publicly available data (including a copyright-compliant CC BY and CC0 extract of Common Crawl), synthetic data and code. It mentions 300 billion text tokens plus 150 billion of code, and a training start in 2025 on 370 billion unique tokens.

What followed

The March page called this "the first step" of a wider roadmap, with the training pipeline and evaluation frameworks to come in the following months. GitHub shows that part of it arrived:

19 March 2026: the three data repositories are announced. 29 June 2026: a dataloader repository appears, turning curated text into tokenised training data (Apache 2.0). 6 October 2026: three training repositories appear: Pytorch-Native ("pre-training and evaluation of the GPT-NL model") and GPT-NL's forks of the open OLMo-core training library and OLMo's in-loop evaluation tasks, all Apache 2.0.

The organisation also holds a Wikidata synthetic-data generator with no licence listed. The dates above are when GitHub says each repository was created; it does not show when each one went public.

Why it matters

With GPT-NL's code, a researcher can see exactly which filters a Dutch model's text went through, or reuse the Dutch-specific pieces (extractors, toxicity and PII steps) for another project. The announcement names one: TrustLLM, an EU Horizon Europe project on European language models. What the code cannot show is the data itself, much of which is licensed, or how the model performs.

Official channels of GPT-NL: Website · LinkedIn

Sources

Sources

Related stories

More from AI in Europe

All stories from AI in Europe