Qwen Sindhi: Roman Sindhi → Perso-Arabic Sindhi
Qwen Sindhi is a QLoRA fine-tuned version of Qwen3-1.7B, developed for Roman Sindhi to Perso-Arabic Sindhi transliteration.
The model is quantized into Q4_K_M GGUF (1.11 GB) to support local inference on consumer hardware without requiring cloud APIs.
Developed for: Qwen Local Hackathon 2026
Developers:
Demo: Watch the project demonstration on LinkedIn
Model: Qwen Sindhi on Hugging Face
Dataset: Sindhi Parallel Scripts by Fahad Maqsood Qazi.
1. Problem Statement
Many Sindhi speakers use Roman Sindhi when communicating through smartphones, social media, and messaging applications.
However, Roman Sindhi does not have a universally standardized spelling system. The same Sindhi word can be written in multiple ways using Latin characters.
This creates challenges when converting Roman Sindhi into its standard Perso-Arabic script.
For example:
| Roman Sindhi | Perso-Arabic Sindhi |
|---|---|
| tawhan jo nalo chha aahe? | توهان جو نالو ڇا آهي؟ |
| mun khe pani gharje | مون کي پاڻي گهرجي |
| asan sindhi galhayoon tha | اسان سنڌي ڳالهايون ٿا |
This project explores the use of a small language model to learn these spelling variations and perform Sindhi transliteration efficiently.
2. Model Overview
| Component | Details |
|---|---|
| Model Name | Qwen Sindhi |
| Base Model | Qwen/Qwen3-1.7B |
| Fine-tuning | QLoRA |
| Model Architecture | Transformer |
| Training Framework | Unsloth + TRL |
| Quantization | Q4_K_M |
| Model Format | GGUF |
| GGUF Size | Approximately 1.11 GB |
| Primary Task | Roman Sindhi → Perso-Arabic Sindhi |
| Inference | Local / Offline |
3. Evaluation Results
The fine-tuned model was evaluated against the original base model using 100 unseen, length-stratified sentences from the held-out test split.
Evaluation was performed using jiwer.
Quantitative Comparison
| Metric | Base Qwen3-1.7B | Fine-tuned Qwen Sindhi |
|---|---|---|
| Character Error Rate (CER) ↓ | 168.77% | 4.90% |
| Word Error Rate (WER) ↓ | 223.11% | 14.32% |
| Sentence Exact Match ↑ | 0/100 | 16/100 |
Evaluation Configuration
- Test samples: 100
- Dataset split: Held-out test set
- Training overlap: None
- Decoding: Greedy decoding
- Sampling:
do_sample=False - Chat template: Non-thinking configuration
- Evaluation library:
jiwer
Note: CER and WER can exceed 100% when predictions contain substantial insertions. They are error rates, not accuracy percentages.
Before and After Comparison
Input (Roman Sindhi):
chaari sat buree buree chah hik pinakod waare ilaaiqe men ko b ee es aaee see markaz cho kon aahe
Reference Output:
چار ست ٻڙي ٻڙي ڇھ هِڪ پنڪوڊ واري علائقا ۾ ڪو به ئي ايس آئي سي مرڪز ڇو ڪون آھي
Base Model Output:
چااري سات بورې بورې شاه هيك پنکود واارې ايلاىق مين كو ب ee اس اس اس مين كون آهې see ماركاز شو كون آهې
Fine-tuned Model Output:
چار ست ٻڙي ٻڙي ڇھ هِڪ پنڪوڊ واري علائقا ۾ ڪو به ئي ايس آئي سي مرڪز ڇو ڪون آھي
The fine-tuned model produces an exact match for this particular example.
4. Training Configuration
| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen3-1.7B |
| Fine-tuning Method | QLoRA |
| Framework | Unsloth + TRL |
| Trainer | SFTTrainer |
| Training Epochs | 2 |
| Training Samples | 2,000 |
| Validation Samples | 100 |
| Evaluation Samples | 100 |
| Effective Batch Size | 16 |
| Learning Rate | 2e-4 |
| Learning Rate Scheduler | Cosine |
| Maximum Sequence Length | 384 |
| LoRA Rank | 32 |
| LoRA Alpha | 64 |
| Trainable Parameters | 1.99% |
| Hardware | Kaggle Tesla T4 |
| Peak Allocated VRAM | 4.69 GiB |
| Training Time | 585.96 seconds |
Validation Loss
| Epoch | Validation Loss |
|---|---|
| 1 | 0.1966 |
| 2 | 0.1622 |
5. Run Locally with Ollama
The GGUF version allows users to run the model locally without depending on external inference APIs.
Requirements
- Ollama installed
- Approximately 8 GB RAM recommended
- Sufficient disk space for the model
Step 1: Pull the Model
Open your terminal and execute:
ollama run hf.co/shakeel143/qwen3-1.7b-sindhi-transliteration:Q4_K_M
Ollama will download the model and start an interactive session.
Step 2: Provide Roman Sindhi Input
Example:
tawhan jo nalo chha aahe?
Step 3: Get Perso-Arabic Sindhi Output
Expected output:
توهان جو نالو ڇا آهي؟
The model can then be used for local inference without sending input text to a cloud API.
Alternative: You can also use llama.cpp or other GGUF-compatible inference applications.
6. Hardware Performance
The model was tested on the following CPU-only configuration:
| Component | Configuration |
|---|---|
| Operating System | Windows |
| Processor | Intel Core i5 |
| RAM | 8 GB |
| GPU | Not used |
| Model Format | Q4_K_M GGUF |
| Reported Inference Speed | 12.81 tokens/second |
Inference speed depends on hardware, context length, and runtime configuration.
7. Known Limitations
This model is an experimental research prototype.
Current limitations include:
- Confusion between similar Sindhi characters, such as
ڊandڏ. - Occasional difficulty distinguishing
رandڙ. - Inconsistent handling of uncommon English loanwords.
- Sensitivity to non-standard Roman Sindhi spelling variations.
- Limited evaluation coverage of 100 held-out test sentences.
Further training, larger evaluation datasets, and testing across different Roman Sindhi spelling variations are required before production deployment.
8. Repository Contents
| File / Directory | Description |
|---|---|
Qwen3-1.7B.Q4_K_M.gguf | Quantized GGUF model |
adapter/ | Fine-tuned LoRA adapter and tokenizer |
run.json | Training run metadata |
training-log.json | Training logs |
comparison.md | Base model vs fine-tuned model evaluation |
9. Acknowledgements
We acknowledge the following projects and contributors:
- Qwen Team: For the Qwen3-1.7B base model.
- Unsloth: For efficient parameter-efficient fine-tuning.
- Hugging Face TRL: For supervised fine-tuning infrastructure.
- Fahad Maqsood Qazi: For the Sindhi Parallel Scripts dataset.
10. License and Attribution
The base model is distributed under the Apache-2.0 license.
The training dataset is sourced from:
Fahad Qazi — Sindhi Parallel Scripts
The dataset is identified as CC BY 4.0. Please consult the original dataset card for attribution and usage requirements.
Users should also review the original base model license and associated terms before redistributing model weights.
Project Information
Project: Qwen Sindhi
Technical Objective: Roman Sindhi to Perso-Arabic Sindhi Transliteration
Hackathon: Qwen Local Hackathon 2026
Developers:
- Shakeel Ahmed
- Tooba Ali
Model Repository: https://huggingface.co/shakeel143/qwen3-1.7b-sindhi-transliteration
GitHub: https://github.com/shakeel143