jmprcp mya123 commited on
Commit
a240dfd
1 Parent(s): 6ea1d9e

Fix typo in model name (#6)

Browse files

- Fix typo in model name (da75ee2d106d6a8e9feaf4f032f181926204ffb7)


Co-authored-by: m y <mya123@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +1 -1
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:"},