Instructions to use facebook/blenderbot-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/blenderbot-3B with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-3B") model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
Fixed link to wrong paper.
#9
by amarfurt - opened
README.md
CHANGED
|
@@ -15,7 +15,7 @@ metrics:
|
|
| 15 |
|
| 16 |
## Model description
|
| 17 |
|
| 18 |
-
+ Paper: [Recipes for building an open-domain chatbot](https://arxiv.org/abs/
|
| 19 |
+ [Original PARLAI Code](https://parl.ai/projects/recipes/)
|
| 20 |
|
| 21 |
|
|
|
|
| 15 |
|
| 16 |
## Model description
|
| 17 |
|
| 18 |
+
+ Paper: [Recipes for building an open-domain chatbot](https://arxiv.org/abs/2004.13637)
|
| 19 |
+ [Original PARLAI Code](https://parl.ai/projects/recipes/)
|
| 20 |
|
| 21 |
|