RichardErkhov commited on
Commit
f3aa2dc
1 Parent(s): 4229a5d

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +218 -0
README.md ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Mistral-7B-v0.2-meditron-turkish - GGUF
11
+ - Model creator: https://huggingface.co/malhajar/
12
+ - Original model: https://huggingface.co/malhajar/Mistral-7B-v0.2-meditron-turkish/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [Mistral-7B-v0.2-meditron-turkish.Q2_K.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q2_K.gguf) | Q2_K | 2.53GB |
18
+ | [Mistral-7B-v0.2-meditron-turkish.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.IQ3_XS.gguf) | IQ3_XS | 2.81GB |
19
+ | [Mistral-7B-v0.2-meditron-turkish.IQ3_S.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.IQ3_S.gguf) | IQ3_S | 2.96GB |
20
+ | [Mistral-7B-v0.2-meditron-turkish.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q3_K_S.gguf) | Q3_K_S | 2.95GB |
21
+ | [Mistral-7B-v0.2-meditron-turkish.IQ3_M.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.IQ3_M.gguf) | IQ3_M | 3.06GB |
22
+ | [Mistral-7B-v0.2-meditron-turkish.Q3_K.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q3_K.gguf) | Q3_K | 3.28GB |
23
+ | [Mistral-7B-v0.2-meditron-turkish.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q3_K_M.gguf) | Q3_K_M | 3.28GB |
24
+ | [Mistral-7B-v0.2-meditron-turkish.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q3_K_L.gguf) | Q3_K_L | 3.56GB |
25
+ | [Mistral-7B-v0.2-meditron-turkish.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.IQ4_XS.gguf) | IQ4_XS | 3.67GB |
26
+ | [Mistral-7B-v0.2-meditron-turkish.Q4_0.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q4_0.gguf) | Q4_0 | 3.83GB |
27
+ | [Mistral-7B-v0.2-meditron-turkish.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.IQ4_NL.gguf) | IQ4_NL | 3.87GB |
28
+ | [Mistral-7B-v0.2-meditron-turkish.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q4_K_S.gguf) | Q4_K_S | 3.86GB |
29
+ | [Mistral-7B-v0.2-meditron-turkish.Q4_K.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q4_K.gguf) | Q4_K | 4.07GB |
30
+ | [Mistral-7B-v0.2-meditron-turkish.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q4_K_M.gguf) | Q4_K_M | 4.07GB |
31
+ | [Mistral-7B-v0.2-meditron-turkish.Q4_1.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q4_1.gguf) | Q4_1 | 4.24GB |
32
+ | [Mistral-7B-v0.2-meditron-turkish.Q5_0.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q5_0.gguf) | Q5_0 | 4.65GB |
33
+ | [Mistral-7B-v0.2-meditron-turkish.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q5_K_S.gguf) | Q5_K_S | 4.65GB |
34
+ | [Mistral-7B-v0.2-meditron-turkish.Q5_K.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q5_K.gguf) | Q5_K | 4.78GB |
35
+ | [Mistral-7B-v0.2-meditron-turkish.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q5_K_M.gguf) | Q5_K_M | 4.78GB |
36
+ | [Mistral-7B-v0.2-meditron-turkish.Q5_1.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q5_1.gguf) | Q5_1 | 5.07GB |
37
+ | [Mistral-7B-v0.2-meditron-turkish.Q6_K.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q6_K.gguf) | Q6_K | 5.53GB |
38
+ | [Mistral-7B-v0.2-meditron-turkish.Q8_0.gguf](https://huggingface.co/RichardErkhov/malhajar_-_Mistral-7B-v0.2-meditron-turkish-gguf/blob/main/Mistral-7B-v0.2-meditron-turkish.Q8_0.gguf) | Q8_0 | 7.17GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ language:
46
+ - tr
47
+ - en
48
+ license: apache-2.0
49
+ datasets:
50
+ - malhajar/meditron-tr
51
+ model-index:
52
+ - name: Mistral-7B-v0.2-meditron-turkish
53
+ results:
54
+ - task:
55
+ type: text-generation
56
+ name: Text Generation
57
+ dataset:
58
+ name: AI2 Reasoning Challenge (25-Shot)
59
+ type: ai2_arc
60
+ config: ARC-Challenge
61
+ split: test
62
+ args:
63
+ num_few_shot: 25
64
+ metrics:
65
+ - type: acc_norm
66
+ value: 59.56
67
+ name: normalized accuracy
68
+ source:
69
+ url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=malhajar/Mistral-7B-v0.2-meditron-turkish
70
+ name: Open LLM Leaderboard
71
+ - task:
72
+ type: text-generation
73
+ name: Text Generation
74
+ dataset:
75
+ name: HellaSwag (10-Shot)
76
+ type: hellaswag
77
+ split: validation
78
+ args:
79
+ num_few_shot: 10
80
+ metrics:
81
+ - type: acc_norm
82
+ value: 81.79
83
+ name: normalized accuracy
84
+ source:
85
+ url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=malhajar/Mistral-7B-v0.2-meditron-turkish
86
+ name: Open LLM Leaderboard
87
+ - task:
88
+ type: text-generation
89
+ name: Text Generation
90
+ dataset:
91
+ name: MMLU (5-Shot)
92
+ type: cais/mmlu
93
+ config: all
94
+ split: test
95
+ args:
96
+ num_few_shot: 5
97
+ metrics:
98
+ - type: acc
99
+ value: 60.35
100
+ name: accuracy
101
+ source:
102
+ url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=malhajar/Mistral-7B-v0.2-meditron-turkish
103
+ name: Open LLM Leaderboard
104
+ - task:
105
+ type: text-generation
106
+ name: Text Generation
107
+ dataset:
108
+ name: TruthfulQA (0-shot)
109
+ type: truthful_qa
110
+ config: multiple_choice
111
+ split: validation
112
+ args:
113
+ num_few_shot: 0
114
+ metrics:
115
+ - type: mc2
116
+ value: 66.19
117
+ source:
118
+ url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=malhajar/Mistral-7B-v0.2-meditron-turkish
119
+ name: Open LLM Leaderboard
120
+ - task:
121
+ type: text-generation
122
+ name: Text Generation
123
+ dataset:
124
+ name: Winogrande (5-shot)
125
+ type: winogrande
126
+ config: winogrande_xl
127
+ split: validation
128
+ args:
129
+ num_few_shot: 5
130
+ metrics:
131
+ - type: acc
132
+ value: 76.24
133
+ name: accuracy
134
+ source:
135
+ url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=malhajar/Mistral-7B-v0.2-meditron-turkish
136
+ name: Open LLM Leaderboard
137
+ - task:
138
+ type: text-generation
139
+ name: Text Generation
140
+ dataset:
141
+ name: GSM8k (5-shot)
142
+ type: gsm8k
143
+ config: main
144
+ split: test
145
+ args:
146
+ num_few_shot: 5
147
+ metrics:
148
+ - type: acc
149
+ value: 35.94
150
+ name: accuracy
151
+ source:
152
+ url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=malhajar/Mistral-7B-v0.2-meditron-turkish
153
+ name: Open LLM Leaderboard
154
+ ---
155
+
156
+ # Model Card for Model ID
157
+
158
+ <!-- Provide a quick summary of what the model is/does. -->
159
+ Mistral-7B-v0.2-meditron-turkish is a finetuned Mistral Model version using Freeze technique on Turkish Meditron dataset of [`malhajar/meditron-7b-tr`](https://huggingface.co/datasets/malhajar/meditron-tr) using SFT Training.
160
+ This model can answer information about different excplicit ideas in medicine in Turkish and English
161
+
162
+ ### Model Description
163
+
164
+ - **Finetuned by:** [`Mohamad Alhajar`](https://www.linkedin.com/in/muhammet-alhajar/)
165
+ - **Language(s) (NLP):** Turkish,English
166
+ - **Finetuned from model:** [`mistralai/Mistral-7B-Instruct-v0.2`](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2)
167
+
168
+ ### Prompt Template For Turkish Generation
169
+ ```
170
+ ### Kullancı:
171
+ ```
172
+ ### Prompt Template For English Generation
173
+ ```
174
+ ### User:
175
+ ```
176
+
177
+ ## How to Get Started with the Model
178
+
179
+ Use the code sample provided in the original post to interact with the model.
180
+ ```python
181
+ from transformers import AutoTokenizer,AutoModelForCausalLM
182
+
183
+ model_id = "malhajar/Mistral-7B-v0.2-meditron-turkish"
184
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
185
+ device_map="auto",
186
+ torch_dtype=torch.float16,
187
+ revision="main")
188
+
189
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
190
+
191
+ question: "Akciğer kanseri nedir?"
192
+ # For generating a response
193
+ prompt = '''
194
+ ### Kullancı:
195
+ {question}
196
+ '''
197
+ input_ids = tokenizer(prompt, return_tensors="pt").input_ids
198
+ output = model.generate(inputs=input_ids,max_new_tokens=512,pad_token_id=tokenizer.eos_token_id,top_k=50, do_sample=True,
199
+ top_p=0.95)
200
+ response = tokenizer.decode(output[0])
201
+
202
+ print(response)
203
+ ```
204
+ # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
205
+ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_malhajar__Mistral-7B-v0.2-meditron-turkish)
206
+
207
+ | Metric |Value|
208
+ |---------------------------------|----:|
209
+ |Avg. |63.34|
210
+ |AI2 Reasoning Challenge (25-Shot)|59.56|
211
+ |HellaSwag (10-Shot) |81.79|
212
+ |MMLU (5-Shot) |60.35|
213
+ |TruthfulQA (0-shot) |66.19|
214
+ |Winogrande (5-shot) |76.24|
215
+ |GSM8k (5-shot) |35.94|
216
+
217
+
218
+