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.

thu-coai/SafetyBench

published by @thu-coai

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

license:mitsize_categories:10K<n<100Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissant +2 more
Lifetime downloads
22.3K
Last 30 days
1.7K
Likes
38
Size
10.4 MB

Description

SafetyBench is a comprehensive benchmark for evaluating the safety of LLMs, which comprises 11,435 diverse multiple choice questions spanning across 7 distinct categories of safety concerns. Notably, SafetyBench also incorporates both Chinese and English data, facilitating the evaluation in both languages.

Please visit our GitHub and website or check our paper for more details.

We release three differents test sets including Chinese testset (test_zh.json), English testset (test_en.json) and… See the full description on the dataset page: https://huggingface.co/datasets/thu-coai/SafetyBench.

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

test
Data files
zh test_zh.json
en test_en.json
zh_subset test_zh_subset.json
dev
Data files
zh dev_zh.json
en dev_en.json

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
mit
Created on HFCreated
2023-09-12 · 3 years ago
Size category
10K<n<100K
ModalitiesData types
text
Formats
json
LibrariesTools
datasetspandasmlcroissantpolars
ArXivPaper

Related datasets same stage · Evaluatesame step · Testing

Read further

Total size
10.4 MB
Files
7
Formats
json
Head
7053863
Last updated on HFLast updated
2023-09-14

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("thu-coai/SafetyBench")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="thu-coai/SafetyBench", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/thu-coai/SafetyBench

Files by folder from our last crawlfrom our last check

top level 7 files 10.4 MB
.gitattributes 2.3 KB file download
dev_en.json 13.1 KB json download
dev_zh.json 11.3 KB json download
README.md 2.2 KB md download
test_en.json 5.2 MB json download
test_zh_subset.json 774.4 KB json download
test_zh.json 4.4 MB json download

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

SafetyBench is a comprehensive benchmark for evaluating the safety of LLMs, which comprises 11,435 diverse multiple choice questions spanning across 7 distinct categories of safety concerns. Notably, SafetyBench also incorporates both Chinese and English data, facilitating the evaluation in both languages.

Please visit our GitHub and website or check our paper for more details.

We release three differents test sets including Chinese testset (test_zh.json), English testset (test_en.json) and Chinese subset testset (test_zh_subset.json). The Chinese subset testset removes samples with highly sensitive keywords to test API-based Chinese LLMs with strict filtering mechanism.
We also release 5 examples for each of the 7 safety categories in both Chinese (dev_zh.json) and English (dev_en.json), to enable few-shot evaluation.

Labels on the test sets are not released and users are required to submit their results to automatically obtain test accuracy. How to submit?

Load the Data

from datasets import load_dataset

test_dataset = load_dataset("thu-coai/SafetyBench", "test")
dev_dataset = load_dataset("thu-coai/SafetyBench", "dev")

More details about loading the data and evaluating LLMs could be found at our github repository.

Please cite our paper if you use our dataset.

@article{zhang2023safetybench,
      title={SafetyBench: Evaluating the Safety of Large Language Models with Multiple Choice Questions}, 
      author={Zhexin Zhang and Leqi Lei and Lindong Wu and Rui Sun and Yongkang Huang and Chong Long and Xiao Liu and Xuanyu Lei and Jie Tang and Minlie Huang},
      journal={arXiv preprint arXiv:2309.07045},
      year={2023}
}

README historyEdit history 8 revisions8 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. 2023-09-14 Update README.md 7053863 2.2 KB
    Loading...
  2. 2023-09-12 Update README.md fa9f1a2 1.6 KB
    Loading...
  3. 2023-09-12 Update README.md 277d0d8 1.6 KB
    Loading...
  4. 2023-09-12 Update README.md bffe057 304 B
    Loading...
  5. 2023-09-12 Update README.md ec02e04 197 B
    Loading...
  6. 2023-09-12 Upload 4 files 06962eb 21 B
    Loading...
  7. 2023-09-12 Upload dev_en.json 6a5b993 21 B
    Loading...
  8. 2023-09-12 initial commit 2b10225 21 B
    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. 2026-12-04 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

thu-coai/SafetyBench

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