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.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Ila-AI/IlaAI-v1.1 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.1") 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.1 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.1"
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.1" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Ila-AI/IlaAI-v1.1 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.1"
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.1
Run Hermes
hermes
- OpenClaw new
How to use Ila-AI/IlaAI-v1.1 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.1"
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.1" \ --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.1 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.1"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Ila-AI/IlaAI-v1.1" # 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.1", "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: Ila-AI/IlaAI-v1 | |
| datasets: | |
| - KissanAI/Thinking-climate-100k | |
| 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.1 π± | |
| ### Earth Β· Crop Β· Intelligence | |
| **An open-source Agricultural AI for Bharat's Farmers** | |
| [](https://huggingface.co/Ila-AI) | |
| [](https://github.com/IlaAI) | |
| [](LICENSE) | |
| []() | |
| []() | |
| </div> | |
| --- | |
| ## πΎ What's New in v1.1? | |
| IlaAI-v1.1 is an improved version of IlaAI-v1 with: | |
| - **5x more training data** β 9,000 rows vs 1,800 rows | |
| - **Better dataset** β KissanAI Thinking-climate-100k (chain-of-thought reasoning) | |
| - **More training** β 3,000 iterations vs 2,000 iterations | |
| - **Better Val Loss** β 0.821 vs 0.874 | |
| - **Multilingual system prompt** β responds in user's language | |
| --- | |
| ## π Quick Start | |
| ```python | |
| from mlx_lm import load, generate | |
| from mlx_lm.sample_utils import make_sampler | |
| model, tokenizer = load("Ila-AI/IlaAI-v1.1") | |
| messages = [ | |
| {"role": "system", "content": "You are IlaAI, an expert agricultural assistant for Indian farmers. Always respond in the same language the user writes in. Keep answers concise, practical and under 200 words."}, | |
| {"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=1000, sampler=sampler, verbose=True) | |
| ``` | |
| --- | |
| ## π Training Details | |
| | Detail | Value | | |
| |--------|-------| | |
| | Base Model | IlaAI-v1 (Qwen3-4B) | | |
| | Framework | MLX LoRA | | |
| | Hardware | Apple M4 Mac Mini (24GB) | | |
| | Dataset | KissanAI/Thinking-climate-100k | | |
| | Training rows | 9,000 | | |
| | Validation rows | 1,000 | | |
| | Training iters | 3,000 | | |
| | LoRA rank | 8 | | |
| | Final Val Loss | **0.821** | | |
| | Peak Memory | 4.507 GB | | |
| --- | |
| ## π£οΈ Language Support | |
| | Language | Status | | |
| |----------|--------| | |
| | English | β Excellent | | |
| | Hindi | β Good | | |
| | Telugu | β οΈ Basic | | |
| | Tamil | β οΈ Basic | | |
| | Kannada | β οΈ Basic | | |
| | Others | β οΈ Basic | | |
| > Full multilingual support coming in **IlaAI-v2** with real multilingual agriculture data. | |
| --- | |
| ## β οΈ Limitations | |
| - **Best performance in English** β primary training language | |
| - **Hindi** β good quality responses | |
| - **Other Indian languages** β basic support, improving in v2 | |
| - **Text only** β vision model coming separately | |
| --- | |
| ## πΊοΈ Roadmap | |
| ### β Phase 1 β Foundation | |
| - [x] IlaAI-v1 β English agriculture advisory | |
| - [x] IlaAI-v1.1 β Improved English + basic multilingual | |
| ### π Phase 2 β True Multilingual (v2) | |
| - [ ] Real multilingual agriculture data (BPCC + AI4Bharat) | |
| - [ ] 22+ Indian languages with proper quality | |
| - [ ] Release IlaAI-v2 | |
| ### ποΈ Phase 3 β Vision | |
| - [ ] Crop disease detection from photos | |
| - [ ] IlaAI-Vision model | |
| ### π± Phase 4 β Mobile App | |
| - [ ] Free Android & iOS app | |
| - [ ] On-device inference | |
| - [ ] Voice input in Indian languages | |
| ### π Phase 5 β Global | |
| - [ ] Expand beyond India | |
| - [ ] Support farmers worldwide | |
| - [ ] API for developers | |
| --- | |
| ## π License | |
| Apache 2.0 β free to use, fine-tune, and build upon. | |
| --- | |
| ## π Acknowledgements | |
| - [KissanAI](https://huggingface.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> |