Transformers
GGUF
Inference Endpoints
mav23 commited on
Commit
cbe40a3
1 Parent(s): e1c1a76

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +83 -0
  3. emma-500-llama2-7b.Q4_0.gguf +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ emma-500-llama2-7b.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama2
3
+ datasets:
4
+ - MaLA-LM/mala-monolingual-split
5
+ base_model:
6
+ - meta-llama/Llama-2-7b-hf
7
+ library_name: transformers
8
+ ---
9
+
10
+ # EMMA-500: Enhancing Massively Multilingual Adaptation of Large Language Models
11
+
12
+ ## Model Description
13
+
14
+ **EMMA-500** is a state-of-the-art multilingual language model designed to improve language representation, especially in low-resource languages, through continual pre-training on the **Llama 2 7B** architecture. Leveraging the **MaLA Corpus**, which spans over 500 languages and 74 billion tokens, EMMA-500 excels in multilingual tasks like commonsense reasoning, machine translation, open-ended generation, and text classification.
15
+
16
+ **EMMA-500** outperforms other Llama 2-based models in diverse multilingual settings while maintaining robustness in specialized tasks.
17
+
18
+ ---
19
+
20
+ ## Model Details
21
+
22
+ - **Architecture**: Built on Llama 2 7B with enhanced language adaptation through continual pre-training.
23
+ - **Languages**: Supports **546 languages** with substantial training data (over 100k tokens each).
24
+ - **Data Mix**: A diverse mix of text from domains like code, books, instruction data, and more.
25
+ - **Key Tasks**: Commonsense reasoning, machine translation, text classification, natural language inference, code generation, and open-ended generation.
26
+
27
+ ### Data Access
28
+ - [MaLA Corpus](https://huggingface.co/collections/MaLA-LM/mala-corpus-66e05127641a51de34d39529)
29
+ - [PolyWrite Benchmark](https://huggingface.co/datasets/MaLA-LM/PolyWrite)
30
+
31
+ ---
32
+
33
+ ## Usage
34
+
35
+ You can use **EMMA-500** for multilingual text generation. Below is an example to generate text using the model:
36
+
37
+ ```python
38
+ from transformers import AutoModelForCausalLM, AutoTokenizer
39
+
40
+ model_name = "MaLA-LM/emma-500-llama2-7b"
41
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
42
+ model = AutoModelForCausalLM.from_pretrained(model_name)
43
+
44
+ input_text = "Once upon a time"
45
+ inputs = tokenizer(input_text, return_tensors="pt")
46
+ outputs = model.generate(**inputs)
47
+
48
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Model Performance
54
+
55
+ **EMMA-500** was evaluated across multiple benchmarks and tasks, demonstrating:
56
+
57
+ - **Lowest negative log-likelihood** in intrinsic evaluations.
58
+ - Significant improvements in **commonsense reasoning**, **machine translation**, and **open-ended generation**.
59
+ - **Outperformed** all Llama 2-based models in **text classification** and **natural language inference**.
60
+ - Enhanced performance in **code generation** and **machine reading comprehension (MRC)**.
61
+
62
+ Challenges remain in low-resource languages, where the model tends to have higher **Self-BLEU** scores, indicating reduced output diversity.
63
+
64
+ ---
65
+
66
+
67
+ ## Citation
68
+
69
+ ```
70
+ @article{ji2024emma500enhancingmassivelymultilingual,
71
+ title={{EMMA}-500: Enhancing Massively Multilingual Adaptation of Large Language Models},
72
+ author={Shaoxiong Ji and Zihao Li and Indraneil Paul and Jaakko Paavola and Peiqin Lin and Pinzhen Chen and Dayyán O'Brien and Hengyu Luo and Hinrich Schütze and Jörg Tiedemann and Barry Haddow},
73
+ year={2024},
74
+ journal={arXiv preprint 2409.17892},
75
+ url={https://arxiv.org/abs/2409.17892},
76
+ }
77
+ ```
78
+
79
+ ## Acknowledgements
80
+
81
+ We extend our thanks to the language communities and contributors who helped source, clean, and validate the diverse data used in the MaLA Corpus. Their efforts are invaluable in supporting linguistic diversity in AI research.
82
+
83
+ This work is done by researchers at [Helsinki-NLP](https://huggingface.co/Helsinki-NLP) in collaboration with partners from TU Darmstadt, the University of Edinburgh, and LMU Munich. It is funded by [HPLT](https://hplt-project.org) and [UTTER](https://he-utter.eu).
emma-500-llama2-7b.Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e55e083c823e874f166d236ea5b194674c63174c1543e993cf2e686cae7828da
3
+ size 3825807744