abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

dleemiller/toxic-pairs

published by @dleemiller

Safety benchmarks, over-refusal tests, and guard-model data.Safety tests and tests for refusing harmless requests.

task_categories:sentence-similaritylanguage:enlicense:cc0-1.0size_categories:100K<n<1Mregion:usnot-for-all-audiences
Lifetime downloads
795
Last 30 days
27
Likes
1
Size
137.8 MB

Description

Toxic Pairs (English)

Warning: Contains offensive language, not for all audiences

Because this dataset is marked "not for all audiences", preview isn't available. The columns are:

Index(['sentence1', 'sentence2', 'score', 'label'], dtype='object')

Content marked 'safe' from LlamaGuard3 may still contain profanity/offensive language, though it does not

meet any of the moderation criteria defined for LlamaGuard3. I have set the label for these texts as S0.

Recommended: Use… See the full description on the dataset page: https://huggingface.co/datasets/dleemiller/toxic-pairs.

Structure 2 configs · from the README front matter2 subsets, from the author's description

raw
Data files
train toxic_pairs_train.parquet
test toxic_pairs_test.parquet
deduplicated
Data files
train toxic_pairs_minhash_train.parquet
test toxic_pairs_minhash_test.parquet

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
cc0-1.0
Language
en
Created on HFCreated
2024-10-31 · 2 years ago
Size category
100K<n<1M
ModalitiesData types
text
Formats
parquet
LibrariesTools
datasetspandasmlcroissantpolars

Related datasets same stage · Evaluatesame step · Testing

Read further

Total size
137.8 MB
Files
6
Formats
parquet
Head
2ace4c5
Last updated on HFLast updated
2024-12-20

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("dleemiller/toxic-pairs")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="dleemiller/toxic-pairs", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/dleemiller/toxic-pairs

Files by folder from our last crawlfrom our last check

top level 6 files 137.8 MB
.gitattributes 2.5 KB file download
README.md 3.2 KB md download
toxic_pairs_minhash_test.parquet 503.7 KB parquet download
toxic_pairs_minhash_train.parquet 4.3 MB parquet download
toxic_pairs_test.parquet 6.9 MB parquet download
toxic_pairs_train.parquet 126.1 MB parquet download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Toxic Pairs (English)

Warning: Contains offensive language, not for all audiences

Because this dataset is marked "not for all audiences", preview isn't available. The columns are:

Index(['sentence1', 'sentence2', 'score', 'label'], dtype='object')

Content marked 'safe' from LlamaGuard3 may still contain profanity/offensive language, though it does not
meet any of the moderation criteria defined for LlamaGuard3. I have set the label for these texts as S0.

Recommended: Use deduplicated subset processed via MinHash for use with training.

Train (raw) has 177549 rows

Test has 10000 rows

Categories are imbalanced:

train_df.label.value_counts()

label
S11    92912
S0     42816
S10    32111
S1      4791
S12     2300
S5      1116
S4       405
S6       305
S8       264
S3       202
S2       179
S7        83
S13       36
S9        29
Name: count, dtype: int64
Llama Guard 3 categories (S0 for 'safe')
S1: Violent Crimes S2: Non-Violent Crimes
S3: Sex-Related Crimes S4: Child Sexual Exploitation
S5: Defamation S6: Specialized Advice
S7: Privacy S8: Intellectual Property
S9: Indiscriminate Weapons S10: Hate
S11: Suicide & Self-Harm S12: Sexual Content

This is a dataset of offensive content mined from several source datasets:

Youtube toxic comments: https://www.kaggle.com/datasets/reihanenamdari/youtube-toxicity-data

Jigsaw: https://www.kaggle.com/datasets/julian3833/jigsaw-toxic-comment-classification-challenge

Cyberbullying Dataset: https://www.kaggle.com/datasets/saurabhshahane/cyberbullying-dataset

Creation Process

I first inferenced the text through LlamaGuard3 and sorted texts into categorical folders based on their llamaguard classification category.
For each classification, I used WordLlama to fuzzy deduplicate the texts, and added them to a BM25s index.

For each text in the classification, I retrieved the top50 results, reranked them using cross-encoder/stsb-roberta-large,
and thresholded them between scores of 0.5 to 0.95. I retained up to 5 results per text.
Finally, I deduplicated them again and stored the results.

Goal

The goal of this dataset is to help embedding models with understanding toxic content for tasks like content moderation,
and benchmarks like ToxicConversationsClassification.

README historyEdit history latest 20 of 23 revisionslatest 20 of 23 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2024-12-20 Rename toxic_pairs_minhash_train.pqt to toxic_pairs_minhash_train.parquet 2ace4c5 3.1 KB
    Loading...
  2. 2024-12-20 Rename toxic_pairs_minhash_test.pqt to toxic_pairs_minhash_test.parquet e8fb1ee 3.1 KB
    Loading...
  3. 2024-12-20 Update README.md 0fd831b 3.1 KB
    Loading...
  4. 2024-12-20 Update README.md 3e24a7d 3.1 KB
    Loading...
  5. 2024-12-20 Update README.md 8d10b29 3.1 KB
    Loading...
  6. 2024-12-20 Upload 2 files c87884a 2.7 KB
    Loading...
  7. 2024-10-31 Update README.md 951a994 2.7 KB
    Loading...
  8. 2024-10-31 Update README.md 46b9dff 2.7 KB
    Loading...
  9. 2024-10-31 Update README.md 2ca0def 2.5 KB
    Loading...
  10. 2024-10-31 Update README.md ecb1fa0 2.2 KB
    Loading...
  11. 2024-10-31 Update README.md 19020a6 1.5 KB
    Loading...
  12. 2024-10-31 Update README.md 9fffb5c 1.5 KB
    Loading...
  13. 2024-10-31 Update README.md 070fd87 1.3 KB
    Loading...
  14. 2024-10-31 Upload 2 files 74a7633 1.3 KB
    Loading...
  15. 2024-10-31 Delete toxic_pairs.parquet 3345634 1.3 KB
    Loading...
  16. 2024-10-31 Update README.md db8ae87 1.3 KB
    Loading...
  17. 2024-10-31 Update README.md 5987686 1.3 KB
    Loading...
  18. 2024-10-31 Upload toxic_pairs.parquet 4ccd060 1.3 KB
    Loading...
  19. 2024-10-31 Delete toxic_pairs.jsonl c75c3df 1.3 KB
    Loading...
  20. 2024-10-31 Upload toxic_pairs.jsonl 8c165cd 1.3 KB
    Loading...

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2024-12-29 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

dleemiller/toxic-pairs

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration