Downloads · 30 days
15
18% of all-time downloads
Jainamshahhh/agrireason-4b
agrireason-4b is a text generation model from Jainamshahhh. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
AgriReason-4B is a LoRA adaptation of Qwen/Qwen3.5-4B that turns a strong general model into a direct, crop-safe agronomic advisor for farmers. Built for the Adaption AutoScientist Challenge, Part 2 (Agriculture); the…
Downloads · 30 days
15
18% of all-time downloads
All-time downloads
84
Public
Repo size
280 MB
Likes
0
Public
Click a slice to open those files.
.safetensors260 MB · 93%
From the Hugging Face model README
AgriReason-4B is a LoRA adaptation of Qwen/Qwen3.5-4B that turns a strong general model into a
direct, crop-safe agronomic advisor for farmers. Built for the Adaption AutoScientist Challenge,
Part 2 (Agriculture); the training corpus was co-optimized with Adaptive Data (Adaption Labs).
Agronomic advice is prose, so unlike the mechanically scored entries in this portfolio this one is judged by a model. That makes the design of the judging the whole story, and most reported win rates cannot be audited at all. This one can:
| the judge saw which arm was which | never, sides were drawn per row |
| what is published | the raw verdicts, the side mapping, and the decoder that joins them |
| ties | reported, never split, 8 of 100 |
| significance | p = 3.8e-18, exact sign test on the 92 decisive pairs |
| questions | real farmer questions, held out, not synthesised for the eval |
| base | Qwen/Qwen3.5-4B, a strong modern open 4B, chosen deliberately |
| cost to recompute the headline | python decode_verdicts.py, one laptop, no GPU |
A win rate you cannot recompute is a claim. This one ships the files that produce it, so 85 / 7 / 8 is a number you can re-derive rather than trust.
Qwen/Qwen3.5-4B (a strong modern open 4B model, chosen deliberately - see below).On a held-out slice of the AgriGround distribution - 100 real-farmer questions never seen in training - AgriReason-4B is preferred over the base model 89.0% of the time (tie-allowed) and 92.4% forced-choice (tuned 85 / base 7 / tie 8). This is the evaluation that mirrors how the challenge scores entries: held-out data from the same distribution as the training set, scored on domain competence.
Why the gap is large: given a terse, real farmer question, the base model hedges, asks for clarification, or returns a textbook overview; AgriReason gives the direct, actionable, structured advisory a farmer can act on. Same domain knowledge, delivered as usable advice.
Q: "Fertilizer schedule in maize?"
significance.py and decode_verdicts.py from the released verdict and mapping
files.Qwen/Qwen3.5-4B (text decoder, Qwen3_5ForCausalLM), Apache-2.0.Jainamshahhh/agriground. Data-build pipeline, eval harness, and blind-judge verdicts
released alongside.Live side by side demo: https://huggingface.co/spaces/Jainamshahhh/agrireason-demo Enter your own input and watch the base model and AgriReason-4B answer it under identical greedy decoding. The GPU backend scales to zero, so a cold first request takes about a minute.
Released on both platforms, with the scorer, every eval slice, the per row verdicts and
significance.py alongside, so every number on this page can be recomputed rather than
trusted.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-4B")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B", torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(base, "Jainamshahhh/agrireason-4b").eval()
msg = [{"role": "user", "content": "My wheat in Punjab during rabi has yellow rust. What should I apply and when?"}]
ids = tok.apply_chat_template(msg, add_generation_prompt=True, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(ids, max_new_tokens=512)[0][ids.shape[1]:], skip_special_tokens=True))
Author: Jainam Shah. Built with Adaptive Data (Adaption Labs) and the open Qwen model.