Downloads · 30 days
1.3K
1% of all-time downloads
dbddv01/gpt2-french-small
gpt2-french-small is a text generation model from dbddv01. Use it when you need the model to write or continue text. It is set up for transformers.
A small french language model for french text generation (and possibly more NLP tasks...)
Downloads · 30 days
1.3K
1% of all-time downloads
All-time downloads
200K
Public
Parameters
137M
1.5 GB on disk
Likes
10
Public
Click a slice to open those files.
.bin510 MB · 34%
How the weights are stored.
F32124M · 91%
From the Hugging Face model README
A small french language model for french text generation (and possibly more NLP tasks...)
Introduction
This french gpt2 model is based on openai GPT-2 small model.
It was trained on a <b>very small (190Mb) dataset </b> from french wikipedia using Transfer Learning and Fine-tuning techniques in just over a day, on one Colab pro with 1GPU 16GB.
It was created applying the recept of <b>Pierre Guillou</b>
It is a proof-of-concept that makes possible to get a language model in any language with low ressources.
It was fine-tuned from the English pre-trained GPT-2 small using the Hugging Face libraries (Transformers and Tokenizers) wrapped into the fastai v2 Deep Learning framework. All the fine-tuning fastai v2 techniques were used.
It is now available on Hugging Face. For further information or requests, please go to "Faster than training from scratch — Fine-tuning the English GPT-2 in any language with Hugging Face and fastai v2 (practical case with Portuguese)".
Model migth be improved by using larger dataset under larger powerful training infrastructure. At least this one can be used for small finetuning experimentation (i.e with aitextgen).
PS : I've lost the metrics but it speaks french with some minor grammar issues, coherence of text is somehow limited.