Run this model with HF Jobs
Run Shadman-Rohan/FakevsRealNews on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Shadman-Rohan/FakevsRealNews. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Shadman-Rohan/FakevsRealNews on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Shadman-Rohan/FakevsRealNews with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Shadman-Rohan/FakevsRealNews with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Shadman-Rohan/FakevsRealNews")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Shadman-Rohan/FakevsRealNews") model = AutoModelForSequenceClassification.from_pretrained("Shadman-Rohan/FakevsRealNews", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
b26f658
1
Parent(s): fbf74a0
update model card README.md
Browse files14 unmodified lines15161718192021222324253 unmodified lines2930313233343536373839404142439 unmodified lines5354555657585960616263646566676814 unmodified lines<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># Coding challengeThe challenge involved building a fake news classifier using the huggingface library.This final model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an fake-and-real-news dataset. The link to the dataset is https://www.kaggle.com/datasets/clmentbisaillon/fake-and-real-news-dataset.It achieves the following results on the evaluation set:- Loss: 0.0000- Accuracy: 1.03 unmodified lines## Model descriptionFinetuned Distilbert## Training and evaluation dataThe training data was split into train-dev-test in the ratio 80-10-10.## Training procedureThe title and text of each news story was concatenated to form each datapoint. Then a model was finetuned to perform single label classification on each datapoint. The final prediction is the class with the highest probability.### Training hyperparameters9 unmodified lines### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall ||:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|| 0.0503 | 1.0 | 1956 | 0.0025 | 0.9995 | 0.9995 | 0.9995 | 0.9995 || 0.001 | 2.0 | 3912 | 0.0001 | 1.0 | 1.0 | 1.0 | 1.0 || 0.0007 | 3.0 | 5868 | 0.0000 | 1.0 | 1.0 | 1.0 | 1.0 |### Framework versions- Transformers 4.18.0- Pytorch 1.10.0+cu111- Datasets 2.1.0- Tokenizers 0.12.114 unmodified lines1516171819202122233 unmodified lines27282930313233343536373839404142439 unmodified lines5354555657585960616263646566676814 unmodified lines<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># FakevsRealNewsThis model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.0000- Accuracy: 1.03 unmodified lines## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparameters9 unmodified lines### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall ||:-------------:|:-----:|:----:|:---------------:|:--------:|:---:|:---------:|:------:|| 0.0554 | 1.0 | 1956 | 0.0000 | 1.0 | 1.0 | 1.0 | 1.0 || 0.0006 | 2.0 | 3912 | 0.0000 | 1.0 | 1.0 | 1.0 | 1.0 || 0.0 | 3.0 | 5868 | 0.0000 | 1.0 | 1.0 | 1.0 | 1.0 |### Framework versions- Transformers 4.27.2- Pytorch 1.13.1+cu116- Datasets 2.10.1- Tokenizers 0.13.2
README.md+18-18