Text Generation
MLX
Safetensors
qwen3
agriculture
indian-farming
fine-tuned
lora
crops
farming
india
conversational
4-bit precision
Instructions to use Ila-AI/IlaAI-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Ila-AI/IlaAI-v1 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Ila-AI/IlaAI-v1") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Ila-AI/IlaAI-v1 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ila-AI/IlaAI-v1"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Ila-AI/IlaAI-v1" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Ila-AI/IlaAI-v1 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ila-AI/IlaAI-v1"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Ila-AI/IlaAI-v1
Run Hermes
hermes
- OpenClaw new
How to use Ila-AI/IlaAI-v1 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ila-AI/IlaAI-v1"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Ila-AI/IlaAI-v1" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use Ila-AI/IlaAI-v1 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Ila-AI/IlaAI-v1"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Ila-AI/IlaAI-v1" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ila-AI/IlaAI-v1", "messages": [ {"role": "user", "content": "Hello"} ] }'
| 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 | |
| <div align="center"> | |
| <img src="https://cdn-avatars.huggingface.co/v1/production/uploads/67a527986b39b58ea8528fb0/i_tvZOmu3un4ABR8Z0Fyp.png" alt="IlaAI Logo" width="120"/> | |
| # IlaAI-v1 π± | |
| ### Earth Β· Crop Β· Intelligence | |
| **An open-source Agricultural AI for Bharat's Farmers** | |
| [](https://huggingface.co/Ila-AI) | |
| [](https://github.com/IlaAI) | |
| [](LICENSE) | |
| []() | |
| []() | |
| </div> | |
| --- | |
| ## πΎ 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 πΎ | |
| --- | |
| <div align="center"> | |
| <b>For the hands that feed a billion πΎ</b><br/> | |
| <a href="https://huggingface.co/Ila-AI">HuggingFace</a> Β· <a href="https://github.com/IlaAI">GitHub</a> | |
| </div> | |