Downloads · 30 days
19
13% of all-time downloads
SallySims/equibert-similarity
equibert-similarity is a sentence similarity model from SallySims. Use it when you need a score for how close two texts are. The card lists the license as apache-2.0.
Downloads · 30 days
19
13% of all-time downloads
All-time downloads
151
Public
Parameters
311M
1.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin876 MB · 50%
How the weights are stored.
F16184M · 59%
From the Hugging Face model README
Model ID: SallySims/equibert-similarity
Siamese encoder that produces 768-dimensional sentence embeddings optimised for DEI text similarity. Trained with Multiple Negatives Ranking (MNR) loss.
from transformers import AutoTokenizer
import torch
import torch.nn.functional as F
tokenizer = AutoTokenizer.from_pretrained("SallySims/equibert-similarity")
texts = [
"We need a rock star developer who can dominate the roadmap.",
"Looking for a ninja engineer to crush our technical goals.",
]
enc = tokenizer(texts, padding=True, truncation=True,
max_length=128, return_tensors="pt")
# embeddings = model.encode(enc["input_ids"], enc["attention_mask"])
# similarity = F.cosine_similarity(embeddings[0], embeddings[1], dim=0)
EquiBERT is a multi-task DEI (Diversity, Equity and Inclusion) transformer built on a dual-encoder backbone that fuses RoBERTa-base and DeBERTa-v3-base via a learned weighted sum (α parameter). The fused representation is fed into task-specific heads covering 17 distinct DEI analysis tasks.
Organisation: SallySims Framework: PyTorch + HuggingFace Transformers Backbone: RoBERTa-base + DeBERTa-v3-base (dual encoder, fused) Language: English Domain: Organisational DEI text — HR communications, policies, job descriptions, performance reviews, leadership statements, reports
Input Text
│
├──▶ RoBERTa-base encoder ──▶ Linear projection
│ │
└──▶ DeBERTa-v3-base encoder ──▶ Linear projection
│
Weighted fusion (learned α)
│
Layer Norm + Dropout
│
Task-specific head (see below)
Trained on synthetic DEI organisational text generated by the EquiBERT synthetic data pipeline, covering 20 DEI categories across HR, policy, leadership, and workforce analytics domains. For production use, fine-tune on real labelled DEI data.
If you use EquiBERT in your research, please cite:
@misc{equibert2024,
author = {SallySims},
title = {EquiBERT: A Multi-Task DEI Transformer},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/SallySims}
}
| Model | Task | Primary Metric |
|---|---|---|
| equibert-bias-classifier | Bias Detection | Macro F1 |
| equibert-microaggression | Microaggression Detection | Macro F1 |
| equibert-category-tagger | DEI Category Tagging | Macro F1 |
| equibert-event-exclusion | Event Exclusion Classification | Macro F1 |
| equibert-inclusive-language | Inclusive Language Scoring | Span F1 |
| equibert-review-auditor | Performance Review Auditing | Span F1 |
| equibert-washing-detector | DEI Washing Detection | MAE |
| equibert-framing-scorer | Report Framing Scoring | MAE |
| equibert-awareness-scorer | DEI Awareness Scoring | MAE |
| equibert-similarity | Semantic Similarity | Accuracy |
| equibert-ner | DEI Entity Recognition | Span F1 |
| equibert-relation-extraction | Relation Extraction | Macro F1 |
| equibert-qa | Extractive QA | Span EM |
| equibert-search | Semantic Search | MRR@10 |
| equibert-nli | NLI / Textual Entailment | Macro F1 |
| equibert-generator | DEI Text Generation | ROUGE-L |