Downloads · 30 days
4
3% of all-time downloads
hosseinhimself/tara-roberta-base-fa-qa
tara-roberta-base-fa-qa is a question answering model from hosseinhimself. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as apache-2.0.
<img src="https://huggingface.co/hosseinhimself/tara-roberta-base-fa-qa/resolve/main/OIG1.jpeg" alt="Model Image" width="400" height="400"
Downloads · 30 days
4
3% of all-time downloads
All-time downloads
118
Public
Parameters
124M
993 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors496 MB · 99%
From the Hugging Face model README
Tara is a fine-tuned version of the facebookAI/roberta-base model for question-answering tasks, trained on the SajjadAyoubi/persian_qa dataset. This model is designed to understand and generate answers to questions posed in Persian.
This model was fine-tuned on a dataset containing Persian question-answering pairs. It leverages the roberta-base architecture to provide answers based on the context provided. The training process was performed with a focus on improving the model's ability to handle Persian text and answer questions effectively.
To use this model for question-answering tasks, load it with the transformers library:
from transformers import AutoTokenizer, AutoModelForQuestionAnswering, pipeline
model = "hosseinhimself/tara-roberta-base-fa-qa"
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model)
model = AutoModelForQuestionAnswering.from_pretrained(model)
# Create a QA pipeline
qa_pipeline = pipeline("question-answering", model=model, tokenizer=tokenizer)
# Example usage
context = "شرکت فولاد مبارکه در سال 1371 تأسیس شد."
question = "چه زمانی شرکت فولاد مبارکه تأسیس شد؟"
# Modify the pipeline to return answer
results = qa_pipeline(question=question, context=context)
# Display the answer
print(results['answer'])
The model was fine-tuned using the SajjadAyoubi/persian_qa dataset.
The model supports the Persian language.
For more details on how to fine-tune similar models or to report issues, please visit the Hugging Face documentation.