Instructions to use relbert/relbert-roberta-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use relbert/relbert-roberta-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="relbert/relbert-roberta-large")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("relbert/relbert-roberta-large") model = AutoModel.from_pretrained("relbert/relbert-roberta-large") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"position_embedding_type": "absolute",
|
| 22 |
"relbert_config": {
|
| 23 |
-
"
|
| 24 |
"template": "I wasn\u2019t aware of this relationship, but I just read in the encyclopedia that <subj> is the <mask> of <obj>",
|
| 25 |
"template_mode": "manual"
|
| 26 |
},
|
|
|
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"position_embedding_type": "absolute",
|
| 22 |
"relbert_config": {
|
| 23 |
+
"aggregation_mode": "average",
|
| 24 |
"template": "I wasn\u2019t aware of this relationship, but I just read in the encyclopedia that <subj> is the <mask> of <obj>",
|
| 25 |
"template_mode": "manual"
|
| 26 |
},
|