Text Generation
Transformers
Safetensors
Dutch
English
qwen3
dutch
nederlands
instruction-tuned
question-answering
summarization
conversational
text-generation-inference
Instructions to use ToetsChecker-Research/boterham with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ToetsChecker-Research/boterham with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ToetsChecker-Research/boterham") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ToetsChecker-Research/boterham") model = AutoModelForCausalLM.from_pretrained("ToetsChecker-Research/boterham", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ToetsChecker-Research/boterham with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ToetsChecker-Research/boterham" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ToetsChecker-Research/boterham", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ToetsChecker-Research/boterham
- SGLang
How to use ToetsChecker-Research/boterham with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ToetsChecker-Research/boterham" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ToetsChecker-Research/boterham", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ToetsChecker-Research/boterham" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ToetsChecker-Research/boterham", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ToetsChecker-Research/boterham with Docker Model Runner:
docker model run hf.co/ToetsChecker-Research/boterham
Modelkaart en figuren
Browse files- .gitattributes +6 -0
- README.md +185 -71
- figuren/fig1-voortrainen.png +3 -0
- figuren/fig3-euroeval.png +3 -0
- figuren/fig5-kosten.png +3 -0
- figuren/fig6-scorebord.png +3 -0
- figuren/fig7-uitstoot.png +3 -0
- figuren/fig8-corpus.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
figuren/fig1-voortrainen.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
figuren/fig3-euroeval.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
figuren/fig5-kosten.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
figuren/fig6-scorebord.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
figuren/fig7-uitstoot.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
figuren/fig8-corpus.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -18,44 +18,55 @@ tags:
|
|
| 18 |
|
| 19 |
# Boterham 0.5B
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
#
|
| 24 |
|
| 25 |
-
|
| 26 |
-
ToetsChecker Research. It was pretrained from scratch on public-domain and
|
| 27 |
-
permissively licensed text only, and then instruction-tuned for working with a
|
| 28 |
-
document in the prompt: answer a question from a passage, say "Ik weet dit
|
| 29 |
-
niet." when the answer is not there, and summarize.
|
| 30 |
|
| 31 |
-
|
| 32 |
-
The September release (round 1) is still available under the git tag
|
| 33 |
-
`ronde-1`.
|
| 34 |
|
| 35 |
-
|
| 36 |
-
architectures are identical. **Boterham does not use Qwen weights and is not a
|
| 37 |
-
fine-tune of Qwen**; tokenizer and weights were trained from scratch.
|
| 38 |
|
| 39 |
-
|
|
| 40 |
|---|---|
|
| 41 |
| Parameters | 488.3M total; 447.4M excluding tied token embeddings |
|
| 42 |
| Architecture | Decoder-only Transformer, RMSNorm, GQA, RoPE, SwiGLU, QK-norm |
|
| 43 |
| Layers / hidden size | 26 / 1,280 |
|
| 44 |
| Attention heads | 20 query heads, 4 key/value heads |
|
| 45 |
| Context length | 2,048 tokens |
|
| 46 |
-
| Vocabulary | 32,002-token byte-level BPE |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
| Languages | Primarily Dutch; some English |
|
| 48 |
| License | Apache 2.0 |
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
### Results
|
| 51 |
|
| 52 |
-
EuroEval 18.0.0, ten iterations per task, 95% interval over the
|
| 53 |
-
WikiLingua-nl
|
| 54 |
-
BERTScore, the metric behind the GPT-NL figure.
|
| 55 |
|
| 56 |
The fair opponent is GPT-NL after instruction tuning (epoch 2, "our data (IT)"
|
| 57 |
-
in figure 21 of TNO report GPTNL-DEL-4002)
|
| 58 |
-
fifty times as
|
|
|
|
| 59 |
|
| 60 |
| Task | Metric | Boterham 0.5B r4 | GPT-NL IT | GPT-NL base |
|
| 61 |
|---|---|---:|---:|---:|
|
|
@@ -69,46 +80,60 @@ fifty times as many.
|
|
| 69 |
|
| 70 |
Boterham is ahead of the instruction-tuned GPT-NL on grammar, reading and
|
| 71 |
names, and behind it on sentiment, summarization, common sense and knowledge.
|
| 72 |
-
On MMLU-nl and HellaSwag-nl both models are at chance level
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
### What it is good at, and what not
|
| 76 |
|
| 77 |
-
Good: short
|
| 78 |
"Ik weet dit niet." when the text does not contain the answer.
|
| 79 |
|
| 80 |
Weak: summaries are short and mostly take the opening sentence of the text.
|
| 81 |
Facts without a text in the prompt, open conversation, creative writing, code
|
| 82 |
-
and anything after its training data are unreliable.
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
-
###
|
| 86 |
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
Dutch government publications, legislation, parliamentary proceedings,
|
| 90 |
-
case law, Wikimedia and other open sources. No web crawl, no distillation
|
| 91 |
-
from another model.
|
| 92 |
-
2. Four rounds of instruction tuning, each continuing from the previous one:
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
| 3 | 210,122 | 1,213 (1 epoch) | 1x NVIDIA L4 |
|
| 99 |
-
| 4 | 222,316 | 1,247 (1 epoch) | 1x NVIDIA L4 |
|
| 100 |
|
| 101 |
-
|
| 102 |
-
and is published as the `instructie-r4` configuration of the dataset. Loss
|
| 103 |
-
only counts answer tokens. Extractive answers must appear literally in the
|
| 104 |
-
context and abstention examples are checked to not contain the answer.
|
| 105 |
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
-
|
| 109 |
-
pip install "transformers>=4.51" torch
|
| 110 |
```
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
```python
|
| 113 |
import torch
|
| 114 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
@@ -124,7 +149,7 @@ messages = [{
|
|
| 124 |
"content": (
|
| 125 |
"Beantwoord de vraag uitsluitend op basis van de tekst. Staat het "
|
| 126 |
"antwoord er niet in, antwoord dan precies: Ik weet dit niet.\n\n"
|
| 127 |
-
f"Tekst: {tekst}\n\nVraag: {vraag}"
|
| 128 |
),
|
| 129 |
}]
|
| 130 |
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
|
@@ -134,12 +159,65 @@ with torch.inference_mode():
|
|
| 134 |
eos_token_id=tokenizer.eos_token_id,
|
| 135 |
pad_token_id=tokenizer.pad_token_id)
|
| 136 |
raw = tokenizer.decode(output[0, inputs.input_ids.shape[1]:], skip_special_tokens=False)
|
| 137 |
-
|
|
|
|
| 138 |
```
|
| 139 |
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
|
| 144 |
### Files in this repository
|
| 145 |
|
|
@@ -147,18 +225,28 @@ to copy a whole paragraph instead of the answer.
|
|
| 147 |
- `ronde4/beste.pt`, `config.json`, `log.csv`: native PyTorch checkpoint and
|
| 148 |
training log of round 4.
|
| 149 |
- `sft-0.5B/`, `boterham-0.5B/`: round 1 and pretraining checkpoints.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
---
|
| 152 |
|
| 153 |
## Nederlands
|
| 154 |
|
| 155 |
-
###
|
| 156 |
|
| 157 |
-
**Boterham 0.5B** is een
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
|
| 163 |
Dit is **ronde 4** van het finetunen (november 2026). De versie van september
|
| 164 |
(ronde 1) staat nog in de repository onder de git-tag `ronde-1`.
|
|
@@ -172,7 +260,8 @@ nul getraind.
|
|
| 172 |
EuroEval 18.0.0, tien iteraties per taak. WikiLingua-nl op EuroEval 15.16.0,
|
| 173 |
omdat die versie nog BERTScore geeft, de maat achter het getal van GPT-NL. De
|
| 174 |
eerlijke tegenstander is GPT-NL na het finetunen (TNO-rapport GPTNL-DEL-4002,
|
| 175 |
-
figuur 21), een model van 26 miljard parameters.
|
|
|
|
| 176 |
|
| 177 |
| Taak | Maat | Boterham 0.5B r4 | GPT-NL IT | GPT-NL basis |
|
| 178 |
|---|---|---:|---:|---:|
|
|
@@ -196,17 +285,42 @@ Goed: een kort antwoord op een vraag over een tekst die je zelf meegeeft, en
|
|
| 196 |
Zwak: samenvattingen zijn kort en nemen meestal de openingszin over. Feiten
|
| 197 |
zonder tekst erbij, vrij gesprek, creatief schrijven, code en alles van na de
|
| 198 |
trainingsdata zijn onbetrouwbaar. Ook op zijn sterke taken geeft het op vrije
|
| 199 |
-
invoer soms een fout antwoord dat er aannemelijk uitziet
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Boterham 0.5B
|
| 20 |
|
| 21 |
+
A Dutch language model of half a billion parameters, trained from scratch on
|
| 22 |
+
open data only, for about € 120 of rented compute. It reads a text you give
|
| 23 |
+
it, answers questions about that text, and says "Ik weet dit niet." when the
|
| 24 |
+
answer is not there.
|
| 25 |
|
| 26 |
+
[Nederlands](#nederlands) · [English](#english)
|
| 27 |
|
| 28 |
+

|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
## English
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
### At a glance
|
|
|
|
|
|
|
| 33 |
|
| 34 |
+
| | |
|
| 35 |
|---|---|
|
| 36 |
| Parameters | 488.3M total; 447.4M excluding tied token embeddings |
|
| 37 |
| Architecture | Decoder-only Transformer, RMSNorm, GQA, RoPE, SwiGLU, QK-norm |
|
| 38 |
| Layers / hidden size | 26 / 1,280 |
|
| 39 |
| Attention heads | 20 query heads, 4 key/value heads |
|
| 40 |
| Context length | 2,048 tokens |
|
| 41 |
+
| Vocabulary | 32,002-token byte-level BPE, trained on the corpus itself |
|
| 42 |
+
| Pretraining | 8.0 billion tokens on one NVIDIA H100 |
|
| 43 |
+
| Instruction tuning | four rounds on one to four NVIDIA L4 GPUs |
|
| 44 |
+
| Training data | [ToetsChecker-Research/beleg](https://huggingface.co/datasets/ToetsChecker-Research/beleg), public domain and open licences only |
|
| 45 |
+
| Compute cost | € 121.60 at Scaleway, of which € 100 was a free credit |
|
| 46 |
| Languages | Primarily Dutch; some English |
|
| 47 |
| License | Apache 2.0 |
|
| 48 |
|
| 49 |
+
This repository holds **round 4** of the instruction tuning (November 2026).
|
| 50 |
+
The September release (round 1) is still available under the git tag
|
| 51 |
+
`ronde-1`: `from_pretrained(model_id, revision="ronde-1")`.
|
| 52 |
+
|
| 53 |
+
The Hugging Face export uses the `Qwen3ForCausalLM` implementation because the
|
| 54 |
+
architectures are identical. **Boterham does not use Qwen weights and is not a
|
| 55 |
+
fine-tune of Qwen**; tokenizer and weights were trained from scratch.
|
| 56 |
+
|
| 57 |
+
The figures on this page have Dutch labels. Each one is described in the text
|
| 58 |
+
next to it.
|
| 59 |
+
|
| 60 |
### Results
|
| 61 |
|
| 62 |
+
EuroEval 18.0.0, ten iterations per task, with the 95% interval over the
|
| 63 |
+
iterations. WikiLingua-nl ran on EuroEval 15.16.0 because that version still
|
| 64 |
+
reports BERTScore, the metric behind the GPT-NL figure.
|
| 65 |
|
| 66 |
The fair opponent is GPT-NL after instruction tuning (epoch 2, "our data (IT)"
|
| 67 |
+
in figure 21 of TNO report GPTNL-DEL-4002), because Boterham is
|
| 68 |
+
instruction-tuned as well. GPT-NL has 26B parameters, about fifty times as
|
| 69 |
+
many. Its base model is listed for reference.
|
| 70 |
|
| 71 |
| Task | Metric | Boterham 0.5B r4 | GPT-NL IT | GPT-NL base |
|
| 72 |
|---|---|---:|---:|---:|
|
|
|
|
| 80 |
|
| 81 |
Boterham is ahead of the instruction-tuned GPT-NL on grammar, reading and
|
| 82 |
names, and behind it on sentiment, summarization, common sense and knowledge.
|
| 83 |
+
On MMLU-nl and HellaSwag-nl both models are at chance level (MCC 0 is
|
| 84 |
+
guessing), so the difference there says nothing. The scores come from
|
| 85 |
+
`scripts/cloud/meten.sh` in the project repository.
|
| 86 |
+
|
| 87 |
+
The chart below shows every round of Boterham on the same seven tasks. Each
|
| 88 |
+
round of instruction data targeted what the previous round could not do.
|
| 89 |
+
Round 3 added grammar judgements, which lifted ScaLA-nl above zero. Round 4
|
| 90 |
+
added name recognition in the CoNLL-nl format and sentiment, which is where
|
| 91 |
+
those two tasks jump.
|
| 92 |
+
|
| 93 |
+

|
| 94 |
|
| 95 |
### What it is good at, and what not
|
| 96 |
|
| 97 |
+
Good: a short answer to a question about a text you supply, and refusing with
|
| 98 |
"Ik weet dit niet." when the text does not contain the answer.
|
| 99 |
|
| 100 |
Weak: summaries are short and mostly take the opening sentence of the text.
|
| 101 |
Facts without a text in the prompt, open conversation, creative writing, code
|
| 102 |
+
and anything after its training data are unreliable. Even on its strong tasks
|
| 103 |
+
it gives plausible but wrong answers on free-form input. In our own test with
|
| 104 |
+
eight questions on two Rijksoverheid.nl pages it answered two of the six
|
| 105 |
+
answerable questions correctly, refused two it could have answered, gave two
|
| 106 |
+
wrong answers, and refused both questions whose answer was not in the text.
|
| 107 |
+
Check every answer against the text.
|
| 108 |
|
| 109 |
+
### How to prompt it
|
| 110 |
|
| 111 |
+
The model was trained and measured on fixed instructions. It does best when
|
| 112 |
+
you use them literally.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
+
Reading question:
|
| 115 |
+
|
| 116 |
+
```
|
| 117 |
+
Beantwoord de vraag uitsluitend op basis van de tekst. Staat het antwoord er niet in, antwoord dan precies: Ik weet dit niet.
|
|
|
|
|
|
|
| 118 |
|
| 119 |
+
Tekst: {text on one line}
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
+
Vraag: {question}
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
Summary:
|
| 125 |
+
|
| 126 |
+
```
|
| 127 |
+
Document: {text on one line}
|
| 128 |
|
| 129 |
+
Schrijf een samenvatting van het bovenstaande document.
|
|
|
|
| 130 |
```
|
| 131 |
|
| 132 |
+
Put the text on one line (replace blank lines by spaces). With paragraph
|
| 133 |
+
breaks the model tends to copy a whole paragraph instead of the answer. A
|
| 134 |
+
cheap safeguard that removes most made-up answers: only accept an answer that
|
| 135 |
+
appears literally in the text, and treat anything else as "Ik weet dit niet."
|
| 136 |
+
|
| 137 |
```python
|
| 138 |
import torch
|
| 139 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
| 149 |
"content": (
|
| 150 |
"Beantwoord de vraag uitsluitend op basis van de tekst. Staat het "
|
| 151 |
"antwoord er niet in, antwoord dan precies: Ik weet dit niet.\n\n"
|
| 152 |
+
f"Tekst: {' '.join(tekst.split())}\n\nVraag: {vraag}"
|
| 153 |
),
|
| 154 |
}]
|
| 155 |
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
|
|
|
| 159 |
eos_token_id=tokenizer.eos_token_id,
|
| 160 |
pad_token_id=tokenizer.pad_token_id)
|
| 161 |
raw = tokenizer.decode(output[0, inputs.input_ids.shape[1]:], skip_special_tokens=False)
|
| 162 |
+
antwoord = raw.split("<|einde_denken|>")[-1].split("<|einde|>")[0].strip()
|
| 163 |
+
print(antwoord if antwoord.rstrip(".") in tekst else "Ik weet dit niet.")
|
| 164 |
```
|
| 165 |
|
| 166 |
+
It runs on a laptop CPU: a question about a page of text takes two to six
|
| 167 |
+
seconds on two cores.
|
| 168 |
+
|
| 169 |
+
### Training data
|
| 170 |
+
|
| 171 |
+
The corpus has 10.2 billion tokens from 30 sources: Dutch case law,
|
| 172 |
+
parliamentary proceedings, legislation, government publications, Wikimedia,
|
| 173 |
+
EUR-Lex, Europarl, and open English books and articles. Everything is public
|
| 174 |
+
domain under Dutch or Belgian copyright law, or under an open licence; there
|
| 175 |
+
is no web crawl and no text generated by another model. Of the corpus 39% is
|
| 176 |
+
Dutch; the training mix raised that to 68% by weighting.
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
|
| 180 |
+
Per document the dataset records source, licence and retrieval date. It is
|
| 181 |
+
published separately as
|
| 182 |
+
[ToetsChecker-Research/beleg](https://huggingface.co/datasets/ToetsChecker-Research/beleg).
|
| 183 |
+
|
| 184 |
+
### Training
|
| 185 |
+
|
| 186 |
+
**Pretraining.** 8.0 billion tokens on one H100, with warmup, a long stable
|
| 187 |
+
phase and a decaying learning rate at the end. Final validation loss 1.835
|
| 188 |
+
(perplexity 6.3) on 49.3M tokens that were never trained on.
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
|
| 192 |
+
**Instruction tuning.** Four rounds, each continuing from the previous one.
|
| 193 |
+
Loss counts only answer tokens.
|
| 194 |
+
|
| 195 |
+
| Round | Examples | Steps | Hardware |
|
| 196 |
+
|---|---:|---:|---|
|
| 197 |
+
| 1 | 575,211 | 4,786 (2 epochs) | 4x NVIDIA L4 |
|
| 198 |
+
| 2 | 315,248 | 1,006 (1 epoch) | 1x NVIDIA L4 |
|
| 199 |
+
| 3 | 210,122 | 1,213 (1 epoch) | 1x NVIDIA L4 |
|
| 200 |
+
| 4 | 222,316 | 1,247 (1 epoch) | 1x NVIDIA L4 |
|
| 201 |
+
|
| 202 |
+
Rounds 2 to 4 used a peak learning rate of `2e-5`. All instruction data is
|
| 203 |
+
derived from the corpus or from human-written open sets (SQuAD-nl, OASST, Aya,
|
| 204 |
+
Dolly, Tatoeba) and checked afterwards: an extractive answer must appear
|
| 205 |
+
literally in its context, an abstention example must not contain the answer,
|
| 206 |
+
and examples that share a 13-gram with a EuroEval test item are removed. Round
|
| 207 |
+
4 is published as the `instructie-r4` configuration of the dataset.
|
| 208 |
+
|
| 209 |
+
### Cost and footprint
|
| 210 |
+
|
| 211 |
+
All training ran on rented GPUs at Scaleway in Paris: € 121.60 in total, of
|
| 212 |
+
which a € 100 credit, so € 21.60 paid. GPT-NL received € 13.5 million in
|
| 213 |
+
public funding.
|
| 214 |
+
|
| 215 |
+

|
| 216 |
+
|
| 217 |
+
Scaleway reports 2.0 kg CO2e and 1.4 litres of water for all of it, roughly
|
| 218 |
+
19 km by car and ten seconds of showering.
|
| 219 |
+
|
| 220 |
+

|
| 221 |
|
| 222 |
### Files in this repository
|
| 223 |
|
|
|
|
| 225 |
- `ronde4/beste.pt`, `config.json`, `log.csv`: native PyTorch checkpoint and
|
| 226 |
training log of round 4.
|
| 227 |
- `sft-0.5B/`, `boterham-0.5B/`: round 1 and pretraining checkpoints.
|
| 228 |
+
- `figuren/`: the figures on this page.
|
| 229 |
+
|
| 230 |
+
### Limitations
|
| 231 |
+
|
| 232 |
+
A small experimental model with limited world knowledge. It can produce
|
| 233 |
+
incorrect, made-up or biased text. Do not trust claims about people, dates,
|
| 234 |
+
numbers, law, medicine or current events without the source in front of you.
|
| 235 |
+
The context window of 2,048 tokens is short; texts longer than about 6,000
|
| 236 |
+
characters do not fit. Formal written Dutch dominates the training data, so
|
| 237 |
+
casual language is weaker.
|
| 238 |
|
| 239 |
---
|
| 240 |
|
| 241 |
## Nederlands
|
| 242 |
|
| 243 |
+
### In het kort
|
| 244 |
|
| 245 |
+
**Boterham 0.5B** is een Nederlandstalig taalmodel van een half miljard
|
| 246 |
+
parameters, vanaf nul getraind op uitsluitend open data, voor ongeveer € 120
|
| 247 |
+
aan gehuurde rekenkracht. Het leest een tekst die je meegeeft, beantwoordt
|
| 248 |
+
vragen over die tekst, en zegt "Ik weet dit niet." als het antwoord er niet in
|
| 249 |
+
staat.
|
| 250 |
|
| 251 |
Dit is **ronde 4** van het finetunen (november 2026). De versie van september
|
| 252 |
(ronde 1) staat nog in de repository onder de git-tag `ronde-1`.
|
|
|
|
| 260 |
EuroEval 18.0.0, tien iteraties per taak. WikiLingua-nl op EuroEval 15.16.0,
|
| 261 |
omdat die versie nog BERTScore geeft, de maat achter het getal van GPT-NL. De
|
| 262 |
eerlijke tegenstander is GPT-NL na het finetunen (TNO-rapport GPTNL-DEL-4002,
|
| 263 |
+
figuur 21), een model van 26 miljard parameters. Het scorebord bovenaan en de
|
| 264 |
+
grafiek per ronde in de Engelse sectie laten dezelfde getallen zien.
|
| 265 |
|
| 266 |
| Taak | Maat | Boterham 0.5B r4 | GPT-NL IT | GPT-NL basis |
|
| 267 |
|---|---|---:|---:|---:|
|
|
|
|
| 285 |
Zwak: samenvattingen zijn kort en nemen meestal de openingszin over. Feiten
|
| 286 |
zonder tekst erbij, vrij gesprek, creatief schrijven, code en alles van na de
|
| 287 |
trainingsdata zijn onbetrouwbaar. Ook op zijn sterke taken geeft het op vrije
|
| 288 |
+
invoer soms een fout antwoord dat er aannemelijk uitziet. In een eigen proef
|
| 289 |
+
met acht vragen over twee pagina's van Rijksoverheid.nl gaf het op twee van de
|
| 290 |
+
zes beantwoordbare vragen het goede antwoord, weigerde het er twee die wel te
|
| 291 |
+
beantwoorden waren, gaf het twee foute antwoorden, en weigerde het terecht
|
| 292 |
+
beide vragen waarvan het antwoord niet in de tekst stond. Controleer elk
|
| 293 |
+
antwoord tegen de tekst.
|
| 294 |
+
|
| 295 |
+
### Zo vraag je het
|
| 296 |
+
|
| 297 |
+
Gebruik letterlijk de opdrachten uit de Engelse sectie, met de tekst op één
|
| 298 |
+
regel: met witregels erin neemt het model vaak een hele alinea over in plaats
|
| 299 |
+
van het antwoord. Accepteer daarna alleen een antwoord dat letterlijk in de
|
| 300 |
+
tekst staat; dat haalt de meeste verzonnen antwoorden weg.
|
| 301 |
+
|
| 302 |
+
### Data, training en kosten
|
| 303 |
+
|
| 304 |
+
Het corpus telt 10,2 miljard tokens uit 30 bronnen: rechtspraak, Handelingen,
|
| 305 |
+
wetten, overheidspublicaties, Wikimedia, EUR-Lex, Europarl en open Engelse
|
| 306 |
+
boeken en artikelen. Alles is publiek domein of open gelicentieerd; er zit
|
| 307 |
+
geen geschraapt web in en geen tekst van een ander taalmodel. Het corpus is
|
| 308 |
+
voor 39% Nederlands, de trainingsmix voor 68%. Per document staan herkomst,
|
| 309 |
+
licentie en ophaaldatum in
|
| 310 |
+
[ToetsChecker-Research/beleg](https://huggingface.co/datasets/ToetsChecker-Research/beleg);
|
| 311 |
+
de data van ronde 4 staat daar als configuratie `instructie-r4`.
|
| 312 |
+
|
| 313 |
+
Voortrainen: 8,0 miljard tokens op één H100, validatieverlies 1,835
|
| 314 |
+
(perplexiteit 6,3). Daarna vier finetunerondes op L4-kaarten (tabel in de
|
| 315 |
+
Engelse sectie). Alles samen kostte € 121,60 bij Scaleway, waarvan € 100
|
| 316 |
+
tegoed, dus € 21,60 zelf betaald, en volgens Scaleway 2,0 kg CO2e en 1,4 liter
|
| 317 |
+
water. GPT-NL kreeg € 13,5 miljoen overheidssteun.
|
| 318 |
+
|
| 319 |
+
### Beperkingen
|
| 320 |
+
|
| 321 |
+
Een klein experimenteel model met beperkte wereldkennis. Het kan onjuiste,
|
| 322 |
+
verzonnen of bevooroordeelde tekst geven. Vertrouw geen uitspraken over
|
| 323 |
+
personen, datums, getallen, recht, geneeskunde of actualiteit zonder de bron
|
| 324 |
+
ernaast. Het contextvenster van 2.048 tokens is kort: teksten boven ongeveer
|
| 325 |
+
6.000 tekens passen er niet in. Formeel geschreven Nederlands overheerst in de
|
| 326 |
+
trainingsdata, dus spreektaal gaat minder goed.
|
figuren/fig1-voortrainen.png
ADDED
|
Git LFS Details
|
figuren/fig3-euroeval.png
ADDED
|
Git LFS Details
|
figuren/fig5-kosten.png
ADDED
|
Git LFS Details
|
figuren/fig6-scorebord.png
ADDED
|
Git LFS Details
|
figuren/fig7-uitstoot.png
ADDED
|
Git LFS Details
|
figuren/fig8-corpus.png
ADDED
|
Git LFS Details
|