Instructions to use facebook/bart-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/bart-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="facebook/bart-large")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large") model = AutoModel.from_pretrained("facebook/bart-large", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download vocab.json from facebook/bart-large: direct link, hf CLI and curl.
- Browser
- Download file 899 kB
-
https://huggingface.co/facebook/bart-large/resolve/78e492d5ce79656b22d33734a3d6c2feff564e71/vocab.json
- Command line
-
hf download hf://facebook/bart-large@78e492d5ce79656b22d33734a3d6c2feff564e71/vocab.json
-
curl -L -o vocab.json https://huggingface.co/facebook/bart-large/resolve/78e492d5ce79656b22d33734a3d6c2feff564e71/vocab.json
899 kB
File too large to display, you can check the raw version instead.