Downloads · 30 days
28
3% of all-time downloads
AhmadMustafa/MobiLLama-Urdu-Article-Generation
MobiLLama-Urdu-Article-Generation is a text generation model from AhmadMustafa. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-4.0.
This is Instruct Fine-tuned Version of MobiLlama Fine-tuned on Instruct Urdu Article Generation Dataset. Instruct Urdu Article Generation Dataset was released under AYA Collections by Cohere for AI
Downloads · 30 days
28
3% of all-time downloads
All-time downloads
854
Public
Parameters
535M
2.1 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors2.1 GB · 100%
From the Hugging Face model README
This is Instruct Fine-tuned Version of MobiLlama Fine-tuned on Instruct Urdu Article Generation Dataset. Instruct Urdu Article Generation Dataset was released under AYA Collections by Cohere for AI
This model is finetuned for 8500 steps for generating articles in Urdu Language.
Fine-Tuning Statistics:

This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
This model is intended to use on mobile devices for generating articles in Urdu Language.
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->This model may contain biases and limitations that are present in LLMs and I have not accounted for them.
Use the code below to get started with the model.
model = AutoModelForCausalLM.from_pretrained("AhmadMustafa/MobiLLama-Urdu-Article-Generation", trust_remote_code=True).to(device)
tokenizer = AutoTokenizer.from_pretrained("MBZUAI/MobiLlama-05B")
example = {'inputs': """ اس دی گی ایک خبر سے متعلق ایک مضمون لکھیں۔
خبر: سشانت سنگھ کیس بھارتی سپریم کورٹ نے فریقین سے مفصل جواب طلب کرلیا""",
}
example = f"### Instruction: {example['inputs']}\n ### Completion: "
inputs = tokenizer.encode(f"{example}", return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0]))
# Output
>>>جی ضرور، یہ رہا آپ کی خبر سے متعلق ایک مضمون:
ممبئی بھارتی سپریم کورٹ نے بالی وڈ اداکار سشانت سنگھ راجپوت کیس کی سماعت کے دوران فریقین سے مفصل جواب طلب کرلیا بھارتی سپریم کورٹ کے جسٹس شوکت عزیز نے سشانت سنگھ راجپوت کیس کی سماعت کی سماعت کے دوران فریقین سے مفصل جواب طلب کیا سشانت سنگھ راجپوت کیس کی سماعت کے دوران فریقین سے مفصل جواب طلب کیا گیا جسٹس شوکت عزیز نے سشانت سنگھ راجپوت کیس کی سماعت کی سماعت کے دوران فریقین سے مفصل جواب طلب کیا سشانت سنگھ راجپوت کیس کی سماعت کے دوران فریقین سے مفصل جواب طلب کی
Please note that I have used <|EOS|> in the end of each example so you can use that as ending token to control generation.
BibTeX:
@misc{thawakar2024mobillama, title={MobiLlama: Towards Accurate and Lightweight Fully Transparent GPT}, author={Omkar Thawakar and Ashmal Vayani and Salman Khan and Hisham Cholakkal and Rao Muhammad Anwer and Michael Felsberg and Timothy Baldwin and Eric P. Xing and Fahad Shahbaz Khan}, year={2024}, eprint={2402.16840}, archivePrefix={arXiv}, primaryClass={cs.CL} }