Downloads · 30 days
70
1% of all-time downloads
muhammadnoman76/Lughaat-1.0-8B-Instruct
Lughaat-1.0-8B-Instruct is a text generation model from muhammadnoman76. 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.
Lughaat-1.0-8B-Instruct is an Urdu language model developed by Muhammad Noman, built on the architecture of Llama 3.1 8B. This model is specifically trained on muhammadnoman76/lughaat-urdu-dataset-llm, the largest Urd…
Downloads · 30 days
70
1% of all-time downloads
All-time downloads
4.8K
Public
Parameters
8B
32.1 GB on disk
Likes
4
Public
Click a slice to open those files.
.bin16.1 GB · 50%
From the Hugging Face model README
Lughaat-1.0-8B-Instruct is an Urdu language model developed by Muhammad Noman, built on the architecture of Llama 3.1 8B. This model is specifically trained on muhammadnoman76/lughaat-urdu-dataset-llm, the largest Urdu dataset compiled by Muhammad Noman, enabling it to outperform competitors like Qwen-2.5-7b, Mistral 7B, and Alif 8B models in Urdu language tasks.
This model is available on Hugging Face and can be used in multiple ways:
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "muhammadnoman76/Lughaat-1.0-8B-Instruct",
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit,
)
FastLanguageModel.for_inference(model)
# Define the prompt template for Urdu instructions
lughaat_prompt = """نیچے ایک ہدایت ہے جو کسی کام کی تفصیل بیان کرتی ہے، جس کے ساتھ ایک ان پٹ دیا گیا ہے جو مزید سندات فراہم کرتا ہے۔ تھوڑا وقت لیکر ایک جواب لکھیں جو درست طریقے سے درخواست مکمل کریں
### Instruction:
{}
### Input:
{}
### Response:
{}"""
# Example usage
inputs = tokenizer(
[
lughaat_prompt.format(
"قائد اعظم کون ہے؟",
"",
"",
)
], return_tensors = "pt").to("cuda")
# Generate response with streaming
from transformers import TextStreamer
text_streamer = TextStreamer(tokenizer)
outputs = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 128)
from transformers import pipeline
pipe = pipeline("text-generation", model="muhammadnoman76/Lughaat-1.0-8B-Instruct")
result = pipe("نیچے ایک ہدایت ہے جو کسی کام کی تفصیل بیان کرتی ہے، جس کے ساتھ ایک ان پٹ دیا گیا ہے جو مزید سندات فراہم کرتا ہے۔ تھوڑا وقت لیکر ایک جواب لکھیں جو درست طریقے سے درخواست مکمل کریں\n### Instruction: قائد اعظم کون ہے؟\n### Input:\n### Response:")
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("muhammadnoman76/Lughaat-1.0-8B-Instruct")
model = AutoModelForCausalLM.from_pretrained("muhammadnoman76/Lughaat-1.0-8B-Instruct")
# Process input
prompt = """نیچے ایک ہدایت ہے جو کسی کام کی تفصیل بیان کرتی ہے، جس کے ساتھ ایک ان پٹ دیا گیا ہے جو مزید سندات فراہم کرتا ہے۔ تھوڑا وقت لیکر ایک جواب لکھیں جو درست طریقے سے درخواست مکمل کریں
### Instruction:
قائد اعظم کون ہے؟
### Input:
### Response:
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=128)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
For optimal results, use the following prompt format:
نیچے ایک ہدایت ہے جو کسی کام کی تفصیل بیان کرتی ہے، جس کے ساتھ ایک ان پٹ دیا گیا ہے جو مزید سندات فراہم کرتا ہے۔ تھوڑا وقت لیکر ایک جواب لکھیں جو درست طریقے سے درخواست مکمل کریں
### Instruction:
[Your instruction in Urdu]
### Input:
[Additional context or input - can be empty]
### Response:
Lughaat-1.0-8B-Instruct is specifically designed for Urdu language processing tasks including:
Lughaat-1.0-8B-Instruct outperforms similar-sized competitors in Urdu language tasks, including:
| Category | Lughaat-1.0-8B-Instruct | Alif-1.0-8B-Instruct | Gemma-2-9b-it | Aya expanse 8B | Llama-3-8b-Instruct | Mistral-Nemo-Instruct-2407 | Qwen2.5-7B-Instruct |
|---|---|---|---|---|---|---|---|
| Generation | 89.5 | 90.0 | 84.0 | 73.0 | 65.0 | - | - |
| Translation | 94.2 | 90.0 | 90.0 | - | 65.0 | 79.5 | - |
| Ethics | 89.7 | 85.5 | 84.0 | 71.5 | 64.0 | - | - |
| Reasoning | 88.3 | 83.5 | 85.0 | - | - | 79.5 | 72.0 |
| Average Score | 91.4 | 87.3 | 85.8 | 72.3 | 64.7 | 79.5 | 72.0 |

Note: This is a placeholder for the actual graph image that would be created based on the data.
Lughaat-1.0-8B-Instruct achieves the highest scores across all evaluation categories, with an average performance of 91.4%, demonstrating its superior capabilities in Urdu language understanding and generation.
The model shows particularly strong performance in Translation (94.2%) and Generation (93.5%), outperforming the previous best model (Alif) by 4.2 and 3.5 percentage points respectively.
In Ethics and Reasoning categories, Lughaat maintains a significant lead over competitors, showing its balanced performance across different language tasks.
Compared to larger models like Gemma-2-9b-it, Lughaat-1.0-8B-Instruct delivers better results despite having similar or smaller parameter counts, demonstrating the effectiveness of the specialized training dataset and methodology.
The performance gap is most significant when compared to general-purpose models like Llama-3-8b-Instruct, highlighting the benefits of language-specific optimization.
Please refer to the model card on Hugging Face for the most up-to-date license information.
If you use this model in your research or applications, please cite it as follows:
@misc{noman2025lughaat,
author = {Muhammad Noman},
title = {Lughaat-1.0-8B-Instruct: An Advanced Urdu Language Model},
year = {2025},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub},
howpublished = {\url{https://huggingface.co/muhammadnoman76/Lughaat-1.0-8B-Instruct}}
}
Special thanks to Muhammad Noman for developing this model and compiling the extensive Urdu dataset that powers it.
For questions, feedback, or collaboration opportunities: