Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| TowerInstruct-13B-v0.1.Q2_K.gguf | Q2_K | 4.52GB |
| TowerInstruct-13B-v0.1.Q3_K_S.gguf | Q3_K_S | 5.27GB |
| TowerInstruct-13B-v0.1.Q3_K.gguf | Q3_K | 5.9GB |
| TowerInstruct-13B-v0.1.Q3_K_M.gguf | Q3_K_M | 5.9GB |
| TowerInstruct-13B-v0.1.Q3_K_L.gguf | Q3_K_L | 6.45GB |
| TowerInstruct-13B-v0.1.IQ4_XS.gguf | IQ4_XS | 6.54GB |
| TowerInstruct-13B-v0.1.Q4_0.gguf | Q4_0 | 6.86GB |
| TowerInstruct-13B-v0.1.IQ4_NL.gguf | IQ4_NL | 6.9GB |
| TowerInstruct-13B-v0.1.Q4_K_S.gguf | Q4_K_S | 6.91GB |
| TowerInstruct-13B-v0.1.Q4_K.gguf | Q4_K | 7.33GB |
| TowerInstruct-13B-v0.1.Q4_K_M.gguf | Q4_K_M | 7.33GB |
| TowerInstruct-13B-v0.1.Q4_1.gguf | Q4_1 | 7.61GB |
| TowerInstruct-13B-v0.1.Q5_0.gguf | Q5_0 | 8.36GB |
| TowerInstruct-13B-v0.1.Q5_K_S.gguf | Q5_K_S | 8.36GB |
| TowerInstruct-13B-v0.1.Q5_K.gguf | Q5_K | 8.6GB |
| TowerInstruct-13B-v0.1.Q5_K_M.gguf | Q5_K_M | 8.6GB |
| TowerInstruct-13B-v0.1.Q5_1.gguf | Q5_1 | 9.1GB |
| TowerInstruct-13B-v0.1.Q6_K.gguf | Q6_K | 9.95GB |
| TowerInstruct-13B-v0.1.Q8_0.gguf | Q8_0 | 12.88GB |
pipeline() function from 🤗 Transformers:1# Install transformers from source - only needed for versions <= v4.34
2# pip install git+https://github.com/huggingface/transformers.git
3# pip install accelerate
4
5import torch
6from transformers import pipeline
7
8pipe = pipeline("text-generation", model="Unbabel/TowerInstruct-13B-v0.1", torch_dtype=torch.bfloat16, device_map="auto")
9# We use the tokenizer’s chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
10messages = [
11 {"role": "user", "content": "Translate the following text from Portuguese into English.\nPortuguese: Um grupo de investigadores lançou um novo modelo para tarefas relacionadas com tradução.\nEnglish:"},
12]
13prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
14outputs = pipe(prompt, max_new_tokens=256, do_sample=False)
15print(outputs[0]["generated_text"])
16# <|im_start|>user
17# Translate the following text from Portuguese into English.
18# Portuguese: Um grupo de investigadores lançou um novo modelo para tarefas relacionadas com tradução.
19# English:<|im_end|>
20# <|im_start|>assistant
21# A group of researchers has launched a new model for translation-related tasks.<|im_start|>user
{USER PROMPT}<|im_end|>
<|im_start|>assistant
{MODEL RESPONSE}<|im_end|>
<|im_start|>user
[...]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}