Downloads · 30 days
15
3% of all-time downloads
aakashMeghwar01/SindhiLM-Qwen-0.5B
SindhiLM-Qwen-0.5B is a text generation model from aakashMeghwar01. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Developed by Aakash Meghwar (Founder, Text Tech Solutions)
Downloads · 30 days
15
3% of all-time downloads
All-time downloads
500
Public
Parameters
370M
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 95%
From the Hugging Face model README
Developed by Aakash Meghwar (Founder, Text Tech Solutions)
This model is a specialized Large Language Model (LLM) for the Sindhi Language, developed as part of the broader SindhiLM Project. It is a fine-tuned version of the Qwen2.5-0.5B architecture, specifically optimized to understand and generate Sindhi text using a custom-built BPE tokenizer.
The model was trained for 10,000 steps using a 4-bit LoRA (Low-Rank Adaptation) approach. This project adheres to the "Green AI" philosophy, providing a high-performance, compact model that is accessible for low-resource languages and deployable on consumer-grade hardware.
I am Aakash Meghwar, a Computational Linguist specializing in South Asian languages.
I am actively seeking PhD opportunities and Research Collaborations in the following areas:
Are you looking for a researcher to join your NLP lab or organization? I am open to discussing projects involving Model Compression, Cross-Lingual Transfer, and South Asian Language Tech.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
model_id = "Qwen/Qwen2.5-0.5B"
adapter_id = "aakashMeghwar01/SindhiLM-Qwen-0.5B"
# Load Tokenizer and Base Model
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
# Load Sindhi Adapters
model = PeftModel.from_pretrained(model, adapter_id)
# Example Sindhi Input
prompt = "سنڌي ٻوليءَ جي اهميت"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.7, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))