RichardErkhov
commited on
Commit
•
d8feda0
1
Parent(s):
2dba628
uploaded readme
Browse files
README.md
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
Fine-Tuning-Gemma-2b-it-for-Arabic - GGUF
|
11 |
+
- Model creator: https://huggingface.co/Ruqiya/
|
12 |
+
- Original model: https://huggingface.co/Ruqiya/Fine-Tuning-Gemma-2b-it-for-Arabic/
|
13 |
+
|
14 |
+
|
15 |
+
| Name | Quant method | Size |
|
16 |
+
| ---- | ---- | ---- |
|
17 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q2_K.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q2_K.gguf) | Q2_K | 1.08GB |
|
18 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.IQ3_XS.gguf) | IQ3_XS | 1.16GB |
|
19 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.IQ3_S.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.IQ3_S.gguf) | IQ3_S | 1.2GB |
|
20 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K_S.gguf) | Q3_K_S | 1.2GB |
|
21 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.IQ3_M.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.IQ3_M.gguf) | IQ3_M | 1.22GB |
|
22 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K.gguf) | Q3_K | 1.29GB |
|
23 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K_M.gguf) | Q3_K_M | 1.29GB |
|
24 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q3_K_L.gguf) | Q3_K_L | 1.36GB |
|
25 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.IQ4_XS.gguf) | IQ4_XS | 1.4GB |
|
26 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_0.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_0.gguf) | Q4_0 | 1.44GB |
|
27 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.IQ4_NL.gguf) | IQ4_NL | 1.45GB |
|
28 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_K_S.gguf) | Q4_K_S | 1.45GB |
|
29 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_K.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_K.gguf) | Q4_K | 1.52GB |
|
30 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_K_M.gguf) | Q4_K_M | 1.52GB |
|
31 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_1.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q4_1.gguf) | Q4_1 | 1.56GB |
|
32 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_0.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_0.gguf) | Q5_0 | 1.68GB |
|
33 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_K_S.gguf) | Q5_K_S | 1.68GB |
|
34 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_K.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_K.gguf) | Q5_K | 1.71GB |
|
35 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_K_M.gguf) | Q5_K_M | 1.71GB |
|
36 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_1.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q5_1.gguf) | Q5_1 | 1.79GB |
|
37 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q6_K.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q6_K.gguf) | Q6_K | 1.92GB |
|
38 |
+
| [Fine-Tuning-Gemma-2b-it-for-Arabic.Q8_0.gguf](https://huggingface.co/RichardErkhov/Ruqiya_-_Fine-Tuning-Gemma-2b-it-for-Arabic-gguf/blob/main/Fine-Tuning-Gemma-2b-it-for-Arabic.Q8_0.gguf) | Q8_0 | 2.49GB |
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
Original model description:
|
44 |
+
---
|
45 |
+
datasets:
|
46 |
+
- arbml/CIDAR
|
47 |
+
base_model: google/gemma-2b-it
|
48 |
+
pipeline_tag: text-generation
|
49 |
+
language:
|
50 |
+
- ar
|
51 |
+
- en
|
52 |
+
---
|
53 |
+
|
54 |
+
# Fine-Tuning-Gemma-2b-it-for-Arabic
|
55 |
+
|
56 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
57 |
+
This model is a fine-tuned version of [google/gemma-2b-it](https://huggingface.co/google/gemma-2b-it) on [arbml/CIDAR](https://huggingface.co/datasets/arbml/CIDAR) Arabic dataset.
|
58 |
+
|
59 |
+
It achieves the following results on the evaluation set:
|
60 |
+
- training_loss=2.281057505607605
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
### Direct Use
|
65 |
+
|
66 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
67 |
+
```python
|
68 |
+
!pip install -qU transformers accelerate
|
69 |
+
|
70 |
+
from transformers import AutoTokenizer
|
71 |
+
import transformers
|
72 |
+
import torch
|
73 |
+
|
74 |
+
model = "Ruqiya/Fine-Tuning-Gemma-2b-it-for-Arabic"
|
75 |
+
messages = [{"role": "user", "content": "ما هو الذكاء الاصطناعي؟"}]
|
76 |
+
|
77 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
78 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
79 |
+
pipeline = transformers.pipeline(
|
80 |
+
"text-generation",
|
81 |
+
model=model,
|
82 |
+
torch_dtype=torch.float16,
|
83 |
+
device_map="auto",
|
84 |
+
)
|
85 |
+
|
86 |
+
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
87 |
+
print(outputs[0]["generated_text"])
|
88 |
+
```
|
89 |
+
|
90 |
+
|
91 |
+
|