Downloads · 30 days
76
5% of all-time downloads
tasal9/ZamAI-mT5-Pashto
ZamAI-mT5-Pashto is a text generation model from tasal9. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Task: text2text-generation Languages: ps Base model: google/mt5-base
Downloads · 30 days
76
5% of all-time downloads
All-time downloads
1.4K
Public
Parameters
582M
16.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 100%
From the Hugging Face model README
Task: text2text-generation
Languages: ps
Base model: google/mt5-base
This model is part of the ZamAI Pashto language AI collection. It is fine-tuned/adapted for text2text-generation in Pashto and related languages.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "tasal9/ZamAI-mT5-Pashto"
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
prompt = "سلام دې وي! تاسو څنګه یاست؟"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training dataset details will be added here.
| Metric | Value | Description |
|---|---|---|
| bleu | TBD | Add measured value |
| rouge | TBD | Add measured value |
Update this table with your measured results and link to the evaluation script/notebook.
@misc{zamai_pashto,
title = {{ZamAI mT5 Pashto}},
author = {ZamAI / Yaqoob Tasal},
year = {2024},
howpublished = {\url{https://huggingface.co/tasal9/ZamAI-mT5-Pashto}}
}
This model is released under the "apache-2.0" license.