Downloads · 30 days
7
3% of all-time downloads
abagade/gemma-3-1b-bhagavad-gita-v1
gemma-3-1b-bhagavad-gita-v1 is a text generation model from abagade. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
This model, abagade/gemma-3-1b-bhagavad-gita-v1, is a fine-tuned version of google/gemma-3-1b-it. It has been trained using Supervised Fine-Tuning (SFT) with the TRL library.
Downloads · 30 days
7
3% of all-time downloads
All-time downloads
214
Public
Parameters
1000M
2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2 GB · 98%
From the Hugging Face model README
This model, abagade/gemma-3-1b-bhagavad-gita-v1, is a fine-tuned version of google/gemma-3-1b-it. It has been trained using Supervised Fine-Tuning (SFT) with the TRL library.
The model is designed to act as a wise spiritual guide, providing answers and explanations to modern-day problems based on the teachings of the Bhagavad Gita.
This model has been fine-tuned to understand user questions about life's challenges—such as stress, purpose, and relationships—and respond with a relevant shloka (verse) from the Bhagavad Gita. Crucially, the model doesn't just provide the quote; it also generates a simple, modern explanation of the verse's meaning to make the ancient wisdom accessible and practical.
google/gemma-3-1b-ithttps://huggingface.co/abagade/gemma-3-1b-bhagavad-gita-v1Use the code below to get started with the model.
from transformers import AutoTokenizer, pipeline
import torch
model_name = "abagade/gemma-3-1b-bhagavad-gita-v1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
pipe = pipeline(
"text-generation",
model=model_name,
tokenizer=tokenizer,
torch_dtype=torch.bfloat16,
device_map="auto",
)
# Format the prompt using the model's chat template
system_prompt = "You are a wise and compassionate spiritual guide. Your answers are based on the teachings of the Bhagavad Gita."
user_question = "I feel so stressed about my upcoming exams. I'm worried about failing and don't know how to focus."
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_question},
]
# Use the pipeline to generate the response
output = pipe(messages, max_new_tokens=256, return_full_text=False)[0]
print(output['generated_text'])
This model is intended for direct use as a conversational chat agent. It can be integrated into applications to provide users with spiritual guidance, meditative focus points, or daily wisdom.
This model is not a substitute for professional mental health advice, therapy, or religious scholarship. It should not be used for:
This model inherits biases from the base Gemma model and the training data. The primary risk is misinterpretation; the simplified meanings may lack the deep, nuanced context a human scholar could provide. The model has no true understanding of human experience and its responses are pattern-based. It may occasionally "hallucinate" or provide a verse that is not perfectly suited to the user's question.
This model was trained with Supervised Fine-Tuning (SFT).
The model was fine-tuned on a synthetic dataset generated from the complete Bhagavad Gita. The dataset consists of approximately 700 question-answer pairs. Each entry was created by:
The model was fine-tuned on a local, consumer-grade GPU (NVIDIA RTX 3090 / 4090).
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{[https://github.com/huggingface/trl](https://github.com/huggingface/trl)}}
}
Cite this model as:
@misc{bagade_gita_gemma_1b_2025,
author = {Abhishek Bagade},
title = {Gita-Gemma-1B: A Conversational Guide},
year = {2025},
publisher = {Hugging Face},
journal = {Hugging Face repository},
howpublished = {\url{[https://huggingface.co/abagade/gemma-3-1b-bhagavad-gita-v1](https://huggingface.co/abagade/gemma-3-1b-bhagavad-gita-v1)}}
}
Abhishek Bagade | https://www.abagade.com