Downloads · 30 days
8
6% of all-time downloads
naazimsnh02/gemma-3-tamilnadu_sample
gemma-3-tamilnadu_sample is a text generation model from naazimsnh02. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
[](https://huggingface.co/naazimsnh02/gemma-3-tamilnadusample) [](https://github.com/Naazimsnh02/gemma-3-tamilnadusample)
Downloads · 30 days
8
6% of all-time downloads
All-time downloads
138
Public
Parameters
1000M
2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2 GB · 98%
From the Hugging Face model README
This model is a fine-tuned version of Gemma-3-1B-IT specifically trained on Tamil Nadu personas and cultural context. It understands and responds with authentic Tamil Nadu cultural knowledge, mixing Tamil and English naturally, and demonstrates deep understanding of Tamil traditions, festivals, language, and regional nuances.
Stage 1 - Supervised Fine-Tuning (SFT)
Stage 2 - Instruction Tuning
Stage 3 - DPO (Direct Preference Optimization)
Stage 4 - Safety Fine-Tuning
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "naazimsnh02/gemma-3-tamilnadu_sample"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example prompt
messages = [
{"role": "user", "content": "Tell me about Pongal festival in Tamil Nadu"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).to("cuda")
outputs = model.generate(
inputs,
max_new_tokens=256,
temperature=0.7,
top_p=0.9,
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="naazimsnh02/gemma-3-tamilnadu_sample",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
# Generate response
messages = [{"role": "user", "content": "Vanakkam! How are you?"}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
If you use this model, please cite:
@misc{tamil-nadu-gemma-2025,
title={Tamil Nadu Cultural AI Model based on Gemma-3-1B-IT},
author={Syed Naazim Hussain},
year={2025},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/naazimsnh02/gemma-3-tamilnadu_sample}}
}
This model inherits the Gemma license from the base model. Please review the license terms before use.
For questions, issues, or feedback, please open an issue on the model repository.
Note: This model is designed for research and educational purposes. Always verify outputs for accuracy and cultural appropriateness.