Downloads · 30 days
19
3% of all-time downloads
PetraAI/Zalmati
Zalmati is a text classification model from PetraAI. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Zalmati is a powerful multilingual language model trained on the massive and diverse PetraAI dataset. It can handle a wide range of natural language processing tasks including text classification, emotion analysis, qu…
Downloads · 30 days
19
3% of all-time downloads
All-time downloads
717
Public
Repo size
545 MB
Likes
3
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
Zalmati is a powerful multilingual language model trained on the massive and diverse PetraAI dataset. It can handle a wide range of natural language processing tasks including text classification, emotion analysis, question answering, translation, summarization, text generation and more across multiple domains like chemistry, biology, finance, legal, and medicine. With its support for Arabic and English, Zalmati provides cutting-edge AI capabilities to users in the Arabic-speaking world.
Zalmati is based on the transformer architecture and was pretrained on the 1M-10M sample range of the PetraAI dataset using masked language modeling. It leverages the latest advances in large language models and transfer learning to achieve state-of-the-art performance on various NLP benchmarks.
Zalmati can be used for a multitude of language understanding and generation tasks across different domains. Some example use cases:
The model outputs should be reviewed and filtered as needed based on the specific use case.
Like all language models, Zalmati may reflect biases present in its training data. It should not be used for any high-stakes decision making without careful testing and monitoring. The model may also make factual mistakes or generate offensive/unsafe content that requires filtering.
For development/research purposes only. Not for clinical use. Please review the license for terms.
You can use Zalmati through the HuggingFace Transformers library:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("PetraAI/Zalmati")
model = AutoModelForSeq2SeqLM.from_pretrained("PetraAI/Zalmati")
input_text = "Translate the following Arabic text to English: السلام عليكم"
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids)
translated = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translated) # "Peace be upon you"
@article{PetraAI2022ZalmatiModel,
title={Zalmati: A Powerful Multilingual Language Model for Arabic and English},
author={First Last and First Last},
journal={arXiv},
year={2022}
}