IslamQA commited on
Commit
1903fde
·
verified ·
1 Parent(s): 85bf85c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md CHANGED
@@ -66,3 +66,46 @@ adapter_repo = "IslamQA/multilingual-e5-large-instruct-finetuned"
66
 
67
  model = PeftModel.from_pretrained(base_model, adapter_repo)
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  model = PeftModel.from_pretrained(base_model, adapter_repo)
68
 
69
+
70
+
71
+
72
+
73
+ # Model Card for Model ID
74
+
75
+ <!-- Provide a quick summary of what the model is/does. -->
76
+
77
+ An embedding model optimized for retrieving passages that answer questions
78
+ about Islam. The passages are inherently multilingual, as they contain
79
+ quotes from the Quran and Hadith. They often include preambles like
80
+ "Bismillah" in various languages and follow a specific writing style.
81
+ ## Model Details
82
+
83
+
84
+ ### Model Sources [optional]
85
+
86
+ - https://islamqa.info/
87
+ - https://islamweb.net/
88
+ - https://hadithanswers.com/
89
+ - https://askimam.org/
90
+ - https://sorularlaislamiyet.com/
91
+
92
+ ## Uses
93
+
94
+ - embedding
95
+ - retrieval
96
+ - islam
97
+ - multilingual
98
+ - q&a
99
+
100
+
101
+ from transformers import AutoModel, AutoTokenizer
102
+ from peft import PeftModel
103
+
104
+ # Load the base model and tokenizer
105
+ base_model_name = "intfloat/multilingual-e5-large-instruct"
106
+ tokenizer = AutoTokenizer.from_pretrained(base_model_name)
107
+ base_model = AutoModel.from_pretrained(base_model_name)
108
+
109
+ # Load the LoRA adapter directly
110
+ adapter_repo = "IslamQA/multilingual-e5-large-instruct-finetuned"
111
+ model = PeftModel.from_pretrained(base_model, adapter_repo)