Views
No views yet
Llama-3.1-PersianQALlama-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.Llama-3.1-PersianQA model with the Hugging Face transformers library. Here is a sample code to get started:1from transformers import pipeline
2
3# Load the model
4qa_pipeline = pipeline("question-answering", model="zpm/Llama-3.1-PersianQA")
5
6# Example usage
7context = "شرکت فولاد مبارکۀ اصفهان، بزرگترین واحد صنعتی خصوصی در ایران و بزرگترین مجتمع تولید فولاد در خاورمیانه است."
8question = "شرکت فولاد مبارکه در کجا واقع شده است؟"
9
10result = qa_pipeline(question=question, context=context)
11print(result)