Downloads · 30 days
36
0% of all-time downloads
monsoon-nlp/dialect-ar-gpt-2021
dialect-ar-gpt-2021 is a text generation model from monsoon-nlp. Use it when you need the model to write or continue text. It is set up for transformers.
This model started with AraGPT2-Medium, from AUB MIND Lab.
Downloads · 30 days
36
0% of all-time downloads
All-time downloads
9.2K
Public
Parameters
394M
4.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin1.5 GB · 33%
How the weights are stored.
F32369M · 94%
From the Hugging Face model README
This model started with AraGPT2-Medium, from AUB MIND Lab.
This model was then finetuned on dialect datasets from Qatar University, University of British Columbia / NLP, and Johns Hopkins University / LREC for 10 epochs.
You can use special tokens to prompt five dialects: [EGYPTIAN], [GULF], [LEVANTINE], [MAGHREBI], or [MSA], followed by a space.
from simpletransformers.language_generation import LanguageGenerationModel
model = LanguageGenerationModel("gpt2", "monsoon-nlp/dialect-ar-gpt-2021")
model.generate('[GULF] ' + "مدينتي هي", { 'max_length': 100 })
There is NO content filtering in the current version; do not use for public-facing text generation!
Original model: https://huggingface.co/aubmindlab/aragpt2-medium
I inserted new tokens into the tokenizer, finetuned the model on the dialect samples, and exported the new model.
Notebook: https://colab.research.google.com/drive/19C0zbkSCt5ncVCa4kY-ik9hSEiJcjI-F
AraGPT2 model:
@misc{antoun2020aragpt2,
title={AraGPT2: Pre-Trained Transformer for Arabic Language Generation},
author={Wissam Antoun and Fady Baly and Hazem Hajj},
year={2020},
eprint={2012.15520},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Dialect data sources: