Downloads · 30 days
556
2% of all-time downloads
zpm/Llama-3.1-PersianQA
Llama-3.1-PersianQA is a document question answering model from zpm. Use it for the document question answering task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
--- language: fa tags: - question-answering - llama3 - Persian - QA license: apache-2.0 modelname: Llama-3.1-PersianQA ---
Downloads · 30 days
556
2% of all-time downloads
All-time downloads
30.2K
Public
Repo size
21.2 GB
Likes
22
Public
Click a slice to open those files.
.gguf21 GB · 99%
From the Hugging Face model README
language: fa tags:
Llama-3.1-PersianQAThe Llama-3.1-PersianQA model is a fine-tuned version of Llama3 for Persian question-answering tasks. This model is designed to provide accurate answers to questions posed in Persian, based on the provided context. It has been trained on a dataset specific to Persian language QA tasks to enhance its performance in understanding and generating responses in Persian.
This model is intended for use in applications requiring Persian language question answering. It can be integrated into chatbots, virtual assistants, and other systems where users interact in Persian and need accurate responses to their questions based on a given context.
The model was fine-tuned on a Persian question-answering dataset, which includes various domains and topics to ensure generalization across different types of questions. The dataset used for training contains question-context pairs and corresponding answers in Persian.
The model has been evaluated on a set of Persian QA benchmarks and performs well across various metrics. Performance may vary depending on the specific domain and nature of the questions.
You can use the Llama-3.1-PersianQA model with the Hugging Face transformers library. Here is a sample code to get started:
from transformers import pipeline
# Load the model
qa_pipeline = pipeline("question-answering", model="zpm/Llama-3.1-PersianQA")
# Example usage
context = "شرکت فولاد مبارکۀ اصفهان، بزرگترین واحد صنعتی خصوصی در ایران و بزرگترین مجتمع تولید فولاد در خاورمیانه است."
question = "شرکت فولاد مبارکه در کجا واقع شده است؟"
result = qa_pipeline(question=question, context=context)
print(result)