Downloads · 30 days
4
4% of all-time downloads
csbhagwant/AgriAssist
AgriAssist is a machine learning model from csbhagwant. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
AgriLlama is a fine-tuned large language model based on Llama3.2:1B, specifically designed to provide detailed, actionable information about plant diseases to Indian farmers. It offers clear, concise, and locally rele…
Downloads · 30 days
4
4% of all-time downloads
All-time downloads
91
Public
Repo size
808 MB
Likes
0
Public
Click a slice to open those files.
.gguf808 MB · 100%
From the Hugging Face model README
AgriLlama is a fine-tuned large language model based on Llama3.2:1B, specifically designed to provide detailed, actionable information about plant diseases to Indian farmers. It offers clear, concise, and locally relevant guidance on disease identification, symptoms, causes, severity, and treatment measures across major crops such as Sugarcane, Maize, Cotton, Rice, and Wheat.
To use AgriLlama, install the required libraries:
pip install transformers torch
Here’s an example of how to use AgriLlama with the Hugging Face Transformers library:
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the tokenizer and model from the Hugging Face Hub
tokenizer = AutoTokenizer.from_pretrained("your-username/AgriLlama")
model = AutoModelForCausalLM.from_pretrained("your-username/AgriLlama")
# Define a prompt
prompt = "Explain Red Rot in sugarcane in simple terms for Indian farmers."
# Tokenize and generate a response
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
# Decode and print the generated response
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Note: Replace your-username/AgriLlama with the actual path of your repository.
You can also use AgriLlama with Ollama, a simple way to run large language models locally.
curl -fsSL https://ollama.ai/install.sh | sh
ollama pull sike_aditya/AgriLlama
ollama run AgriLlama "Explain Red Rot in sugarcane in simple terms for Indian farmers."
This will generate a response based on the model’s fine-tuned dataset.
AgriLlama was fine-tuned using a custom dataset created in the Alpaca Instruct Format. The dataset covers detailed plant disease information tailored to the Indian context and includes samples for:
The fine-tuning dataset consists of carefully curated samples that provide comprehensive, accurate information designed to help users manage crop diseases effectively.
For questions or suggestions, please open an issue in the repository or contact the authors directly.
Happy farming with AgriLlama!