Downloads · 30 days
718
1% of all-time downloads
akhooli/gpt2-small-arabic
gpt2-small-arabic is a text generation model from akhooli. Use it when you need the model to write or continue text. It is set up for transformers.
GPT2 model from Arabic Wikipedia dataset based on gpt2-small (using Fastai2).
Downloads · 30 days
718
1% of all-time downloads
All-time downloads
79.2K
Public
Parameters
137M
1.5 GB on disk
Likes
19
Public
Click a slice to open those files.
.bin510 MB · 34%
How the weights are stored.
F32124M · 91%
From the Hugging Face model README
GPT2 model from Arabic Wikipedia dataset based on gpt2-small (using Fastai2).
An example is provided in this colab notebook. Both text and poetry (fine-tuned model) generation are included.
GPT2-small-arabic (trained on Arabic Wikipedia) has several limitations in terms of coverage (Arabic Wikipeedia quality, no diacritics) and training performance. Use as demonstration or proof of concepts but not as production code.
This pretrained model used the Arabic Wikipedia dump (around 900 MB).
Training was done using Fastai2 library on Kaggle, using free GPU.
Final perplexity reached was 72.19, loss: 4.28, accuracy: 0.307
@inproceedings{Abed Khooli,
year={2020}
}