Text Generation
GGUF
English
Hausa
Nigerian Pidgin
llama.cpp
qwen2.5
agriculture
veterinary
feed-formulation
nigeria
hausa
pidgin
adtc2026
on-device-ai
conversational
Instructions to use matt-wisdom/qwen_farm_agent_gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use matt-wisdom/qwen_farm_agent_gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
Use Docker
docker model run hf.co/matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use matt-wisdom/qwen_farm_agent_gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "matt-wisdom/qwen_farm_agent_gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "matt-wisdom/qwen_farm_agent_gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
- Ollama
How to use matt-wisdom/qwen_farm_agent_gguf with Ollama:
ollama run hf.co/matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use matt-wisdom/qwen_farm_agent_gguf with Docker Model Runner:
docker model run hf.co/matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
- Lemonade
How to use matt-wisdom/qwen_farm_agent_gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull matt-wisdom/qwen_farm_agent_gguf:Q4_K_M
Run and chat with the model
lemonade run user.qwen_farm_agent_gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
FarmHand AI: Qwen 2.5 3B Instruct (Q4_K_M GGUF)
Quantized model release for FarmHand AI, an offline agricultural advisory and livestock management system developed for the Africa Deep Tech Challenge 2026 (ADTC 2026): The Laptop LLM Challenge.
Model Summary
- Base Model: Qwen/Qwen2.5-3B-Instruct
- Quantization Method: 4-bit medium quantization (
Q4_K_M) usingllama.cpp - File Name:
qwen2.5-3b-instruct.Q4_K_M.gguf - File Size: ~1.93 GB
- Context Length: 4096 tokens
- Primary Languages: English, Nigerian Pidgin (
pcm), and Hausa (ha) - Domain Focus: Smallholder livestock management, veterinary symptom triage, least-cost feed ration formulation, and flock ledger accounting.
Target Hardware and Systems Profile
This model is configured specifically for resource-constrained laptops with 8 GB of total RAM and no dedicated GPU (ADTC Standard Laptop Profile).
| Metric | Measured Value | Standard Limit / Baseline |
|---|---|---|
| Peak Memory (RSS) | ~2.3 GB โ 3.3 GB | 7.0 GB Hard Maximum |
| Throughput (CPU) | 16.8 Tokens/sec | 15.0 Tokens/sec ($TPS_{\text{ref}}$) |
| Time to First Token | ~180 ms | 5,000 ms |
| Peak Core Temperature | < 65 ยฐC | 85 ยฐC (Thermal Throttle Threshold) |
| Host System | Intel Core i5/i7 (2 CPU threads) | Integrated Graphics (Zero VRAM) |
Intended Uses
- Clinical Veterinary Triage:
- Outbreak symptom identification (Peste des Petits Ruminants / Goat Plague, African Swine Fever, Newcastle Disease, Coccidiosis, Enterotoxemia).
- Emergency biosecurity quarantine procedures and supportive care steps.
- Constrained Feed Ration Formulation:
- Extracting and validating nutritional parameters for 22 Nigerian feedstuffs (maize, palm kernel cake, soybean meal, wheat offal, bone meal, rice bran, fish meal).
- Flock Ledger and Accounting:
- Parsing natural language event logs (births, deaths, sales, feed purchases) into structured schema calls for SQLite persistence.
- Multilingual Field Communication:
- Direct conversational interaction in authentic Nigerian Pidgin and agricultural Hausa.
Out-of-Scope and Safety Limitations
- Not a Replacement for Licensed Veterinary Surgery: The model provides emergency first aid, symptom triage, and biosecurity checklists. It does not prescribe surgical interventions or replace a licensed field veterinarian for controlled pharmaceuticals.
- Human Clinical Medicine: The model is tuned strictly for agriculture and livestock. It must not be used for human clinical diagnosis.
- Extreme Weather Prediction: The model relies on local RAG and sensor telemetry for microclimate conditions; it does not replace national meteorological forecasting services.
Quickstart & Usage Examples
1. Running with llama.cpp (CLI)
./llama-cli \
-m qwen2.5-3b-instruct.Q4_K_M.gguf \
-p "<|im_start|>system\nYou are FarmHand AI, an on-device agricultural assistant.<|im_end|>\n<|im_start|>user\n4 goats died sudden-sudden and foam dey commot their mouth. Wetin fit cause am?<|im_end|>\n<|im_start|>assistant\n" \
-n 256 \
-t 2 \
--temp 0.2
2. Running with Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama(
model_path="qwen2.5-3b-instruct.Q4_K_M.gguf",
n_ctx=4096,
n_threads=2,
n_gpu_layers=0, # Pure CPU execution
verbose=False,
)
prompt = "Formulate a balanced broiler starter feed using local Nigerian ingredients with minimum 22% crude protein."
response = llm(
f"<|im_start|>system\nYou are FarmHand AI, an on-device agricultural assistant.<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n",
max_tokens=256,
temperature=0.2,
stop=["<|im_end|>", "<|im_start|>"],
)
print(response["choices"][0]["text"].strip())
Repository and Codebase
- Challenge: Africa Deep Tech Challenge 2026
- Track: Agriculture
- License: Apache 2.0
- Downloads last month
- 115
Hardware compatibility
Log In to add your hardware
4-bit