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
Update config.json
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -42,6 +42,7 @@
|
|
| 42 |
"output_attentions": false,
|
| 43 |
"output_hidden_states": false,
|
| 44 |
"output_past": false,
|
|
|
|
| 45 |
"pruned_heads": {},
|
| 46 |
"repetition_penalty": 1.0,
|
| 47 |
"temperature": 1.0,
|
|
@@ -50,4 +51,4 @@
|
|
| 50 |
"torchscript": false,
|
| 51 |
"use_bfloat16": false,
|
| 52 |
"vocab_size": 50265
|
| 53 |
-
}
|
|
|
|
| 42 |
"output_attentions": false,
|
| 43 |
"output_hidden_states": false,
|
| 44 |
"output_past": false,
|
| 45 |
+
"prefix": " ",
|
| 46 |
"pruned_heads": {},
|
| 47 |
"repetition_penalty": 1.0,
|
| 48 |
"temperature": 1.0,
|
|
|
|
| 51 |
"torchscript": false,
|
| 52 |
"use_bfloat16": false,
|
| 53 |
"vocab_size": 50265
|
| 54 |
+
}
|