Downloads · 30 days
12
11% of all-time downloads
sweatSmile/Gemma-3-270m-Buddha-QA
Gemma-3-270m-Buddha-QA is a question answering model from sweatSmile. Use it when the input is a question plus a passage. It is set up for peft. The card lists the license as apache-2.0.
- Developed by: sweatSmile - Base model: google/gemma-3-270m - Fine-tuning method: LoRA (Low-Rank Adaptation) - Quantization: 4-bit (nf4) with double quantization - Task type: Question Answering (QA) - Language: Engli…
Downloads · 30 days
12
11% of all-time downloads
All-time downloads
112
Public
Repo size
45.7 MB
Likes
1
Public
Click a slice to open those files.
.json34.5 MB · 74%
From the Hugging Face model README
This model was fine-tuned on a QA dataset about Buddhist teachings, designed for lightweight question-answering tasks.
{"prompt": ..., "completion": ...} format.nf4, double quantization, compute dtype = bf16 if supported)r = 8lora_alpha = 16lora_dropout = 0.1effective_batch_size = 6gradient_accumulation_steps = 3num_train_epochs = 8learning_rate = 2e-4lr_scheduler_type = cosinewarmup_ratio = 0.05weight_decay = 0.01max_grad_norm = 1.0fp16 = Truemax_seq_length = 64save_total_limit = 2| Prompt | Completion |
|---|---|
| Who is referred to as the Fully-Enlightened One in the text? | The Buddha is referred to as the Fully-Enlightened One. |
| Why did the speaker become a recluse? | The speaker became a recluse in the name of the Blessed One, his master. |
| Where does the Fully-Enlightened One live according to the text? | The Fully-Enlightened One lives in a city to the north, in India. |
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "sweatSmile/Gemma-3-270m-Buddha-QA"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)
inputs = tokenizer("Who is referred to as the Fully-Enlightened One in the text?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
If you use this model, please cite:
@misc{gemma-buddha-qa-2025,
title = {Gemma-3-270m Buddha-QA (LoRA 4-bit)},
author = {sweatSmile},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/sweatSmile/Gemma-3-270m-Buddha-QA}}
}