Downloads · 30 days
3
2% of all-time downloads
Annemarie535257/agrifinconnect-chatbot
agrifinconnect-chatbot is a text generation model from Annemarie535257. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Fine-tuned Flan-T5-small for agricultural loan Q&A in Rwanda.
Downloads · 30 days
3
2% of all-time downloads
All-time downloads
146
Public
Parameters
77M
309 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors308 MB · 99%
From the Hugging Face model README
Fine-tuned Flan-T5-small for agricultural loan Q&A in Rwanda.
Trained on the Bitext mortgage/loans LLM chatbot dataset.
from transformers import T5ForConditionalGeneration, T5TokenizerFast
tokenizer = T5TokenizerFast.from_pretrained("Annemarie535257/agrifinconnect-chatbot")
model = T5ForConditionalGeneration.from_pretrained("Annemarie535257/agrifinconnect-chatbot")
inputs = tokenizer("answer the question: How do I apply for a loan?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))