Downloads · 30 days
5.8K
6% of all-time downloads
ModelSpace/GemmaX2-28-9B-v0.1
GemmaX2-28-9B-v0.1 is a translation model from ModelSpace. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as gemma.
New multilingual machine translation model (MiLMMT-46) is now available. Please check the link for detailed information.
Downloads · 30 days
5.8K
6% of all-time downloads
All-time downloads
98.9K
Public
Parameters
10.2B
20.3 GB on disk
Likes
79
Public
Click a slice to open those files.
.safetensors20.3 GB · 100%
From the Hugging Face model README
New multilingual machine translation model (MiLMMT-46) is now available. Please check the link for detailed information.
GemmaX2-28-9B-v0.1 is an LLM-based translation model. It has been fintuned on GemmaX2-28-9B-Pretrain, which is a language model developed through continual pretraining of Gemma2-9B using a mix of 56 billion tokens from both monolingual and parallel data across 28 different languages. Please find more details in our paper: Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Study.

from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ModelSpace/GemmaX2-28-9B-v0.1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
text = "Translate this from Chinese to English:\nChinese: 我爱机器翻译\nEnglish:"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
@misc{cui2025multilingualmachinetranslationopen,
title={Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Study},
author={Menglong Cui and Pengzhi Gao and Wei Liu and Jian Luan and Bin Wang},
year={2025},
eprint={2502.02481},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2502.02481},
}
GemmaX2-28-9B-v0.1 only supports the 28 languages listed above and does not guarantee strong translation performance for other languages. We will continue to enhance the translation performance of GemmaX2-28-9B, and future models will be released in due course.