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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
gemma-2b-it-tamil-v0.1-alpha - GGUF
|
11 |
+
- Model creator: https://huggingface.co/abhinand/
|
12 |
+
- Original model: https://huggingface.co/abhinand/gemma-2b-it-tamil-v0.1-alpha/
|
13 |
+
|
14 |
+
|
15 |
+
| Name | Quant method | Size |
|
16 |
+
| ---- | ---- | ---- |
|
17 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q2_K.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q2_K.gguf) | Q2_K | 1.08GB |
|
18 |
+
| [gemma-2b-it-tamil-v0.1-alpha.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.IQ3_XS.gguf) | IQ3_XS | 1.16GB |
|
19 |
+
| [gemma-2b-it-tamil-v0.1-alpha.IQ3_S.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.IQ3_S.gguf) | IQ3_S | 1.2GB |
|
20 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q3_K_S.gguf) | Q3_K_S | 1.2GB |
|
21 |
+
| [gemma-2b-it-tamil-v0.1-alpha.IQ3_M.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.IQ3_M.gguf) | IQ3_M | 1.22GB |
|
22 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q3_K.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q3_K.gguf) | Q3_K | 1.29GB |
|
23 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q3_K_M.gguf) | Q3_K_M | 1.29GB |
|
24 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q3_K_L.gguf) | Q3_K_L | 1.36GB |
|
25 |
+
| [gemma-2b-it-tamil-v0.1-alpha.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.IQ4_XS.gguf) | IQ4_XS | 1.4GB |
|
26 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q4_0.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q4_0.gguf) | Q4_0 | 1.44GB |
|
27 |
+
| [gemma-2b-it-tamil-v0.1-alpha.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.IQ4_NL.gguf) | IQ4_NL | 1.45GB |
|
28 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q4_K_S.gguf) | Q4_K_S | 1.45GB |
|
29 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q4_K.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q4_K.gguf) | Q4_K | 1.52GB |
|
30 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q4_K_M.gguf) | Q4_K_M | 1.52GB |
|
31 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q4_1.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q4_1.gguf) | Q4_1 | 1.56GB |
|
32 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q5_0.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q5_0.gguf) | Q5_0 | 1.68GB |
|
33 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q5_K_S.gguf) | Q5_K_S | 1.68GB |
|
34 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q5_K.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q5_K.gguf) | Q5_K | 1.71GB |
|
35 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q5_K_M.gguf) | Q5_K_M | 1.71GB |
|
36 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q5_1.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q5_1.gguf) | Q5_1 | 1.79GB |
|
37 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q6_K.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q6_K.gguf) | Q6_K | 1.92GB |
|
38 |
+
| [gemma-2b-it-tamil-v0.1-alpha.Q8_0.gguf](https://huggingface.co/RichardErkhov/abhinand_-_gemma-2b-it-tamil-v0.1-alpha-gguf/blob/main/gemma-2b-it-tamil-v0.1-alpha.Q8_0.gguf) | Q8_0 | 2.49GB |
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
Original model description:
|
44 |
+
---
|
45 |
+
language:
|
46 |
+
- en
|
47 |
+
- ta
|
48 |
+
license: other
|
49 |
+
datasets:
|
50 |
+
- vicgalle/alpaca-gpt4
|
51 |
+
- abhinand/tamil-alpaca
|
52 |
+
license_name: gemma-terms-of-use
|
53 |
+
license_link: https://ai.google.dev/gemma/terms
|
54 |
+
base_model: abhinand/gemma-2b-tamil
|
55 |
+
model-index:
|
56 |
+
- name: gemma-2b-it-tamil-v0.1-alpha
|
57 |
+
results:
|
58 |
+
- task:
|
59 |
+
type: text-generation
|
60 |
+
name: Text Generation
|
61 |
+
dataset:
|
62 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
63 |
+
type: ai2_arc
|
64 |
+
config: ARC-Challenge
|
65 |
+
split: test
|
66 |
+
args:
|
67 |
+
num_few_shot: 25
|
68 |
+
metrics:
|
69 |
+
- type: acc_norm
|
70 |
+
value: 50.09
|
71 |
+
name: normalized accuracy
|
72 |
+
source:
|
73 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=abhinand/gemma-2b-it-tamil-v0.1-alpha
|
74 |
+
name: Open LLM Leaderboard
|
75 |
+
- task:
|
76 |
+
type: text-generation
|
77 |
+
name: Text Generation
|
78 |
+
dataset:
|
79 |
+
name: HellaSwag (10-Shot)
|
80 |
+
type: hellaswag
|
81 |
+
split: validation
|
82 |
+
args:
|
83 |
+
num_few_shot: 10
|
84 |
+
metrics:
|
85 |
+
- type: acc_norm
|
86 |
+
value: 71.41
|
87 |
+
name: normalized accuracy
|
88 |
+
source:
|
89 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=abhinand/gemma-2b-it-tamil-v0.1-alpha
|
90 |
+
name: Open LLM Leaderboard
|
91 |
+
- task:
|
92 |
+
type: text-generation
|
93 |
+
name: Text Generation
|
94 |
+
dataset:
|
95 |
+
name: MMLU (5-Shot)
|
96 |
+
type: cais/mmlu
|
97 |
+
config: all
|
98 |
+
split: test
|
99 |
+
args:
|
100 |
+
num_few_shot: 5
|
101 |
+
metrics:
|
102 |
+
- type: acc
|
103 |
+
value: 39.94
|
104 |
+
name: accuracy
|
105 |
+
source:
|
106 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=abhinand/gemma-2b-it-tamil-v0.1-alpha
|
107 |
+
name: Open LLM Leaderboard
|
108 |
+
- task:
|
109 |
+
type: text-generation
|
110 |
+
name: Text Generation
|
111 |
+
dataset:
|
112 |
+
name: TruthfulQA (0-shot)
|
113 |
+
type: truthful_qa
|
114 |
+
config: multiple_choice
|
115 |
+
split: validation
|
116 |
+
args:
|
117 |
+
num_few_shot: 0
|
118 |
+
metrics:
|
119 |
+
- type: mc2
|
120 |
+
value: 42.63
|
121 |
+
source:
|
122 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=abhinand/gemma-2b-it-tamil-v0.1-alpha
|
123 |
+
name: Open LLM Leaderboard
|
124 |
+
- task:
|
125 |
+
type: text-generation
|
126 |
+
name: Text Generation
|
127 |
+
dataset:
|
128 |
+
name: Winogrande (5-shot)
|
129 |
+
type: winogrande
|
130 |
+
config: winogrande_xl
|
131 |
+
split: validation
|
132 |
+
args:
|
133 |
+
num_few_shot: 5
|
134 |
+
metrics:
|
135 |
+
- type: acc
|
136 |
+
value: 64.96
|
137 |
+
name: accuracy
|
138 |
+
source:
|
139 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=abhinand/gemma-2b-it-tamil-v0.1-alpha
|
140 |
+
name: Open LLM Leaderboard
|
141 |
+
- task:
|
142 |
+
type: text-generation
|
143 |
+
name: Text Generation
|
144 |
+
dataset:
|
145 |
+
name: GSM8k (5-shot)
|
146 |
+
type: gsm8k
|
147 |
+
config: main
|
148 |
+
split: test
|
149 |
+
args:
|
150 |
+
num_few_shot: 5
|
151 |
+
metrics:
|
152 |
+
- type: acc
|
153 |
+
value: 16.6
|
154 |
+
name: accuracy
|
155 |
+
source:
|
156 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=abhinand/gemma-2b-it-tamil-v0.1-alpha
|
157 |
+
name: Open LLM Leaderboard
|
158 |
+
---
|
159 |
+
|
160 |
+
# Gemma 2B Tamil v0.1 Alpha [Experimental Release]
|
161 |
+
|
162 |
+
This is a Tamil instruction finetuned version of Google's Gemma 2B model. This is an experiment to see if Gemma can be adapted for Tamil without expanding vocabulary. While the responses may be rusty at times, it shows a lot of promise for a 2B parameter model.
|
163 |
+
|
164 |
+
**Procedure:**
|
165 |
+
|
166 |
+
1. The [Gemma base model](https://huggingface.co/google/gemma-2b) was continually pretrained on all available Tamil Wikipedia data for 3 epochs.
|
167 |
+
2. The updated model was then finetuned on a mix of English and Tamil alpaca datasets for 5 epochs.
|
168 |
+
|
169 |
+
> **Note:** This project is currently under development (FOR TAMIL). The initial pretraining phase may not have been extensive enough, which suggests that the model's performance could improve by extending the pretraining on a larger dataset, such as CulturaX.
|
170 |
+
|
171 |
+
### π Benchmarks
|
172 |
+
|
173 |
+
This model outperforms Google's Gemma 2B base and instruct models on all benchmarks in Nous evaluation suite. It also surprisingly outperforms [mlabonne/Gemmalpaca-2B](https://huggingface.co/mlabonne/Gemmalpaca-2B) (the best performing 2B model in benchmarks as of Feb 25, 2024) despite being a model aimed at language adaptation.
|
174 |
+
|
175 |
+
| Model | Average | AGIEval | GPT4All | TruthfulQA | Bigbench |
|
176 |
+
|---|---:|---:|---:|---:|---:|
|
177 |
+
|[gemma-2b-it-tamil-v0.1-alpha](https://huggingface.co/abhinand/gemma-2b-it-tamil-v0.1-alpha)[π](https://gist.github.com/abhinand5/559d542437f6b7060fee94cc1f7861f5)| 39.41| 23.38| 58.94| 43.18| 32.14|
|
178 |
+
| [mlabonne/Gemmalpaca-2B](https://huggingface.co/mlabonne/Gemmalpaca-2B) [π](https://gist.github.com/mlabonne/4b638752fc3227df566f9562064cb864) | 38.39 | 24.48 | 51.22 | 47.02 | 30.85 |
|
179 |
+
| [google/gemma-2b-it](https://huggingface.co/google/gemma-2b-it) [π](https://gist.github.com/mlabonne/db0761e74175573292acf497da9e5d95) | 36.1 | 23.76 | 43.6 | 47.64 | 29.41 |
|
180 |
+
| [google/gemma-2b](https://huggingface.co/google/gemma-2b) [π](https://gist.github.com/mlabonne/7df1f238c515a5f63a750c8792cef59e) | 34.26 | 22.7 | 43.35 | 39.96 | 31.03 |
|
181 |
+
|
182 |
+
## Model description
|
183 |
+
|
184 |
+
- **Model type:** A 2B parameter GPT-like model finetuned on 100,000 samples consisting of an equal proportion of English and Tamil samples.
|
185 |
+
- **Language(s):** Bilingual. English and Tamil.
|
186 |
+
- **License:** [Google Gemma Terms of Use](https://ai.google.dev/gemma/terms)
|
187 |
+
- **Finetuned from model:** [abhinand/gemma-2b-tamil](https://huggingface.co/abhinand/gemma-2b-tamil)
|
188 |
+
- **Training Precision:** `bfloat16`
|
189 |
+
- **Training Hardware:** 4x Nvidia RTX 3090 GPUs
|
190 |
+
- **Training Cost:** $20
|
191 |
+
|
192 |
+
|
193 |
+
## Support my work
|
194 |
+
|
195 |
+
If you appreciate this work and would like to support its continued development, consider [buying me a coffee](https://www.buymeacoffee.com/abhinand.b). Your support is invaluable and greatly appreciated.
|
196 |
+
|
197 |
+
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/abhinand.b)
|
198 |
+
|
199 |
+
## Prompting Format [Alpaca]
|
200 |
+
|
201 |
+
**Prompt Template Without Input**
|
202 |
+
|
203 |
+
```
|
204 |
+
{system_prompt}
|
205 |
+
|
206 |
+
### Instruction:
|
207 |
+
{instruction or query}
|
208 |
+
|
209 |
+
### Response:
|
210 |
+
{response}
|
211 |
+
```
|
212 |
+
|
213 |
+
**Prompt Template With Input**
|
214 |
+
|
215 |
+
```
|
216 |
+
{system_prompt}
|
217 |
+
|
218 |
+
### Instruction:
|
219 |
+
{instruction or query}
|
220 |
+
|
221 |
+
### Input:
|
222 |
+
{input}
|
223 |
+
|
224 |
+
### Response:
|
225 |
+
{response}
|
226 |
+
```
|
227 |
+
|
228 |
+
## Usage Note
|
229 |
+
|
230 |
+
It's important to note that the models have not undergone detoxification. Therefore, while they possess impressive linguistic capabilities, there is a possibility for them to generate content that could be deemed harmful or offensive. We urge users to exercise discretion and supervise the model's outputs closely, especially in public or sensitive applications.
|
231 |
+
|
232 |
+
## Meet the Developers
|
233 |
+
|
234 |
+
Get to know the creators behind this innovative model and follow their contributions to the field:
|
235 |
+
|
236 |
+
- [Abhinand Balachandran](https://www.linkedin.com/in/abhinand-05/)
|
237 |
+
|
238 |
+
We hope this model serves as a valuable tool in your NLP toolkit and look forward to seeing the advancements it will enable in the understanding and generation of the Tamil language.
|
239 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
240 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_abhinand__gemma-2b-it-tamil-v0.1-alpha)
|
241 |
+
|
242 |
+
| Metric |Value|
|
243 |
+
|---------------------------------|----:|
|
244 |
+
|Avg. |47.60|
|
245 |
+
|AI2 Reasoning Challenge (25-Shot)|50.09|
|
246 |
+
|HellaSwag (10-Shot) |71.41|
|
247 |
+
|MMLU (5-Shot) |39.94|
|
248 |
+
|TruthfulQA (0-shot) |42.63|
|
249 |
+
|Winogrande (5-shot) |64.96|
|
250 |
+
|GSM8k (5-shot) |16.60|
|
251 |
+
|
252 |
+
|
253 |
+
|