Downloads · 30 days
11
34% of all-time downloads
bitlabsdb/bad-classifier-tinyllama-fairsteer
bad-classifier-tinyllama-fairsteer is a machine learning model from bitlabsdb. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
This is a Biased Activation Detection (BAD) classifier trained for the FairSteer framework.
Downloads · 30 days
11
34% of all-time downloads
All-time downloads
32
Public
Repo size
9.8 KB
Likes
0
Public
Click a slice to open those files.
.json9.9 KB · 44%
From the Hugging Face model README
This is a Biased Activation Detection (BAD) classifier trained for the FairSteer framework.
import torch
import json
# Load model
model = torch.load("pytorch_model.bin")
with open("config.json", "r") as f:
config = json.load(f)
# Use for bias detection
# Input: activation vector from LLM layer 13
# Output: probability of being unbiased
If you use this model, please cite the FairSteer paper:
@article{fairsteer,
title={FairSteer: Inference-Time Debiasing for Large Language Models},
author={[Authors]},
journal={[Journal]},
year={2024}
}
Apache 2.0