File size: 3,347 Bytes
2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 2ee1d86 c369625 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | ---
license: apache-2.0
language:
- en
- fr
- es
- pt
- sw
- ja
- ar
base_model: Qwen/Qwen2-0.5B-Instruct
tags:
- agriculture
- multilingual
- chatbot
- crop-diseases
- farming
- west-africa
pipeline_tag: text-generation
---
# AgriChat Multilingual - Agricultural Assistant
A multilingual chatbot fine-tuned for agricultural assistance, specifically designed for farmers in West Africa and beyond.
## Model Description
- **Base Model:** Qwen/Qwen2-0.5B-Instruct
- **Fine-tuning Method:** LoRA (Low-Rank Adaptation)
- **Languages:** English, French, Spanish, Portuguese, Swahili, Japanese, Arabic
- **Domain:** Agricultural crop diseases, farming practices, pest management
- **License:** Apache 2.0
## Supported Languages
| Language | Code | Coverage |
|----------|------|----------|
| English | en | Full |
| French | fr | Full |
| Spanish | es | Full |
| Portuguese | pt | Full |
| Swahili | sw | Full |
| Japanese | ja | Full |
| Arabic | ar | Full |
## Use Cases
- **Crop Disease Identification:** Ask about symptoms and treatments for plant diseases
- **Farming Advice:** Get guidance on agricultural practices
- **Pest Management:** Learn about controlling pests affecting crops
- **Multilingual Support:** Communicate in 7 different languages
## Quick Start
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model
model = AutoModelForCausalLM.from_pretrained("mesabo/agri-chat-multilingual")
tokenizer = AutoTokenizer.from_pretrained("mesabo/agri-chat-multilingual")
# Chat example
messages = [
{"role": "user", "content": "How do I identify cassava mosaic disease?"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
```
## Training Details
- **Training Data:** 38 curated Q&A examples across 7 languages
- **Epochs:** 3
- **LoRA Parameters:** 2.16M trainable (0.44% of total)
- **Training Loss:** 2.54
- **Hardware:** NVIDIA RTX 3090 (25.3 GB)
- **Training Time:** ~17 seconds
## Covered Topics
### Crop Diseases
- Cassava mosaic disease
- Maize leaf blight
- Tomato bacterial wilt
- Cashew anthracnose
- Rice blast disease
### Farming Practices
- Organic pest control
- Soil health management
- Crop rotation benefits
- Water conservation
## Limitations
- Fine-tuned on limited agricultural domain data
- Best suited for common crop diseases in West Africa
- May not cover specialized or rare conditions
- Responses should be verified with local agricultural experts
## Intended Use
This model is designed for:
- Agricultural extension workers
- Small-scale farmers
- Agricultural education platforms
- Farming assistance applications
## Citation
```bibtex
@misc{agri-chat-multilingual,
author = {mesabo},
title = {AgriChat Multilingual - Agricultural Assistant},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/mesabo/agri-chat-multilingual}
}
```
## Related Models
- [mesabo/agri-plant-disease-resnet50](https://huggingface.co/mesabo/agri-plant-disease-resnet50) - Plant disease image classification (95%+ accuracy)
## Contact
For questions or issues, please open a discussion on the model page.
|