Files
gpt2-small-dutch/README.md
ModelHub XC 5dc4d401d4 初始化项目,由ModelHub XC社区提供模型
Model: GroNLP/gpt2-small-dutch
Source: Original Platform
2026-07-31 21:33:19 +08:00

2.3 KiB

language, tags, pipeline_tag
language tags pipeline_tag
nl
adaption
recycled
gpt2-small
text-generation

GPT-2 recycled for Dutch (small)

Wietse de VriesMalvina Nissim

Model description

This model is based on the small OpenAI GPT-2 (gpt2) model.

For details, check out our paper on arXiv and the code on Github.

Dutch

Italian

How to use

from transformers import pipeline

pipe = pipeline("text-generation", model="GroNLP/gpt2-small-dutch")
from transformers import AutoTokenizer, AutoModel, TFAutoModel

tokenizer = AutoTokenizer.from_pretrained("GroNLP/gpt2-small-dutch")
model = AutoModel.from_pretrained("GroNLP/gpt2-small-dutch")  # PyTorch
model = TFAutoModel.from_pretrained("GroNLP/gpt2-small-dutch")  # Tensorflow

BibTeX entry

@misc{devries2020good,
      title={As good as new. How to successfully recycle English GPT-2 to make models for other languages}, 
      author={Wietse de Vries and Malvina Nissim},
      year={2020},
      eprint={2012.05628},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}