Run this model with HF Jobs

Run mjwagerman/bias-detector 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/mjwagerman/bias-detector. 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/mjwagerman/bias-detector 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.

Bias Detector

This model is fine-tuned using PEFT LoRA on existing Hugging Face models to classify and evaluate the bias in news sources.

Model Details

  • Architecture: Transformer-based (e.g., BERT, RoBERTa)
  • Fine-tuning Method: Parameter Efficient Fine-Tuning (LoRA)
  • Use Case: Bias classification, text summarization, sentiment analysis
  • Dataset: ...
  • Training Framework: PyTorch + Transformers

Usage

To use this model, install the necessary libraries:

pip install transformers torch

Then load the model with:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_name = "mjwagerman/bias-detector"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)

text = "This is an example news headline."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Evaluation results