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.

zhiyichin/p4d

published by @zhiyichin

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

license:cc-by-4.0size_categories:n<1Kformat:csvmodality:tabularmodality:textlibrary:datasetslibrary:dasklibrary:polars +5 more
Lifetime downloads
1.2K
Last 30 days
173
Likes
5
Size
53.9 KB

Description

Prompting4Debugging Dataset

This dataset contains prompts designed to evaluate and challenge the safety mechanisms of generative text-to-image models, with a particular focus on identifying prompts that are likely to produce images containing nudity. Introduced in the 2024 ICML paper Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts, this dataset is not specific to any single approach or model but is intended to test various… See the full description on the dataset page: https://huggingface.co/datasets/zhiyichin/p4d.

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
cc-by-4.0
Created on HFCreated
2024-05-27 · 2 years ago
Size category
n<1K
ModalitiesData types
tabulartext
Formats
csv
LibrariesTools
datasetsdaskpolarsmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
53.9 KB
Files
4
Formats
csv
Head
dd86867
Last updated on HFLast updated
2024-05-27

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

Files by folder from our last crawlfrom our last check

top level 4 files 53.9 KB
.gitattributes 2.3 KB file download
p4dk_3_prompt.csv 27.6 KB csv download
p4dn_16_prompt.csv 19.9 KB csv download
README.md 4.1 KB md download

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

Prompting4Debugging Dataset

This dataset contains prompts designed to evaluate and challenge the safety mechanisms of generative text-to-image models, with a particular focus on identifying prompts that are likely to produce images containing nudity. Introduced in the 2024 ICML paper Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts, this dataset is not specific to any single approach or model but is intended to test various mitigating measures against inappropriate content generation in models like Stable Diffusion. This dataset is only for research purposes.
Disclaimer: These prompts may induce text-to-image model generates outputs that may be offensive or upsetting in nature.

Data Collection

The dataset consists of optimized prompts from the P4D (Prompting for Debugging) framework. We initially collected input prompts from the I2P dataset, targeting prompts that do not typically yield objectionable outputs from text-to-image models equipped with safety mechanisms (safe T2I). Using our proposed P4D method, we optimized these prompts to induce safe T2I models to generate objectionable outputs. The generated images share a high similarity with those produced by Stable Diffusion without safety mechanisms when using the original input prompts.

We collected "universal problematic prompts" – optimized prompts that consistently yield objectionable results across four different safe T2I models: ESD, SLD-MAX, SLD-STRONG, and SD-NEGP (Stable Diffusion with negative prompts). Both P4D-N and P4D-K optimized prompts are included in the dataset. P4D-N optimizes 16 randomly initialized tokens, while P4D-K adds a token to optimize every three tokens in the original input prompt.

Dataset Format

Each CSV file in the dataset contains the following fields:

Field Explanation
prompt The optimized universal problematic prompt from P4D
evaluation_seed Random seed used in our image generation
evaluation_guidance Stable Diffusion guidance scale used in our image generation
case_number The corresponding case number mapping to the original I2P prompt
safe_model The specific safe T2I model used for debugging from which the prompt is optimized
safe_level The safety mechanism that the SLD is equipped with

This structure ensures that each prompt is thoroughly documented and can be accurately mapped to its source and evaluation parameters, facilitating robust testing and comparison across different models and safety mechanisms.

Citation Information

@inproceedings{prompting4debugging,
  title={Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts},
  author={Zhi-Yi Chin and Chieh-Ming Jiang and Ching-Chun Huang and Pin-Yu Chen and Wei-Chen Chiu},
  booktitle={International Conference on Machine Learning (ICML)},
  year={2024}
}

README historyEdit history 13 revisions13 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-05-27 modify gated field dd86867 4 KB
    Loading...
  2. 2024-05-27 modify gated field 25e0863 4 KB
    Loading...
  3. 2024-05-27 modify gated field 1acdf4e 4 KB
    Loading...
  4. 2024-05-27 modify gated field c2815e4 4 KB
    Loading...
  5. 2024-05-27 modify gated field 65e1174 4.2 KB
    Loading...
  6. 2024-05-27 modify gated field e92f1ea 4.2 KB
    Loading...
  7. 2024-05-27 modify gated field fdba246 4.1 KB
    Loading...
  8. 2024-05-27 modify gated prompt d928cfd 4 KB
    Loading...
  9. 2024-05-27 modify gated prompt 38da1a3 4 KB
    Loading...
  10. 2024-05-27 add gated dataset metadata eee1634 4 KB
    Loading...
  11. 2024-05-27 add dataset description db27c3b 3.3 KB
    Loading...
  12. 2024-05-27 add p4dn and p4dk universal problematic prompts 5bc2d4f 30 B
    Loading...
  13. 2024-05-27 initial commit cab8d01 30 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-05-28 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

zhiyichin/p4d

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