Following Ng Wai Foong's instructions, create an encoded .npz corpus (this was very small in my project
and would be improved by adding many X more training data)
Run generate_unconditional_samples.py and other sample code to generate text
Download TensorFlow checkpoints
Use my notebook code to write vocab.json, empty merge.txt
Copy config.json from similar GPT-2 arch, edit for changes as needed
am = AutoModel.from_pretrained('./argpt', from_tf=True)
am.save_pretrained("./")
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.
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.
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:
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.