Downloads · 30 days
0
Karan6124/AgriKoli-Llama-3.2-3B
AgriKoli-Llama-3.2-3B is a text generation model from Karan6124. Use it when you need the model to write or continue text. The card lists the license as mit.
A fine-tuned version of Llama-3.2-3B-Instruct on the Agri/Koli Marathi dialect — a coastal dialect spoken by the indigenous fishing and farming communities of Maharashtra, India.
Downloads · 30 days
0
Access
Public
Updated Mar 18, 2026
Repo size
115 MB
Likes
0
Public
Click a slice to open those files.
.safetensors97.3 MB · 85%
From the Hugging Face model README
A fine-tuned version of Llama-3.2-3B-Instruct on the Agri/Koli Marathi dialect — a coastal dialect spoken by the indigenous fishing and farming communities of Maharashtra, India.
This model can understand instructions in both English and Marathi and respond authentically in the Agri/Koli dialect, using unique vocabulary and speech patterns not found in standard Marathi models.
| Property | Details |
|---|---|
| Base Model | unsloth/Llama-3.2-3B-Instruct-bnb-4bit |
| Fine-tuning Method | LoRA (Low-Rank Adaptation) via Unsloth |
| Quantization | 4-bit (bitsandbytes) |
| Training Platform | Kaggle (T4 GPU) |
| Training Steps | 120 |
| Final Loss | 0.1161 (excellent convergence!) |
| Dataset Size | 1,020+ bilingual instruction-output pairs |
The Agri/Koli dialect is spoken by two closely related indigenous communities of Maharashtra:
Their dialect shares Marathi roots but has distinct vocabulary, pronunciations, and grammar markers such as:
Instruction: How is the fishing today and how is your family? / आज मासेमारी कशी आहे आणि घरचे कसे हायेत?
Model Response:
आज मासा ला जायचं वाढ गावलेत आज, पोटांत मासले गावलेत आज. घराचं चांगले हायेत आज.
(Translation: Today we went fishing and got a good catch. The family is doing well today.)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "Karan6124/AgriKoli-Llama-3.2-3B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
)
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request in the Agri/Koli Marathi dialect.
### Instruction:
{}
### Input:
{}
### Response:
{}"""
inputs = tokenizer(
[alpaca_prompt.format("Tell me about your village.", "", "")],
return_tensors="pt"
).to("cuda")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The full training pipeline, dataset generation scripts, and notebooks are available on GitHub:
The repository contains:
data/: The 1,020+ entry bilingual training datasetscripts/: Data generation and training scriptsnotebooks/: The Kaggle training notebook (agri-koli-llama-3-2-3b.ipynb)This model is released under the MIT License.
Built with ❤️ for preserving the Agri/Koli dialect of Maharashtra. 🌾🐟