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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("relbert/relbert-roberta-large") model = AutoModel.from_pretrained("relbert/relbert-roberta-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download relation_mapping.json from relbert/relbert-roberta-large: direct link, hf CLI and curl.
- Browser
- Download file 3.7 MB
-
https://huggingface.co/relbert/relbert-roberta-large/resolve/refs%2Fpr%2F1/relation_mapping.json
- Command line
-
hf download hf://relbert/relbert-roberta-large@refs/pr/1/relation_mapping.json
-
curl -L -o relation_mapping.json https://huggingface.co/relbert/relbert-roberta-large/resolve/refs%2Fpr%2F1/relation_mapping.json
3.7 MB
File too large to display, you can check the raw version instead.