---
language:
- en
- hi
- te
- ta
- kn
- mr
- bn
- gu
- pa
license: apache-2.0
library_name: mlx
tags:
- agriculture
- indian-farming
- fine-tuned
- lora
- qwen3
- mlx
- crops
- farming
- india
base_model: Qwen/Qwen3-4B
datasets:
- KissanAI/india-climate-qa-synth-v1
pipeline_tag: text-generation
---

# IlaAI-v1 π±
### Earth Β· Crop Β· Intelligence
**An open-source Agricultural AI for Bharat's Farmers**
[](https://huggingface.co/Ila-AI)
[](https://github.com/IlaAI)
[](LICENSE)
[]()
[]()
---
## πΎ About IlaAI
**IlaAI** (ΰ€ΰ€²ΰ€Ύ β Sanskrit for *"the earth that gives"*) is an open-source LLM fine-tuned specifically for Indian agriculture. Built on **Qwen3-4B** and trained on **96,000+ Indian agriculture Q&A pairs**, IlaAI helps farmers and developers get accurate, practical farming advice.
> "For the hands that feed a billion πΎ"
---
## β¨ Capabilities
- πΎ iagnosis** β symptoms, causes, treatments
- π **Pesticide & Fertilizer Advice** β what to use, how much, when
- π¦οΈ **Weather-based Advisory** β sowing, irrigation, harvest timing
- t Schemes** β eligibility, documents, how to apply
- π **Market Price Guidance** β mandi prices, sell/hold advice
- π **Pest Management** β detection and treatment
- π± **Soil Health** β soil types, nutrients, improvement tips
---
## π Quick Start
```python
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler
model, tokenizer = load("Ila-AI/IlaAI-v1")
messages = [
{"rolontent": "You are IlaAI, an expert agricultural assistant for Indian farmers. Answer clearly and helpfully."},
{"role": "user", "content": "My wheat crop has yellow spots on leaves. What should I do?"}
]
text = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=False
)
sampler = make_sampler(temp=0.7, top_p=0.9)
response = generate(model, tokenizer, prompt=text, max_tokens=300, sampler=sampler, verbose=True)
```
---
## π Training Details
| Detail | Value |
|--------|-------|
| Base Model | Qwen3-4B (4-bit quantized) |
| Framework | MLX LoRA |
| Hardware | Apple M4 Mac Mini (24GB) |
| Dataset | KissanAI/india-climate-qa-synth-v1 |
| Training rows | 92,060 |
| Validation rows | 4,845 |
| Training iters | 5,000 |
| LoRA rank | 8 |
| Final Val Loss | **0.695** |
| Peak Memory | 3.894 GB |
---
## β οΈ Limitations
- **Best performance in E** β Hindi and other Indian languages are supported but quality varies
- **Text only** β does not process images (vision model coming in v2)
- **v1 release** β multilingual improvement planned for v2
---
## πΊοΈ Roadmap
### β
Phase 1 β Foundation (Current)
- [x] Organization setup (GitHub + HuggingFace)
- [x] Dataset curation (96K rows)
- [x] IlaAI-v1 β English agriculture advisory
- [x] Published on HuggingFace
### π Phase 2 β Multilingual (Coming Soon)
- [ ] Add Hindi, Telugu, Tamil, Kannada, Marathi, Bengali, Gujarati, Punjabi datasets
- [ ] Fine-tune IlaAI-v2 on 22+ Indian languages
- [ ] Improve response quality across all languages
- [ ] Release IlaAI-v2 on HuggingFace
### ποΈ Phase 3 β Vision (Coming Soon)
- [ ] Fine-tune vision model on Indian crop disease images
- [ ] Support all major Indian crops β Rice, Wheat, Cotton, Sugarcane, Pulses
- [ ] Release IlaAI-Vision on HuggingFace
- [ ] Combine text + vision into one unified model
### π± Phase 4 β Mobile App (Coming Soon)
- [ ] IlaAI Android app β free, forever
- [ ] IlaAI iOS app β free, forever
- [ ] On-device inference (no internet needed)
- [ ] Voice input in Indian languages
- [ ] Available on Play Store & App Store
### π Phase 5 β Community (Coming Soon)
- [ ] Open dataset contributions from farmers
- [ ] Regional crop data by state
- [ ] API for developers to build on IlaAI
- [ ] WhatsApp bot integration
---
## π License
Apache 2.0 β free to use, fine-tune, and build upon.
---
## π Acknowledgements
- [Kface.co/KissanAI) for open-sourcing Dhenu models and datasets
- [Qwen Team](https://huggingface.co/Qwen) for Qwen3 base models
- [Apple MLX Team](https://github.com/ml-explore/mlx) for MLX framework
- Every Indian farmer who inspired this project πΎ
---