Instructions to use LibrAI/longformer-harmful-ro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LibrAI/longformer-harmful-ro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="LibrAI/longformer-harmful-ro")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("LibrAI/longformer-harmful-ro") model = AutoModelForSequenceClassification.from_pretrained("LibrAI/longformer-harmful-ro") - Notebooks
- Google Colab
- Kaggle
Longformer formatting
#2
by timdadum - opened
Hi! Under what evaluation format was this Longformer trained? I want to use it to evaluate models? I can only find the GPT prompt formatting on the Github page of the original paper (https://arxiv.org/pdf/2308.13387)
timdadum changed discussion status to closed