Fix typo in model name
#6
by
mya123
- opened
README.md
CHANGED
@@ -61,7 +61,7 @@ Here's how you can run the model using the `pipeline()` function from 🤗 Trans
|
|
61 |
import torch
|
62 |
from transformers import pipeline
|
63 |
|
64 |
-
pipe = pipeline("text-generation", model="Unbabel/TowerInstruct-v0.2", torch_dtype=torch.bfloat16, device_map="auto")
|
65 |
# We use the tokenizer’s chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
|
66 |
messages = [
|
67 |
{"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:"},
|
|
|
61 |
import torch
|
62 |
from transformers import pipeline
|
63 |
|
64 |
+
pipe = pipeline("text-generation", model="Unbabel/TowerInstruct-7B-v0.2", torch_dtype=torch.bfloat16, device_map="auto")
|
65 |
# We use the tokenizer’s chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
|
66 |
messages = [
|
67 |
{"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:"},
|