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.

LibrAI/do-not-answer

published by @LibrAI

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

task_categories:text-generationlanguage:enlicense:apache-2.0size_categories:n<1Kformat:parquetmodality:tabularmodality:textlibrary:datasets +7 more
Lifetime downloads
86.6K
Last 30 days
6.9K
Likes
61
Size
7.0 MB

Description

Do-Not-Answer: A Dataset for Evaluating Safeguards in LLMs

Overview

Do not answer is an open-source dataset to evaluate LLMs' safety mechanism at a low cost. The dataset is curated and filtered to consist only of prompts to which responsible language models do not answer.

Besides human annotations, Do not answer also implements model-based evaluation, where a 600M fine-tuned BERT-like evaluator achieves comparable results with human and GPT-4.… See the full description on the dataset page: https://huggingface.co/datasets/LibrAI/do-not-answer.

Structure 1 config · from the README front matter1 subset, from the author's description

default default 939 rows
SplitPartRowsSize
train 939 4.0 MB
FeaturesFields
idint64 risk_areastring types_of_harmstring specific_harmsstring questionstring GPT4_responsestring GPT4_harmfulint64 GPT4_actionint64 ChatGPT_responsestring ChatGPT_harmfulint64 ChatGPT_actionint64 Claude_responsestring Claude_harmfulint64 Claude_actionint64 ChatGLM2_responsestring ChatGLM2_harmfulint64 ChatGLM2_actionint64 llama2-7b-chat_responsestring llama2-7b-chat_harmfulint64 llama2-7b-chat_actionint64 vicuna-7b_responsestring vicuna-7b_harmfulint64 vicuna-7b_actionint64

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.

Derived corporaBuilt from it 2 datasets in the catalog cite this one

Other datasets in the catalog whose description names this one as a source (`based on`, `derived from`, `extended from`, `subset of`, `translated from`, etc.). This is the lineage-hint layer that complements the "Used by models" section above: many models cite the derived corpus rather than this root.Other datasets in the catalog whose description says they were built from this one (for example "based on" or "translated from"). Many models name one of these datasets instead of this one, so this list adds to the list of models above.

MetadataDetails

License
apache-2.0
Language
en
Created on HFCreated
2023-08-28 · 3 years ago
Size category
n<1K
ModalitiesData types
tabulartext
Formats
parquet
LibrariesTools
datasetspandasmlcroissantpolars
ArXivPaper

Related datasets same stage · Evaluatesame step · Testing

Read further

Total size
7.0 MB
Files
11
Formats
png, csv, parquet
Head
74e74f2
Last updated on HFLast updated
2023-08-28

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

Files by folder from our last crawlfrom our last check

top level 3 files 3.9 MB
.gitattributes 2.3 KB file download
data_en.csv 3.9 MB csv download
README.md 4.2 KB md download
assets/ 7 files 1.3 MB
action_dist.png 44.8 KB png download
action.png 248.6 KB png download
auto_eval.png 34.4 KB png download
dna.png 409.7 KB png download
harmful_num.png 13.7 KB png download
instruction_dist.png 129.6 KB png download
radar_plot.png 455.2 KB png download
data/ 1 file 1.7 MB
train-00000-of-00001-6ba0076b818accff.parquet 1.7 MB parquet download

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

Do-Not-Answer: A Dataset for Evaluating Safeguards in LLMs

Overview

Do not answer is an open-source dataset to evaluate LLMs' safety mechanism at a low cost. The dataset is curated and filtered to consist only of prompts to which responsible language models do not answer.
Besides human annotations, Do not answer also implements model-based evaluation, where a 600M fine-tuned BERT-like evaluator achieves comparable results with human and GPT-4.

Instruction Taxonomy

Instructions are organized by a three-level hierarchical taxonomy, covering 61 specific harms.
taxonomy

Do not answer collects 939 instructions, the distribution across five risk areas and 12 harm types is shown below:

risk_area

Response Assessment

We assess six models' responses (GPT-4, ChatGPT, Claude, LLaMA-2, Vicuna, ChatGLM2) from two levels.

  • Harmfulness: whether a response is harmful (a binary label).
  • Action category: responses are categorized into six distinct groups, each representing a specific response type.

action

Human Evaluation

High percentage of safe responses across five risk areas for six models demonstrates that they are basically safe.
LLaMA-2 ranks the first, followed by ChatGPT, Claude, GPT-4, and Vicuna, with ChatGLM2 ranking the last by 85 harmful responses among 939.

  • Harmlessness Rank

harmful_num

  • Action Category Distribution

action_distribution

Automatic Evaluation

Longformer evaluators achieve comparable results with human and GPT-4.

  • GPT-4 evaluation
  • Fine-tuned Longformer classifier (600M)
Model Human GPT-4 Longformer
LLaMA-2 99.7 99.4 99.3
ChatGPT 98.5 97.7 97.9
Claude 98.3 98.3 97.6
GPT-4 97.6 96.5 97.2
vicuna 94.5 94.9 95.0
ChatGLM2 90.9 92.9 92.9

Citation

If our work is useful for your own, you can cite us with the following BibTex entry:

@misc{wang2023donotanswer,
    author = {Wang, Yuxia, and 
        Li, Haonan and 
        Han, Xudong and 
        Nakov, Preslav 
        and Baldwin, Timothy},
    title = {Do-Not-Answer: A Dataset for Evaluating Safeguards in LLMs},
    year = {2023},
    howpublished = {arXiv preprint arXiv:2308.13387},
}

License

All datasets in this repository are released under the
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. All source files in this repository are released under the Apache 2.0 license, the text of which can be found in the LICENSE file.

README historyEdit history 7 revisions7 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-08-28 Upload README.md with huggingface_hub 74e74f2 4.1 KB
    Loading...
  2. 2023-08-28 Upload data/train-00000-of-00001-6ba0076b818accff.parquet with huggingface_hub 534a77d 3 KB
    Loading...
  3. 2023-08-28 Update README.md 01a9b19 3 KB
    Loading...
  4. 2023-08-28 Update README 7265bd7 3.3 KB
    Loading...
  5. 2023-08-28 Create README.md 2716df5 166 B
    Loading...
  6. 2023-08-28 init c53bd1d 0 B
    Loading...
  7. 2023-08-28 initial commit d09dbd1 0 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. 2024-06-17 License mismatch open 1 💬 #1
    Loading...
Download from Hugging Face

LibrAI/do-not-answer

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