GonzaloA/fake_news
Viewer • Updated • 40.6k • 9.03k • 28
How to use jaranohaal/distilbert-base-uncased-finetuned-fake-news with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jaranohaal/distilbert-base-uncased-finetuned-fake-news") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jaranohaal/distilbert-base-uncased-finetuned-fake-news")
model = AutoModelForSequenceClassification.from_pretrained("jaranohaal/distilbert-base-uncased-finetuned-fake-news", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on a fake news dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.03 | 1.0 | 762 | 0.0364 | 0.9880 | 0.9881 |
| 0.0121 | 2.0 | 1524 | 0.0403 | 0.9892 | 0.9892 |
Base model
distilbert/distilbert-base-uncased