🌾 Agricultural Advisory LLM β€” Llama-3.2-3B LoRA

A LoRA fine-tuned version of Llama-3.2-3B-Instruct for agricultural question answering and crop advisory generation. This is the 3B parameter variant β€” more capable than the 1B version for complex agronomic reasoning while remaining lightweight enough for edge deployment.

Fine-tuned using Unsloth for fast, memory-efficient training on a single GPU.

Also available: 1B variant (lighter, faster inference)


Model Details

Field Details
Base model unsloth/Llama-3.2-3B-Instruct-bnb-4bit
Fine-tuning method LoRA (Low-Rank Adaptation) via PEFT
Trainer SFTTrainer (TRL) + Unsloth
Precision 4-bit quantized (bitsandbytes)
Language English
Domain Agriculture / Crop Advisory
Developed by shehryars715

Intended Use

βœ… Direct Use

  • Answering crop-specific agricultural questions (pest control, irrigation, fertilization, disease management)
  • Generating advisories from remote sensing inputs (NDVI, EVI, crop growth stage)
  • Decision support for farmers, agronomists, and precision agriculture systems

βœ… Downstream Use

  • Backend for agri-advisory chatbots and mobile apps
  • Integration into precision agriculture dashboards
  • RAG pipelines augmented with real-time field sensor data

❌ Out-of-Scope Use

  • Medical, legal, or financial advice
  • Non-agricultural domains
  • Autonomous high-stakes decisions without human expert review

Training Details

Training Data

Two datasets were mixed during fine-tuning:

  1. General Agricultural Advisories β€” structured Q&A with fields: crop, topic, question, answer
  2. Farm Sensor Data Advisories β€” precision agriculture records with fields: crop_type, stage, NDVI, EVI, and generated Advisory

Training Hyperparameters

Parameter Value
Training regime fp16 mixed precision
LoRA rank (r) 16
LoRA alpha 16
LoRA dropout 0
Target modules q, k, v, o, gate, up, down proj
Batch size 2 (per device)
Gradient accumulation 4 steps (effective batch = 8)
Epochs 3
Learning rate 2e-4
Optimizer AdamW 8-bit
LR scheduler Linear
Max seq length 2048
Hardware Kaggle (NVIDIA T4 / P100, single GPU)

How to Get Started

With Unsloth (recommended β€” fastest)


Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for shehryars715/finetuned-llama-3.2-3b