Downloads · 30 days
13
62% of all-time downloads
bitlabsdb/bad-classifier-tinyllama-fairsteer_improved
bad-classifier-tinyllama-fairsteer_improved 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
13
62% of all-time downloads
All-time downloads
21
Public
Repo size
10.2 KB
Likes
0
Public
Click a slice to open those files.
.bin10.2 KB · 48%
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 14
# 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