Downloads · 30 days
0
sgattup/IndianCultureLLM
IndianCultureLLM is a text generation model from sgattup. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A fine-tuned language model focused on Indian culture, history, philosophy, arts, and traditions — built to answer questions about one of the world's oldest and richest civilizations.
Downloads · 30 days
0
Access
Public
Updated Jun 22, 2026
Repo size
212 MB
Likes
0
Public
Click a slice to open those files.
.safetensors97.3 MB · 85%
From the Hugging Face model README
A fine-tuned language model focused on Indian culture, history, philosophy, arts, and traditions — built to answer questions about one of the world's oldest and richest civilizations.
This model has been trained on high-quality instruction pairs covering:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "sgattup/IndianCultureLLM"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
ALPACA_PROMPT = """Below is a question or instruction about Indian culture.
Write a thoughtful, accurate, and detailed response.
### Instruction:
{}
### Response:
"""
def ask(question):
prompt = ALPACA_PROMPT.format(question)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
return response.split("### Response:")[-1].strip()
print(ask("What is the significance of Diwali in Indian culture?"))
print(ask("Explain the eight limbs of Yoga according to Patanjali."))
print(ask("Who was Adi Shankaracharya and what did he teach?"))
Q: What is a Raga in Indian classical music?
A Raga is the fundamental melodic framework of Indian classical music — not merely a scale but a complete musical personality with rules about which notes to use, how to ascend and descend, what mood it evokes, and what time of day it should be performed. Different ragas are associated with times of day: Bhairav at dawn, Yaman at dusk...
Q: Who was Dr. B.R. Ambedkar?
Dr. Bhimrao Ramji Ambedkar (1891–1956) was one of the most transformative figures in modern Indian history. Born into a Dalit family, he overcame severe discrimination to earn degrees from Columbia University and the London School of Economics. He was the principal architect of India's Constitution, which abolished untouchability and guaranteed fundamental rights to all citizens regardless of caste...
| Property | Value |
|---|---|
| Base Model | LLaMA 3.2 3B (unsloth/llama-3.2-3B-bnb-4bit) |
| Fine-tuning Method | QLoRA via Unsloth |
| LoRA Rank | 16 |
| Training Epochs | 3 |
| Dataset Size | 75+ high-quality instruction pairs |
| Language | English |
| License | Apache 2.0 |
Training code and dataset are available at: github.com/sai-educ/indian-culture-llm
If you use this model in your work, please cite:
@misc{IndianCultureLLM2026,
author = {sgattup},
title = {Indian Culture LLM},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/sgattup/IndianCultureLLM}
}