Views
No views yet
| Attribute | Value |
|---|---|
| Base Model | unsloth/gemma-3-4b-it-bnb-4bit |
| Architecture | Gemma-3 4B Instruct (8K context) |
| Fine-tuning Method | LoRA (r=16, alpha=16, dropout=0) via Unsloth |
| Training Data | ~1,836 high-quality English–Tamil parallel sentences (curated) |
| Training Epochs | 2 epochs |
| Batch Size | 8 (2 per device × 4 gradient accumulation) |
| Learning Rate | 2e-4 |
| Quantization | 4-bit during training, merged & saved in full precision (.safetensors) |
| Training Environment | Google Colab (T4 GPU, 15GB VRAM) |
| Training Time | ~2.5 hours |
| Model | BLEU | chrF++ |
|---|---|---|
| arsath-sm/gemma3-tamil-translator (this model) | 36.12 | 65.25 |
| Base Gemma-3 4B (untuned) | 28.84 | 59.95 |
| Llama-3 8B Instruct | 2.94 | 21.35 |
1from transformers import pipeline
2
3translator = pipeline(
4 "text-generation",
5 model="arsath-sm/gemma3-tamil-translator",
6 device=0 # GPU
7)
8
9prompt = """You are a highly skilled translator. Translate the following English text to Tamil accurately and naturally.
10
11English: Thank you so much for your help today."""
12
13output = translator(prompt, max_new_tokens=128, do_sample=False)[0]["generated_text"]
14print(output.split("Tamil:")[-1].strip())
15# → இன்று உங்கள் உதவிக்கு மிக்க நன்றி.