Llama-Krikri-8B-Base: A large foundation Language Model for the Greek language
Following the release of
Meltemi-7B
on the 26th March 2024, we are happy to welcome Krikri to the family of ILSP open Greek LLMs.
Krikri is built on top of
Llama-3.1-8B
, extending its capabilities for Greek through continual pretraining on a large corpus of high-quality and locally relevant Greek texts. We present Llama-Krikri-8B-Base, as well as an instruct version,
Llama-Krikri-8B-Instruct
.
Model Information
Vocabulary extension of the Llama-3.1 tokenizer with Greek tokens
We extend the pretraining of Llama-3.1-8B with added proficiency for the Greek language, by utilizing a large training corpus.
This corpus includes 56.7 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 (21 billion tokens) and Greek-English parallel data (5.5 billion tokens).
The training corpus also contains 7.8 billion math and code tokens.
This corpus has been processed, filtered, and deduplicated to ensure data quality and is outlined below:
Sub-corpus
# Tokens
Percentage
Greek
56.7 B
62.3 %
English
21.0 B
23.1 %
Parallel
5.5 B
6.0 %
Math/Code
7.8 B
8.6 %
Total
91 B
100%
Chosen subsets of the 91 billion corpus were upsampled resulting in a size of
110 billion tokens
.
How to use
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda"
model = AutoModelForCausalLM.from_pretrained("ilsp/Llama-Krikri-8B-Base")
tokenizer = AutoTokenizer.from_pretrained("ilsp/Llama-Krikri-8B-Base")
model.to(device)
input_text = tokenizer("Ένα κρικρί διαφέρει απο ένα λάμα επειδή", return_tensors='pt').to(device)
outputs = model.generate(input_text['input_ids'], max_new_tokens=256, do_sample=True)
print(tokenizer.batch_decode(outputs)[0])
How to serve with OpenAI compatible server via vLLM
An existing benchmark for question answering in Greek (
Belebele
)
A novel benchmark created by the ILSP team for medical question answering based on the medical exams of
DOATAP
(
Medical MCQA
).
Our evaluation for Llama-Krikri-8B is performed in a few-shot setting, consistent with the settings in the
Open LLM leaderboard
. We can see that our training enhances performance across all Greek test sets by a
+10.8%
average improvement. The results for the Greek test sets are shown in the following table:
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
Meltemi 7B v1.5
42.2%
61.0%
53.8%
40.0%
49.0%
41.2%
47.9%
Llama-3.1-8B
33.4%
72.8%
52.1%
39.9%
51.1%
42.6%
48.7%
Llama-Krikri-8B
53.8%
82.7%
64.6%
49.4%
54.2%
52.0%
59.5%
English Benchmarks
Winogrande (5-shot)
Belebele (5-shot)
HellaSwag (10-shot)
ARC-Challenge (25-shot)
TruthfulQA MC2 (0-shot)
MMLU (5-shot)
Average
Meltemi 7B v1.5
73.4%
77.7%
79.6%
54.1%
40.5%
56.9%
63.7%
Llama-3.1-8B
74.6%
71.5%
82.0%
58.5%
44.2%
66.2%
66.2%
Llama-Krikri-8B
72.6%
79.8%
80.7%
57.8%
44.8%
65.1%
67.0%
Please note that all evaluations were run with the latest version of lighteval, which has some differences from past versions. This is why we report different scores for Meltemi-7B-v1.5
Ethical Considerations
This model has not been aligned with human preferences, and therefore might generate misleading, harmful, and toxic content.
Acknowledgements
The ILSP team utilized Amazon's cloud computing services, which were made available via GRNET under the
OCRE Cloud framework
, providing Amazon Web Services for the Greek Academic and Research Community.
Runs of ilsp Llama-Krikri-8B-Base on huggingface.co
474
Total runs
0
24-hour runs
0
3-day runs
7
7-day runs
-132
30-day runs
More Information About Llama-Krikri-8B-Base huggingface.co Model
Llama-Krikri-8B-Base huggingface.co is an AI model on huggingface.co that provides Llama-Krikri-8B-Base's model effect (), which can be used instantly with this ilsp Llama-Krikri-8B-Base model. huggingface.co supports a free trial of the Llama-Krikri-8B-Base model, and also provides paid use of the Llama-Krikri-8B-Base. Support call Llama-Krikri-8B-Base model through api, including Node.js, Python, http.
Llama-Krikri-8B-Base huggingface.co is an online trial and call api platform, which integrates Llama-Krikri-8B-Base's modeling effects, including api services, and provides a free online trial of Llama-Krikri-8B-Base, you can try Llama-Krikri-8B-Base online for free by clicking the link below.
ilsp Llama-Krikri-8B-Base online free url in huggingface.co:
Llama-Krikri-8B-Base is an open source model from GitHub that offers a free installation service, and any user can find Llama-Krikri-8B-Base on GitHub to install. At the same time, huggingface.co provides the effect of Llama-Krikri-8B-Base install, users can directly use Llama-Krikri-8B-Base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Llama-Krikri-8B-Base install url in huggingface.co: