KissanAI/india-climate-qa-synth-v1
Viewer • Updated • 96.9k • 10 • 1
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)How to use Ila-AI/IlaAI-v1 with Pi:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ila-AI/IlaAI-v1"
# 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"
}
]
}
}
}# Start Pi in your project directory: pi
How to use Ila-AI/IlaAI-v1 with Hermes Agent:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ila-AI/IlaAI-v1"
# 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
hermes
How to use Ila-AI/IlaAI-v1 with MLX LM:
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Ila-AI/IlaAI-v1"
# 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"}
]
}'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 🌾"
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)
| 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 |
Apache 2.0 — free to use, fine-tune, and build upon.
4-bit