Downloads · 30 days
62
8% of all-time downloads
AI71ai/Llama-agrillm-3.3-70B
Llama-agrillm-3.3-70B is a text generation model from AI71ai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.3.
Downloads · 30 days
62
8% of all-time downloads
All-time downloads
808
Public
Parameters
70.6B
141 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors141 GB · 100%
From the Hugging Face model README

AI71ai/Llama-agrillm-3.3-70B is an agriculture-focused Foundation Large Language Model (LLM) developed by ai71 with support from leading institutions in the agricultural sector. It is fine-tuned using LoRA on top of meta-llama/Llama-3.3-70B-Instruct.
This model is developed as part of the AgriLLM initiative, a multi-stakeholder collaboration involving the International Affairs Office at the UAE Presidential Court, the Gates Foundation, CGIAR, Embrapa, ECHO, FAO, IFAD, the World Bank, Digital Green, and other leading organizations in the agriculture domain.
The model is fine-tuned on agriculture-specific Q&A pairs to strengthen its ability to understand agricultural contexts, provide accurate agronomic guidance, and generate reliable, expert-aligned responses, while still preserving the broad capabilities of the underlying Llama 3.3-70B base model.
It is primarily designed for use within Retrieval-Augmented Generation (RAG) systems - where it can leverage external agricultural knowledge bases for accuracy and contextual grounding - rather than as a standalone model.
AgriLLM is an initiative to provide the global agriculture community with open, foundation AI building blocks that support wider AI adoption and help close the information gap faced by smallholder farmers and agricultural professionals worldwide.
As part of the initiative, four open-source public goods will be released:
The initiative’s philosophy is to empower the community with practical, high-quality AI resources - allowing researchers, developers, and institutions to create their own downstream agricultural AI applications built on top of these open building blocks, including the fine-tuned AgriLLMs.
Use the code below to get started with the model.
<details open> <summary><strong>Transformers Code Example</strong></summary># Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("AI71ai/Llama-agrillm-3.3-70B")
model = AutoModelForCausalLM.from_pretrained("AI71ai/Llama-agrillm-3.3-70B")
messages = [
{"role": "user", "content": "How to grow maize in Kenya?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
</details>
<br>
meta-llama/Llama-3.3-70B-InstructAI71ai/Llama-agrillm-3.3-70B provides foundational AI capabilities that can be applied across the agricultural domain, including:
AI71ai/Llama-agrillm-3.3-70B is primarily intended as a foundation model building block. It is designed to better understand agricultural contexts and perform effectively when connected to internal knowledge bases or used in Retrieval-Augmented Generation (RAG) pipelines. This model is not a standalone solution with universal answers; instead, it provides specialized capabilities that downstream applications can leverage to deliver accurate, grounded, and context-aware outputs in agriculture. The model can assist multiple personas across the agricultural ecosystem. Example capabilities include:
This model is not a universal source of answers and is not intended as a standalone solution. It is designed to support agricultural workflows but cannot replace expert knowledge. All outputs should be verified, especially in high-stakes contexts.
Moreover, the model is not intended for:
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
The model was fine-tuned on 200k high-quality examples (146k was domain specific), combining:
No private or personal data is included. All partner datasets were anonymized and ethically prepared.
This model was created by performing LoRA (parameter-efficient) finetuning on top of the instruct-foundation model: meta-llama/Llama-3.3-70B-Instruct
Hardware: 8xH100 GPU
CPU: 150 Cores
Training Time: ~7 hours
Batch Size: 8
gradient_accumulation_steps: 4
Model Checkpoint: 350 steps
lora_rank: 128
lora_alpha: 256
target_modules:
- q_proj
- k_proj
- v_proj
- o_proj
- gate_proj
- up_proj
- down_proj
- lm_head
- embed_tokens
The first evaluation was performed covering:
| Model | Answer Correctness | Factual Correctness (Recall) | Factual Correctness (Precision) |
|---|---|---|---|
| GPT-4o | 0.4046921554 | 0.4960951189 | 0.2404005006 |
| GPT-4o with RAG | 0.4888914377 | 0.630975 | 0.3546307885 |
| Llama-3.3-70B | 0.3832698282 | 0.4624625 | 0.2320625 |
| Llama-3.3-70B Finetuned | 0.4739898234 | 0.3576146789 | 0.3594901961 |
| Llama-3.3-70B Finetuned with RAG | 0.5569369224 | 0.4872040302 | 0.5322138365 |
| Qwen3-30B-A3B | 0.3773581101 | 0.4801293661 | 0.1803589744 |
| Qwen3-30B-A3B Finetuned | 0.4877470022 | 0.3549163449 | 0.3906931964 |
| Qwen3-30B-A3B Finetuned with RAG | 0.5645609396 | 0.4957125 | 0.5091625 |
| Falcon3-10B Finetuned | 0.4516784406 | 0.3506540881 | 0.3499623588 |
| Falcon3-10B Finetuned with RAG | 0.5453206181 | 0.459025 | 0.5092 |
We evaluated the model on the dataset available at agrillm-qa-eval-800, which contains 800 Q&A pairs, covering multiple agricultural topics, crops, geographies and tasks.
The creation of the evaluation set considered multiple dimensions:
The evaluation pipeline leverages RAGAS with LLM-as-a-judge using GPT-4o, where the model’s responses are automatically assessed against reference answers for correctness, completeness, and language quality.
Ground-truth facts:
LLM Response:
- Rice generally grows best with standing water.
- Restrictive licenses are good
when we grade the response we find
✅ Rice generally grows best with standing water. ❌ Restrictive licenses are good
factual_correctness_precision: Out of 2 stated facts, 1 is correct (standing water) → Precision = 1/2.
factual_correctness_recall: Out of 3 ground-truth facts, the model mentioned only 1 → Recall = 1/3.
Check our leaderboard for more information: https://huggingface.co/spaces/AI71ai/agrillm-leaderboard
We gratefully acknowledge the contributions of our partners and collaborators who made this work possible:
Special thanks to all partners for their invaluable support, including:
Data preparation: Curating agricultural documents and Q&A pairs, with manual verification by domain experts Expert guidance: Supporting the verification of synthetic Q&A pairs generated for model fine-tuning AI assistant design: Providing expertise on designing downstream AI applications to test the models Model testing: Manually evaluating model outputs to ensure quality and relevance Field engagement: Collaborating with end-users in agricultural settings to support adoption, and collect current needs and feedback
All datasets used were anonymized and ethically prepared, and no private or personal data was included
If you find this model useful, please cite us:
@misc{Llama-agrillm-3.3-70B,
title={Llama-agrillm-3.3-70B},
author={Mamoun Alaoui, Ojas Agarwal, Zafar Shadman, Derek Thomas},
year={2025},
}