RichardErkhov commited on
Commit
f04736a
·
verified ·
1 Parent(s): 981e126

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +172 -0
README.md ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ RoLlama2-7b-Instruct - GGUF
11
+ - Model creator: https://huggingface.co/OpenLLM-Ro/
12
+ - Original model: https://huggingface.co/OpenLLM-Ro/RoLlama2-7b-Instruct/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [RoLlama2-7b-Instruct.Q2_K.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q2_K.gguf) | Q2_K | 2.36GB |
18
+ | [RoLlama2-7b-Instruct.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.IQ3_XS.gguf) | IQ3_XS | 2.6GB |
19
+ | [RoLlama2-7b-Instruct.IQ3_S.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.IQ3_S.gguf) | IQ3_S | 2.75GB |
20
+ | [RoLlama2-7b-Instruct.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q3_K_S.gguf) | Q3_K_S | 2.75GB |
21
+ | [RoLlama2-7b-Instruct.IQ3_M.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.IQ3_M.gguf) | IQ3_M | 2.9GB |
22
+ | [RoLlama2-7b-Instruct.Q3_K.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q3_K.gguf) | Q3_K | 3.07GB |
23
+ | [RoLlama2-7b-Instruct.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q3_K_M.gguf) | Q3_K_M | 3.07GB |
24
+ | [RoLlama2-7b-Instruct.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q3_K_L.gguf) | Q3_K_L | 3.35GB |
25
+ | [RoLlama2-7b-Instruct.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.IQ4_XS.gguf) | IQ4_XS | 3.4GB |
26
+ | [RoLlama2-7b-Instruct.Q4_0.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q4_0.gguf) | Q4_0 | 3.56GB |
27
+ | [RoLlama2-7b-Instruct.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.IQ4_NL.gguf) | IQ4_NL | 3.58GB |
28
+ | [RoLlama2-7b-Instruct.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q4_K_S.gguf) | Q4_K_S | 3.59GB |
29
+ | [RoLlama2-7b-Instruct.Q4_K.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q4_K.gguf) | Q4_K | 3.8GB |
30
+ | [RoLlama2-7b-Instruct.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q4_K_M.gguf) | Q4_K_M | 3.8GB |
31
+ | [RoLlama2-7b-Instruct.Q4_1.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q4_1.gguf) | Q4_1 | 3.95GB |
32
+ | [RoLlama2-7b-Instruct.Q5_0.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q5_0.gguf) | Q5_0 | 4.33GB |
33
+ | [RoLlama2-7b-Instruct.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q5_K_S.gguf) | Q5_K_S | 4.33GB |
34
+ | [RoLlama2-7b-Instruct.Q5_K.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q5_K.gguf) | Q5_K | 4.45GB |
35
+ | [RoLlama2-7b-Instruct.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q5_K_M.gguf) | Q5_K_M | 4.45GB |
36
+ | [RoLlama2-7b-Instruct.Q5_1.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q5_1.gguf) | Q5_1 | 4.72GB |
37
+ | [RoLlama2-7b-Instruct.Q6_K.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q6_K.gguf) | Q6_K | 5.15GB |
38
+ | [RoLlama2-7b-Instruct.Q8_0.gguf](https://huggingface.co/RichardErkhov/OpenLLM-Ro_-_RoLlama2-7b-Instruct-gguf/blob/main/RoLlama2-7b-Instruct.Q8_0.gguf) | Q8_0 | 6.67GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: cc-by-nc-4.0
46
+ language:
47
+ - ro
48
+ ---
49
+
50
+ # Model Card for Model ID
51
+
52
+ <!-- Provide a quick summary of what the model is/does. -->
53
+
54
+ RoLlama2 is a family of pretrained and fine-tuned generative text models for Romanian. This is the repository for the **instruct 7B model**. Links to other models can be found at the bottom of this page.
55
+
56
+ ## Model Details
57
+
58
+ ### Model Description
59
+
60
+ <!-- Provide a longer summary of what this model is. -->
61
+ OpenLLM represents the first open-source effort to build a LLM specialized for Romanian. OpenLLM-Ro developed and publicly releases a collection of Romanian LLMs, both in the form of foundational model and instruct and chat variants.
62
+
63
+
64
+ - **Developed by:** OpenLLM-Ro
65
+ <!-- - **Funded by [optional]:** [More Information Needed] -->
66
+ <!-- - **Shared by [optional]:** [More Information Needed] -->
67
+ <!-- - **Model type:** [More Information Needed] -->
68
+ - **Language(s):** Romanian
69
+ - **License:** cc-by-nc-4.0
70
+ - **Finetuned from model:** [RoLlama2-7b-Base](https://huggingface.co/OpenLLM-Ro/RoLlama2-7b-Base)
71
+
72
+
73
+ ### Model Sources
74
+
75
+ <!-- Provide the basic links for the model. -->
76
+
77
+ - **Repository:** https://github.com/OpenLLM-Ro/llama-recipes
78
+ - **Paper:** https://arxiv.org/abs/2406.18266
79
+
80
+ ## Intended Use
81
+
82
+ ### Intended Use Cases
83
+
84
+ RoLlama2 is intented for research use in Romanian. Base models can be adapted for a variety of natural language tasks while instruction and chat tuned models are intended for assistant-like chat.
85
+
86
+ ### Out-of-Scope Use
87
+
88
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
89
+
90
+ Use in any manner that violates the license, any applicable laws or regluations, use in languages other than Romanian.
91
+
92
+
93
+
94
+ ## How to Get Started with the Model
95
+
96
+ Use the code below to get started with the model.
97
+
98
+ ```python
99
+ from transformers import AutoTokenizer, AutoModelForCausalLM
100
+
101
+ tokenizer = AutoTokenizer.from_pretrained("OpenLLM-Ro/RoLlama2-7b-Instruct")
102
+ model = AutoModelForCausalLM.from_pretrained("OpenLLM-Ro/RoLlama2-7b-Instruct")
103
+
104
+ instruction = "Care este cel mai înalt vârf muntos din România?"
105
+ chat = [
106
+ {"role": "system", "content": "Ești un asistent folositor, respectuos și onest. Încearcă să ajuți cât mai mult prin informațiile oferite, excluzând răspunsuri toxice, rasiste, sexiste, periculoase și ilegale."},
107
+ {"role": "user", "content": instruction},
108
+ ]
109
+ prompt = tokenizer.apply_chat_template(chat, tokenize=False)
110
+
111
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
112
+ outputs = model.generate(input_ids=inputs, max_new_tokens=128)
113
+ print(tokenizer.decode(outputs[0]))
114
+ ```
115
+
116
+ ## Benchmarks
117
+
118
+ | Model | Average | ARC | MMLU |Winogrande|HellaSwag | GSM8k |TruthfulQA|
119
+ |--------------------|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|
120
+ | Llama-2-7b-chat | 38.03 | 37.95 | 27.22 | 59.29 | 57.22 | 2.53 | 44.00 |
121
+ |*RoLlama2-7b-Instruct*|***45.71***|***43.66***|***39.70***|***70.34*** | *57.36* |***18.78***| *44.44* |
122
+ |RoLlama2-7b-Chat | 43.82 | 41.92 | 37.29 | 66.68 | **57.91**| 13.47 | **45.65**|
123
+
124
+
125
+
126
+
127
+ ## MT-Bench
128
+
129
+
130
+ | Model | Average | 1st turn | 2nd turn | Answers in Ro |
131
+ |--------------------|:--------:|:--------:|:--------:|:--------:|
132
+ | Llama-2-7b-chat | 1.21 | 1.68 | 0.74 | 44 / 160 |
133
+ |*RoLlama2-7b-Instruct*| ***3.70***|***4.74***| ***2.66*** | ***160 / 160*** |
134
+ |RoLlama2-7b-Chat | TBC | TBC | TBC | TBC |
135
+
136
+ ## RoCulturaBench
137
+
138
+ | Model | Score | Answers in Ro|
139
+ |--------------------|:--------:|:--------:|
140
+ | Llama-2-7b-chat | 1.72 | 48 / 100 |
141
+ |*RoLlama2-7b-Instruct*| ***3.43***| ***160 / 160*** |
142
+ |RoLlama2-7b-Chat | TBC | TBC |
143
+
144
+
145
+
146
+ ## RoLlama2 Model Family
147
+
148
+ | Model | Link |
149
+ |--------------------|:--------:|
150
+ |RoLlama2-7b-Base | [link](https://huggingface.co/OpenLLM-Ro/RoLlama2-7b-Base) |
151
+ |*RoLlama2-7b-Instruct*| [link](https://huggingface.co/OpenLLM-Ro/RoLlama2-7b-Instruct) |
152
+ |RoLlama2-7b-Chat | [link](https://huggingface.co/OpenLLM-Ro/RoLlama2-7b-Chat) |
153
+
154
+
155
+ ## Citation
156
+
157
+ ```
158
+ @misc{masala2024vorbecstiromanecsterecipetrain,
159
+ title={"Vorbe\c{s}ti Rom\^ane\c{s}te?" A Recipe to Train Powerful Romanian LLMs with English Instructions},
160
+ author={Mihai Masala and Denis C. Ilie-Ablachim and Alexandru Dima and Dragos Corlatescu and Miruna Zavelca and Ovio Olaru and Simina Terian-Dan and Andrei Terian-Dan and Marius Leordeanu and Horia Velicu and Marius Popescu and Mihai Dascalu and Traian Rebedea},
161
+ year={2024},
162
+ eprint={2406.18266},
163
+ archivePrefix={arXiv},
164
+ primaryClass={cs.CL},
165
+ url={https://arxiv.org/abs/2406.18266},
166
+ }
167
+ ```
168
+ <!-- **APA:**
169
+
170
+ [More Information Needed] -->
171
+
172
+