mihaimasala commited on
Commit
042903a
1 Parent(s): cd03dec

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +109 -0
README.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - ro
5
+ ---
6
+
7
+ # Model Card for Model ID
8
+
9
+ <!-- Provide a quick summary of what the model is/does. -->
10
+
11
+ RoLlama3 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.
12
+
13
+ ## Model Details
14
+
15
+ ### Model Description
16
+
17
+ <!-- Provide a longer summary of what this model is. -->
18
+ OpenLLM-Ro 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.
19
+
20
+
21
+ - **Developed by:** OpenLLM-Ro
22
+ <!-- - **Funded by [optional]:** [More Information Needed] -->
23
+ <!-- - **Shared by [optional]:** [More Information Needed] -->
24
+ <!-- - **Model type:** [More Information Needed] -->
25
+ - **Language(s):** Romanian
26
+ - **License:** cc-by-nc-4.0
27
+ - **Finetuned from model:** [Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B)
28
+
29
+
30
+ ### Model Sources
31
+
32
+ <!-- Provide the basic links for the model. -->
33
+
34
+ - **Repository:** https://github.com/OpenLLM-Ro/llama-recipes
35
+ - **Paper:** https://arxiv.org/abs/2406.18266
36
+
37
+ ## Intended Use
38
+
39
+ ### Intended Use Cases
40
+
41
+ RoLlama3 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.
42
+
43
+ ### Out-of-Scope Use
44
+
45
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
46
+
47
+ Use in any manner that violates the license, any applicable laws or regluations, use in languages other than Romanian.
48
+
49
+
50
+
51
+ ## How to Get Started with the Model
52
+
53
+ Use the code below to get started with the model.
54
+
55
+ ```python
56
+ from transformers import AutoTokenizer, AutoModelForCausalLM
57
+
58
+ tokenizer = AutoTokenizer.from_pretrained("OpenLLM-Ro/RoLlama3-8b-Instruct")
59
+ model = AutoModelForCausalLM.from_pretrained("OpenLLM-Ro/RoLlama3-8b-Instruct")
60
+
61
+ instruction = "Ce jocuri de societate pot juca cu prietenii mei?"
62
+ chat = [
63
+ {"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."},
64
+ {"role": "user", "content": instruction},
65
+ ]
66
+ prompt = tokenizer.apply_chat_template(chat, tokenize=False, system_message="")
67
+
68
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
69
+ outputs = model.generate(input_ids=inputs, max_new_tokens=128)
70
+ print(tokenizer.decode(outputs[0]))
71
+ ```
72
+
73
+ ## Benchmarks
74
+
75
+ | Model | Average | ARC | MMLU |Winogrande|HellaSwag | GSM8k |TruthfulQA|
76
+ |--------------------|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|
77
+ | Llama-3-8B-Instruct| 50.15 | 43.73 | 49.02 | 59.35 | 53.16 | **44.12** | 51.52 |
78
+ | *RoLlama3-8b-Instruct* | ***50.61*** | ***44.66*** | ***52.19*** | ***67.58*** | ***57.65*** | *30.20* | ***51.39*** |
79
+
80
+
81
+
82
+
83
+ ## MT-Bench
84
+
85
+ | Model | Average | 1st turn | 2nd turn |
86
+ |--------------------|:--------:|:--------:|:--------:|
87
+ | Llama-3-8B-Instruct | **5.92** | **6.36** | **5.49** |
88
+ | *RoLlama3-8b-Instruct*| *5.28* |*6.10*| *4.45* |
89
+
90
+
91
+ ## RoGemma Model Family
92
+
93
+ | Model | Link |
94
+ |--------------------|:--------:|
95
+ |*RoLlama3-7b-Instruct*| [link](https://huggingface.co/OpenLLM-Ro/RoLlama3-8b-Instruct) |
96
+
97
+
98
+ <!--
99
+ ## Citation
100
+
101
+ If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section.
102
+
103
+ **BibTeX:**
104
+
105
+ [More Information Needed]
106
+
107
+ **APA:**
108
+
109
+ [More Information Needed] -->