Downloads · 30 days
0
subbuks/agribot-lora
agribot-lora is a question answering model from subbuks. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
AgriBot is a lightweight language model fine-tuned to assist farmers and agri-stakeholders with agriculture-related queries using LoRA (Low-Rank Adaptation). It is based on the distilgpt2 model and trained on a curate…
Downloads · 30 days
0
Access
Public
Updated Aug 27, 2025
Repo size
591 KB
Likes
1
Public
Click a slice to open those files.
.json4.4 MB · 81%
From the Hugging Face model README
AgriBot is a lightweight language model fine-tuned to assist farmers and agri-stakeholders with agriculture-related queries using LoRA (Low-Rank Adaptation). It is based on the distilgpt2 model and trained on a curated dataset of agricultural Q&A to deliver relevant, natural-language answers.
distilgpt2Keshav022/Agriculture-Datasetbitsandbytes)transformers, peft, datasetsThe dataset contains real-world agriculture-related questions and answers including topics such as:
We used a cleaned and shuffled subset (~10,000 examples) for efficient training within limited compute resources.
| Setting | Value |
|---|---|
| Model | distilgpt2 |
| Parameter-efficient method | LoRA |
LoRA Rank (r) | 8 |
| Epochs | 3 |
| Max Tokens per Input | 128 |
| Optimizer | AdamW |
| Learning Rate | 2e-4 |
| Quantization | 8-bit (via bitsandbytes) |
| Platform | Google Colab (Free) |
from transformers import pipeline
pipe = pipeline("text-generation", model="subbuks/agribot-lora")
output = pipe("Q: How to increase tomato yield?\nA:",
max_new_tokens=50,
temperature=0.7,
top_p=0.95,
repetition_penalty=1.2,
do_sample=True)
print(output[0]['generated_text'])
Input:
Q: How to increase tomato yield? A:
Output:
A: Apply organic compost, maintain proper spacing, and water regularly. Use phosphorus-rich fertilizer during flowering.
Not suitable for high-stakes decision-making without expert verification.
Might hallucinate or repeat answers if generation parameters are not well-tuned.
Trained on English data; multilingual support is not included.
Created by [subbuks] Model hosted on Hugging Face at: https://huggingface.co/subbuks/agribot-lora