Instructions to use valurank/distilroberta-bias with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use valurank/distilroberta-bias with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="valurank/distilroberta-bias")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("valurank/distilroberta-bias") model = AutoModelForSequenceClassification.from_pretrained("valurank/distilroberta-bias") - Inference
- Notebooks
- Google Colab
- Kaggle
DistilROBERTA fine-tuned for bias detection
This model is based on distilroberta-base pretrained weights, with a classification head fine-tuned to classify text into 2 categories (neutral, biased).
Training data
The dataset used to fine-tune the model is wikirev-bias, extracted from English wikipedia revisions, see https://github.com/rpryzant/neutralizing-bias for details on the WNC wiki edits corpus.
Inputs
Similar to its base model, this model accepts inputs with a maximum length of 512 tokens.
- Downloads last month
- 9,683