Instructions to use research-backup/relbert-old with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use research-backup/relbert-old with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="research-backup/relbert-old")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("research-backup/relbert-old") model = AutoModel.from_pretrained("research-backup/relbert-old", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {"model": "roberta-large", "max_length": 64, "mode": "average_no_mask", "data": "semeval2012", "n_sample": 10, "custom_template": "I wasn\u2019t aware of this relationship, but I just read in the encyclopedia that <subj> is the <mask> of <obj>", "template": null, "softmax_loss": true, "in_batch_negative": true, "parent_contrast": true, "mse_margin": 1, "epoch": 1, "lr_warmup": 10, "batch": 64, "lr": 2e-05, "lr_decay": false, "weight_decay": 0, "optimizer": "adam", "momentum": 0.9, "fp16": false, "random_seed": 0} |