Transformers
GGUF
Inference Endpoints
aashish1904 commited on
Commit
8bd9108
1 Parent(s): aecdeb0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +95 -0
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: llama2
5
+ datasets:
6
+ - MaLA-LM/mala-monolingual-split
7
+ base_model:
8
+ - meta-llama/Llama-2-7b-hf
9
+ library_name: transformers
10
+
11
+ ---
12
+
13
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
14
+
15
+
16
+ # QuantFactory/emma-500-llama2-7b-GGUF
17
+ This is quantized version of [MaLA-LM/emma-500-llama2-7b](https://huggingface.co/MaLA-LM/emma-500-llama2-7b) created using llama.cpp
18
+
19
+ # Original Model Card
20
+
21
+
22
+ # EMMA-500: Enhancing Massively Multilingual Adaptation of Large Language Models
23
+
24
+ ## Model Description
25
+
26
+ **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.
27
+
28
+ **EMMA-500** outperforms other Llama 2-based models in diverse multilingual settings while maintaining robustness in specialized tasks.
29
+
30
+ ---
31
+
32
+ ## Model Details
33
+
34
+ - **Architecture**: Built on Llama 2 7B with enhanced language adaptation through continual pre-training.
35
+ - **Languages**: Supports **546 languages** with substantial training data (over 100k tokens each).
36
+ - **Data Mix**: A diverse mix of text from domains like code, books, instruction data, and more.
37
+ - **Key Tasks**: Commonsense reasoning, machine translation, text classification, natural language inference, code generation, and open-ended generation.
38
+
39
+ ### Data Access
40
+ - [MaLA Corpus](https://huggingface.co/collections/MaLA-LM/mala-corpus-66e05127641a51de34d39529)
41
+ - [PolyWrite Benchmark](https://huggingface.co/datasets/MaLA-LM/PolyWrite)
42
+
43
+ ---
44
+
45
+ ## Usage
46
+
47
+ You can use **EMMA-500** for multilingual text generation. Below is an example to generate text using the model:
48
+
49
+ ```python
50
+ from transformers import AutoModelForCausalLM, AutoTokenizer
51
+
52
+ model_name = "MaLA-LM/emma-500-llama2-7b"
53
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
54
+ model = AutoModelForCausalLM.from_pretrained(model_name)
55
+
56
+ input_text = "Once upon a time"
57
+ inputs = tokenizer(input_text, return_tensors="pt")
58
+ outputs = model.generate(**inputs)
59
+
60
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
61
+ ```
62
+
63
+ ---
64
+
65
+ ## Model Performance
66
+
67
+ **EMMA-500** was evaluated across multiple benchmarks and tasks, demonstrating:
68
+
69
+ - **Lowest negative log-likelihood** in intrinsic evaluations.
70
+ - Significant improvements in **commonsense reasoning**, **machine translation**, and **open-ended generation**.
71
+ - **Outperformed** all Llama 2-based models in **text classification** and **natural language inference**.
72
+ - Enhanced performance in **code generation** and **machine reading comprehension (MRC)**.
73
+
74
+ Challenges remain in low-resource languages, where the model tends to have higher **Self-BLEU** scores, indicating reduced output diversity.
75
+
76
+ ---
77
+
78
+
79
+ ## Citation
80
+
81
+ ```
82
+ @article{ji2024emma500enhancingmassivelymultilingual,
83
+ title={{EMMA}-500: Enhancing Massively Multilingual Adaptation of Large Language Models},
84
+ 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},
85
+ year={2024},
86
+ journal={arXiv preprint 2409.17892},
87
+ url={https://arxiv.org/abs/2409.17892},
88
+ }
89
+ ```
90
+
91
+ ## Acknowledgements
92
+
93
+ 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.
94
+
95
+ 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).