zpm commited on
Commit
697f5d9
1 Parent(s): db8d0c5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -1
README.md CHANGED
@@ -11,4 +11,62 @@ tags:
11
  - trl
12
  - QA
13
  pipeline_tag: document-question-answering
14
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  - trl
12
  - QA
13
  pipeline_tag: document-question-answering
14
+ ---
15
+
16
+ ---
17
+ language: fa
18
+ tags:
19
+ - question-answering
20
+ - llama3
21
+ - Persian
22
+ - QA
23
+ license: apache-2.0
24
+ model_name: Llama-3.1-PersianQA
25
+ ---
26
+
27
+ # Model Card for `Llama-3.1-PersianQA`
28
+
29
+ ## Model Description
30
+
31
+ The `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.
32
+
33
+ ## Intended Use
34
+
35
+ 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.
36
+
37
+ ### Use Cases
38
+
39
+ - **Customer Support:** Automate responses to customer queries in Persian.
40
+ - **Educational Tools:** Provide assistance and answers to questions in Persian educational platforms.
41
+ - **Content Retrieval:** Extract relevant information from Persian texts based on user queries.
42
+
43
+ ## Training Data
44
+
45
+ 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.
46
+
47
+ ## Model Architecture
48
+
49
+ - **Base Model:** Llama3
50
+ - **Task:** Question Answering
51
+ - **Language:** Persian
52
+
53
+ ## Performance
54
+
55
+ 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.
56
+
57
+ ## How to Use
58
+
59
+ You can use the `Llama-3.1-PersianQA` model with the Hugging Face `transformers` library. Here is a sample code to get started:
60
+
61
+ ```python
62
+ from transformers import pipeline
63
+
64
+ # Load the model
65
+ qa_pipeline = pipeline("question-answering", model="zpm/Llama-3.1-PersianQA")
66
+
67
+ # Example usage
68
+ context = "شرکت فولاد مبارکۀ اصفهان، بزرگ‌ترین واحد صنعتی خصوصی در ایران و بزرگ‌ترین مجتمع تولید فولاد در خاورمیانه است."
69
+ question = "شرکت فولاد مبارکه در کجا واقع شده است؟"
70
+
71
+ result = qa_pipeline(question=question, context=context)
72
+ print(result)