monsoon-nlp / sanaa

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: -1
30-day runs: -8
Model's Last Updated: May 23 2021
text-generation

Introduction of sanaa

Model Details of sanaa

Sanaa

Arabic GPT-2 demo

This is a small GPT-2 model retrained on Arabic Wikipedia circa September 2020 (due to memory limits, the first 600,000 lines of the Wiki dump)

There is NO content filtering in the current version; do not use for public-facing text generation.

Training

Training notebook: https://colab.research.google.com/drive/1Z_935vTuZvbseOsExCjSprrqn1MsQT57

Steps to training:

am = AutoModel.from_pretrained('./argpt', from_tf=True)
am.save_pretrained("./")
Generating text in SimpleTransformers

Finetuning notebook: https://colab.research.google.com/drive/1fXFH7g4nfbxBo42icI4ZMy-0TAGAxc2i

from simpletransformers.language_generation import LanguageGenerationModel
model = LanguageGenerationModel("gpt2", "monsoon-nlp/sanaa")
model.generate("مدرستي")
Finetuning dialects in SimpleTransformers

I finetuned this model on different Arabic dialects to generate a new model (monsoon-nlp/sanaa-dialect on HuggingFace) with some additional control tokens.

Finetuning notebook: https://colab.research.google.com/drive/1fXFH7g4nfbxBo42ic$

from simpletransformers.language_modeling import LanguageModelingModel
ft_model = LanguageModelingModel('gpt2', 'monsoon-nlp/sanaa', args=train_args)
ft_model.tokenizer.add_tokens(["[EGYPTIAN]", "[MSA]", "[LEVANTINE]", "[GULF]"])
ft_model.model.resize_token_embeddings(len(ft_model.tokenizer))
ft_model.train_model("./train.txt", eval_file="./test.txt")

# exported model
from simpletransformers.language_generation import LanguageGenerationModel
model = LanguageGenerationModel("gpt2", "./dialects")
model.generate('[EGYPTIAN]' + "مدرستي")

Runs of monsoon-nlp sanaa on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
-8
30-day runs

More Information About sanaa huggingface.co Model

sanaa huggingface.co

sanaa huggingface.co is an AI model on huggingface.co that provides sanaa's model effect (), which can be used instantly with this monsoon-nlp sanaa model. huggingface.co supports a free trial of the sanaa model, and also provides paid use of the sanaa. Support call sanaa model through api, including Node.js, Python, http.

monsoon-nlp sanaa online free

sanaa huggingface.co is an online trial and call api platform, which integrates sanaa's modeling effects, including api services, and provides a free online trial of sanaa, you can try sanaa online for free by clicking the link below.

monsoon-nlp sanaa online free url in huggingface.co:

https://huggingface.co/monsoon-nlp/sanaa

sanaa install

sanaa is an open source model from GitHub that offers a free installation service, and any user can find sanaa on GitHub to install. At the same time, huggingface.co provides the effect of sanaa install, users can directly use sanaa installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

sanaa install url in huggingface.co:

https://huggingface.co/monsoon-nlp/sanaa

Url of sanaa

Provider of sanaa huggingface.co

monsoon-nlp
ORGANIZATIONS

Other API from monsoon-nlp

huggingface.co

Total runs: 39
Run Growth: 23
Growth Rate: 62.16%
Updated:September 03 2023
huggingface.co

Total runs: 19
Run Growth: 4
Growth Rate: 21.05%
Updated:February 03 2025
huggingface.co

Total runs: 16
Run Growth: 9
Growth Rate: 56.25%
Updated:February 25 2025