Downloads · 30 days
20
10% of all-time downloads
Khurram123/Qwen2.5-3B-Urdu-Ultimate-Poet
Qwen2.5-3B-Urdu-Ultimate-Poet is a text generation model from Khurram123. 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.
Developed by Khurram Pervez (Khurram123), this model is a high-performance, specialized version of the Qwen2.5-3B architecture, fine-tuned specifically for the nuances of the Urdu language.
Downloads · 30 days
20
10% of all-time downloads
All-time downloads
193
Public
Parameters
3.1B
6.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
Developed by Khurram Pervez (Khurram123), this model is a high-performance, specialized version of the Qwen2.5-3B architecture, fine-tuned specifically for the nuances of the Urdu language.
This "Ultimate" version is the result of a multi-stage training process designed to create a versatile Urdu AI. It excels in three distinct areas:
You can load this model using the transformers library on any GPU-enabled machine.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "Khurram123/Qwen2.5-3B-Urdu-Ultimate-Poet"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
# Example Prompt for Poetry
prompt = "<|im_start|>user\nعنوان 'شامِ ہجراں' پر ایک شعر لکھیں۔<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=150, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))