Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "MaLA-LM/emma-500-llama2-7b"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name)
6
7input_text = "Once upon a time"
8inputs = tokenizer(input_text, return_tensors="pt")
9outputs = model.generate(**inputs)
10
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))
@inproceedings{ji2026mala,
title = {MaLA: A Corpus and Data Mix for Massive Language Adaptation of Large Language Models},
author = {Ji, Shaoxiong and Li, Zihao and Paavola, Jaakko and Lin, Peiqin and Chen, Pinzhen and O'Brien, Dayy{\'a}n and Luo, Hengyu and Sch{\"u}tze, Hinrich and Tiedemann, J{\"o}rg and Haddow, Barry},
booktitle = {Proceedings of Conference on Language Modeling (COLM 2026)},
year = {2026},
url = {https://www.olaresearch.org/MaLA/}
}
@article{ji2024emma500enhancingmassivelymultilingual,
title={{EMMA}-500: Enhancing Massively Multilingual Adaptation of Large Language Models},
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},
year={2024},
journal={arXiv preprint 2409.17892},
url={https://arxiv.org/abs/2409.17892},
}