LVouk commited on
Commit
077b94d
1 Parent(s): dc169e3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -0
README.md CHANGED
@@ -1,3 +1,57 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - el
5
+ - en
6
+ library_name: transformers
7
+ pipeline_tag: text-generation
8
  ---
9
+
10
+ # Meltemi: A large foundation Language Model for the Greek language
11
+
12
+ We introduce Meltemi, the first Greek Large Language Model (LLM) trained by the [Institute for Language and Speech Processing](https://www.ilsp.gr/en/home-2/) at [Athena Research & Innovation Center](https://www.athenarc.gr/).
13
+ Meltemi is built on top of [Mistral-7B](https://huggingface.co/mistralai/Mistral-7B-v0.1), extending its capabilities for Greek through continual pretraining on a large corpus of high-quality and locally relevant Greek texts. We present Meltemi-7B-v1, as well as an instruction fine-tuned version [Meltemi-7B-Instruct-v1](https://huggingface.co/ilsp/Meltemi-7B-Instruct-v1).
14
+
15
+
16
+ # Model Information
17
+
18
+ - Vocabulary extension of the Mistral-7B tokenizer with Greek tokens
19
+ - Trained with 8k context length
20
+ - We extend the pretraining of Mistral-7B with added proficiency for the Greek language, by utilizing a large corpus consisting of approximately **40 billion tokens**.
21
+ * This corpus includes 28.5 billion monolingual Greek tokens, constructed from publicly available resources. Additionaly, to mitigate catastrophic forgetting and ensure that the model has bilingual capabilities, we use additional sub-corpora with monolingual English texts (10.5 billion tokens) and Greek-English parallel data (600 million tokens).
22
+ * This corpus has been processed, filtered, and deduplicated to ensure data quality (a detailed description of our data processing pipeline will be published in our upcoming paper) and is outlined below:
23
+
24
+
25
+ | Sub-corpus | # Tokens | Percentage |
26
+ |----------|------------------|------------|
27
+ | Greek | 28,555,902,360 | 72.0% |
28
+ | English | 10,478,414,033 | 26.4% |
29
+ | Parallel | 633,816,023 | 1.6% |
30
+ | **Total** | **39,668,132,416** | **100%** |
31
+
32
+
33
+ # Evaluation
34
+
35
+ The evaluation suite we created includes 6 test sets. The suite is integrated with [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness).
36
+
37
+ Our evaluation suite includes:
38
+ * Four machine-translated versions ([ARC Greek](https://huggingface.co/datasets/ilsp/arc_greek), [Truthful QA Greek](https://huggingface.co/datasets/ilsp/truthful_qa_greek), [HellaSwag Greek](https://huggingface.co/datasets/ilsp/hellaswag_greek), [MMLU Greek](https://huggingface.co/datasets/ilsp/mmlu_greek)) of established English benchmarks for language understanding and reasoning ([ARC Challenge](https://arxiv.org/abs/1803.05457), [Truthful QA](https://arxiv.org/abs/2109.07958), [Hellaswag](https://arxiv.org/abs/1905.07830), [MMLU](https://arxiv.org/abs/2009.03300)).
39
+ * An existing benchmark for question answering in Greek ([Belebele](https://arxiv.org/abs/2308.16884))
40
+ * A novel benchmark created by the ILSP team for medical question answering based on the medical exams of [DOATAP](https://www.doatap.gr) ([Medical MCQA](https://huggingface.co/datasets/ilsp/medical_mcqa_greek)).
41
+
42
+ Our evaluation for Meltemi-7B is performed in a few-shot setting, consistent with the settings in the [Open LLM leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard). We can see that our training enhances performance across all Greek test sets by a **+14.9%** average improvement. The results for the Greek test sets are shown in the following table:
43
+
44
+ | | Medical MCQA EL (15-shot) | Belebele EL (5-shot) | HellaSwag EL (10-shot) | ARC-Challenge EL (25-shot) | TruthfulQA MC2 EL (0-shot) | MMLU EL (5-shot) | Average |
45
+ |----------------|----------------|-------------|--------------|------------------|-------------------|---------|---------|
46
+ | Mistral 7B | 29.8% | 45.0% | 36.5% | 27.1% | 45.8% | 35% | 36.5% |
47
+ | Meltemi 7B | 41.0% | 63.6% | 61.6% | 43.2% | 52.1% | 47% | 51.4% |
48
+
49
+
50
+ # Ethical Considerations
51
+
52
+ This model has not been aligned with human preferences, and therefore might generate misleading, harmful, and toxic content.
53
+
54
+
55
+ # Acknowledgements
56
+
57
+ The ILSP team utilized Amazon’s cloud computing services, which were made available via GRNET under the [OCRE Cloud framework](https://www.ocre-project.eu/), providing Amazon Web Services for the Greek Academic and Research Community.