Downloads · 30 days
30
2% of all-time downloads
monsoon-nlp/sanaa-dialect
sanaa-dialect 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 is a small GPT-2 model, originally trained on Arabic Wikipedia circa September 2020 , finetuned on dialect datasets from Qatar University, University of British Columbia / NLP, and Johns Hopkins University / LREC
Downloads · 30 days
30
2% of all-time downloads
All-time downloads
1.5K
Public
Parameters
137M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin510 MB · 34%
How the weights are stored.
F32124M · 91%
From the Hugging Face model README
This is a small GPT-2 model, originally trained on Arabic Wikipedia circa September 2020 , finetuned on dialect datasets from Qatar University, University of British Columbia / NLP, and Johns Hopkins University / LREC
You can use special tokens to prompt five dialects: [EGYPTIAN], [GULF], [LEVANTINE], [MAGHREBI], and [MSA]
from simpletransformers.language_generation import LanguageGenerationModel
model = LanguageGenerationModel("gpt2", "monsoon-nlp/sanaa-dialect")
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 and training: https://huggingface.co/monsoon-nlp/sanaa
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/1fXFH7g4nfbxBo42icI4ZMy-0TAGAxc2i
شكرا لتجربة هذا! ارجو التواصل معي مع الاسئلة