ModelSpace commited on
Commit
e23ca00
·
verified ·
1 Parent(s): a9d265f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +66 -5
README.md CHANGED
@@ -1,5 +1,66 @@
1
- ---
2
- license: other
3
- license_name: license
4
- license_link: LICENSE
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: license
4
+ license_link: LICENSE
5
+ ---
6
+ # Model Card for GemmaX2-28
7
+
8
+ ## Model Details
9
+
10
+ ### Model Description
11
+
12
+ GemmaX2-28-9B-Pretrain is a language model that results from continual pretraining of Gemma2-9B on a mix of 56 billion tokens of monolingual and parallel data in 28 different languages — Arabic, Bengali, Czech, German, English, Spanish, Persian, French, Hebrew, Hindi, Indonesian, Italian, Japanese, Khmer, Korean, Lao, Malay, Burmese, Dutch, polish, Portuguese, Russian, Thai, Tagalog, Turkish, Urdu, Vietnamese, Chinese.
13
+
14
+ GemmaX2-28-9B-v0.1 is the first model in the series. Compared to the current open-source state-of-the-art (SOTA) models, it achieves optimal translation performance across 28 languages, even reaching performance comparable to GPT-4 and Google Translate, indicating it has achieved translation capabilities on par with industry standards.
15
+
16
+ - **Developed by:** Xiaomi
17
+ - **Model type:** A 9B parameter model base on Gemma2, we obtained GemmaX2-28-9B-Pretrain by continuing pre-training on a large amount of monolingual and parallel data. Afterward, GemmaX2-28-9B-v0.1 was derived through supervised fine-tuning on a small set of high-quality instruction data.
18
+ - **Language(s) (NLP):** Arabic, Bengali, Czech, German, English, Spanish, Persian, French, Hebrew, Hindi, Indonesian, Italian, Japanese, Khmer, Korean, Lao, Malay, Burmese, Dutch, polish, Portuguese, Russian, Thai, Tagalog, Turkish, Urdu, Vietnamese, Chinese.
19
+ - **License:** gemma
20
+
21
+ ### Model Source
22
+
23
+ - paper: coming soon.
24
+
25
+ ### Model Performance
26
+
27
+ ![Experimental Result](./figures/main.jpg)
28
+
29
+ ## Limitations
30
+
31
+ GemmaX2-28-9B-v0.1 supports only the 28 most commonly used languages and does not guarantee powerful translation performance for other languages. Additionally, we will continue to improve GemmaX2-28-9B's translation performance, and future models will be release in due course.
32
+
33
+
34
+
35
+ ## Run the model
36
+
37
+ ```python
38
+ from transformers import AutoModelForCausalLM, AutoTokenizer
39
+
40
+ model_id = "ModelMagician/GemmaX2-28-9B-v0.1"
41
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
42
+
43
+ model = AutoModelForCausalLM.from_pretrained(model_id)
44
+
45
+ text = "Translate this from Chinese to English:\nChinese: 我爱机器翻译\nEnglish:"
46
+ inputs = tokenizer(text, return_tensors="pt")
47
+
48
+ outputs = model.generate(**inputs, max_new_tokens=50)
49
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
50
+ ```
51
+
52
+ ### Training Data
53
+
54
+ We collected monolingual data from [CulturaX](https://huggingface.co/datasets/uonlp/CulturaX) and [MADLAD-400](https://huggingface.co/datasets/allenai/MADLAD-400). For parallel data, we collected all Chinese-centric and English-centric parallel dataset from the [OPUS](https://opus.nlpl.eu/) collection up to Auguest 2024 and underwent a series of filtering processes, such as language detection, semantic duplication filtering, quality filtering, and more.
55
+
56
+ ## Citation
57
+
58
+ ```bibtex
59
+ @misc{gemmax2,
60
+ title = {Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Study},
61
+ url = {},
62
+ author = {XiaoMi Team},
63
+ month = {October},
64
+ year = {2024}
65
+ }
66
+ ```