mihaimasala commited on
Commit
510e93f
·
verified ·
1 Parent(s): c2ad8f4

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +108 -0
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ RoMistral 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
+ RoLlama2 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 [optional]:** [More Information Needed] -->
28
+
29
+ ### Model Sources
30
+
31
+ <!-- Provide the basic links for the model. -->
32
+
33
+ - **Repository:** https://github.com/OpenLLM-Ro/llama-recipes
34
+ - **Paper:** https://arxiv.org/abs/2405.07703
35
+
36
+ ## Intended Use
37
+
38
+ ### Intended Use Cases
39
+
40
+ RoMistral 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.
41
+
42
+ ### Out-of-Scope Use
43
+
44
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
45
+
46
+ Use in any manner that violates the license, any applicable laws or regluations, use in languages other than Romanian.
47
+
48
+
49
+
50
+ ## How to Get Started with the Model
51
+
52
+ Use the code below to get started with the model.
53
+
54
+ ```python
55
+ from transformers import AutoTokenizer, AutoModelForCausalLM
56
+
57
+ tokenizer = AutoTokenizer.from_pretrained("OpenLLM-Ro/RoMistral-7b-Instruct")
58
+ model = AutoModelForCausalLM.from_pretrained("OpenLLM-Ro/RoMistral-7b-Instruct")
59
+
60
+ instruction = "Care este cel mai înalt vârf muntos din România?"
61
+ chat = [
62
+ {"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."},
63
+ {"role": "user", "content": instruction},
64
+ ]
65
+ prompt = tokenizer.apply_chat_template(chat, tokenize=False)
66
+
67
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
68
+ outputs = model.generate(input_ids=inputs, max_new_tokens=128)
69
+ print(tokenizer.decode(outputs[0]))
70
+ ```
71
+
72
+ ## Benchmarks
73
+
74
+ | Model | Average | ARC | MMLU |Winogrande|HellaSwag | GSM8k |TruthfulQA|
75
+ |--------------------|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|
76
+ | Mistral-7B-Instruct-v0.2| 45.63 | 43.09 | 44.87 | 59.26 | 54.12 | 10.86 | **61.56** |
77
+ | *RoMistal-7b-Instruct* | ***52.49*** | ***50.39*** | ***51.64*** | ***66.69*** | ***60.24*** | ***33.71*** | 52.59 |
78
+
79
+
80
+ ## MT-Bench
81
+
82
+ | Model | Average | 1st turn | 2nd turn |
83
+ |--------------------|:--------:|:--------:|:--------:|
84
+ | Mistral-7B-Instruct-v0.2 | 5.84 | 6.06 | **5.63** |
85
+ | *RoMistal-7b-Instruct*| **5.92***|***6.53***| *5.415* |
86
+
87
+
88
+
89
+
90
+ ## RoMistral Model Family
91
+
92
+ | Model | Link |
93
+ |--------------------|:--------:|
94
+ |*RoMistral2-7b-Instruct*| [link](https://huggingface.co/OpenLLM-Ro/RoMistral-7b-Instruct) |
95
+
96
+
97
+ <!--
98
+ ## Citation
99
+
100
+ If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section.
101
+
102
+ **BibTeX:**
103
+
104
+ [More Information Needed]
105
+
106
+ **APA:**
107
+
108
+ [More Information Needed] -->