Quantization made by Richard Erkhov.
TowerBase-7B is a language model that results from continuing the pretraining of Llama 2 on a mix of 20 billion tokens of monolingual data in ten different languages — English, Portuguese, Spanish, French, German, Dutch, Italian, Korean, Chinese, Russian — and bilingual data. TowerBase-7B-v0.1 is the first model in the series.
The resulting model shows improved performance on the supported languages, while maintaining Llama 2's capabilities on English. It is particularly well-suited for fine-tuning on translation and related tasks: check out
TowerInstruct.
We will release more details in the upcoming technical report.
The model is intended for research purposes in the 10 languages it supports.
The model is able to perform well on translation and related tasks (e.g., APE, GEC) on a few-shot regime.
It can also be fine-tuned to perform these tasks in a zero-shot fashion (see
TowerInstruct, as well as other multilingual tasks.
The model is not guaranteed to perform well for languages other than the 10 languages it supports.
TowerBase-v0.1 has not been aligned to human preferences, so the model may generate problematic outputs (e.g., hallucinations, harmful content, or false statements).
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "Unbabel/TowerBase-7B-v0.1"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5
6model = AutoModelForCausalLM.from_pretrained(model_id)
7
8text = "English: My name is TowerBase.\nPortuguese:"
9inputs = tokenizer(text, return_tensors="pt")
10
11outputs = model.generate(**inputs, max_new_tokens=20)
12print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Filtered versions of
mc4 and bilingual data from various sources (e.g.,
OPUS).
1@misc{tower_llm_2024,
2 title={Tower: An Open Multilingual Large Language Model for Translation-Related Tasks},
3 author={Duarte M. Alves and José Pombal and Nuno M. Guerreiro and Pedro H. Martins and João Alves and Amin Farajian and Ben Peters and Ricardo Rei and Patrick Fernandes and Sweta Agrawal and Pierre Colombo and José G. C. de Souza and André F. T. Martins},
4 year={2024},
5 eprint={2402.17733},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}