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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("facebook/blenderbot-3B") model = AutoModelForSeq2SeqLM.from_pretrained("facebook/blenderbot-3B", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from facebook/blenderbot-3B: direct link, hf CLI and curl.
- Browser
- Download file 5.47 GB
-
https://huggingface.co/facebook/blenderbot-3B/resolve/refs%2Fpr%2F10/pytorch_model.bin
- Command line
-
hf download hf://facebook/blenderbot-3B@refs/pr/10/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/facebook/blenderbot-3B/resolve/refs%2Fpr%2F10/pytorch_model.bin
5.47 GB
- Xet hash:
- 3d87f75b63c30ca5632450fce86291d2363c40160b71579dcbb6449199a99acf
- Size of remote file:
- 5.47 GB
- SHA256:
- 6f009ff25e27651371ee092a8d0fe114a1b8209d35e2d6c8dfb82591976016a8
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.