Downloads · 30 days
36
62% of all-time downloads
RichardErkhov/dbddv01_-_gpt2-french-small-4bits
dbddv01_-_gpt2-french-small-4bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
36
62% of all-time downloads
All-time downloads
58
Public
Parameters
126M
127 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors127 MB · 97%
How the weights are stored.
U884.9M · 68%
From the Hugging Face model README
Quantization made by Richard Erkhov.
gpt2-french-small - bnb 4bits
language: "fr"
tags:
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.