Downloads · 30 days
169
1% of all-time downloads
BramVanroy/fietje-2
fietje-2 is a text generation model from BramVanroy. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
<p align="center" style="margin:0;padding:0" <img src="https://huggingface.co/BramVanroy/fietje-2/resolve/main/img/fietje-2b-banner-rounded.png" alt="Fietje banner" width="800" style="margin-left:'auto' margin-right:'…
Downloads · 30 days
169
1% of all-time downloads
All-time downloads
17.3K
Public
Parameters
2.8B
278 GB on disk
Likes
12
Public
Click a slice to open those files.
.safetensors5.6 GB · 100%
From the Hugging Face model README
Fietje is an adapated version of microsoft/phi-2, tailored to Dutch text generation by training on 28B tokens. It is small and efficient with a size of 2.7 billion parameters while performing almost on par with more powerful Dutch LLMs of twice its size like GEITje 7B Ultra.
A thorough description of the creation and evaluation of Fietje as well as usage examples are available in this Github repository.
If you use Fietje or the CulturaX + Wikipedia filtered subset in your work, please cite to the following paper:
@article{vanroy2024fietje,
author="Vanroy, Bram",
title="Fietje: An open, efficient LLM for Dutch",
url="https://www.clinjournal.org/clinj/article/view/213",
journal="Computational Linguistics in the Netherlands Journal",
volume="14",
year="2025",
pages="473--504"
}
The same limitations as phi-2, and LLMs in general, apply here. LLMs hallucinate, make mistakes, and should not be trusted. Use at your own risk!
Fietje was continue-pretrained on 28B Dutch tokens, which includes the full Dutch component of Wikipedia (accounting for around 15%), supplemented with Dutch tokens from CulturaX. A newer version of this dataset can be found here, which also describes the filtering that took place to ensure high data quality.
I am thankful to the Flemish Supercomputer Center (VSC) for providing the computational power to accomplish this project. Accounting for waiting for jobs, training took around two weeks on four nodes of 4x A100 80GB each (16 total).
Training was done with the wonderful alignment-handbook, using DeepSpeed as a back-end. Exact training recipes and SLURM script are given in the Github repository.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.6334 | 0.13 | 900 | 1.5937 |
| 1.5469 | 0.26 | 1800 | 1.5051 |
| 1.4937 | 0.4 | 2700 | 1.4628 |
| 1.4633 | 0.53 | 3600 | 1.4375 |
| 1.4485 | 0.66 | 4500 | 1.4203 |
| 1.4374 | 0.79 | 5400 | 1.4085 |
| 1.4278 | 0.92 | 6300 | 1.4013 |