misc 0 0 0

canbingol/harmful-prompts

published by @canbingol

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
197
Last 30 days
21
Likes
-
Size
545 KB
Created on HF
2026-02-12
Age
8 months ago

Description

This dataset was created by taking 20k samples from the PKU-Alignment/BeaverTails dataset.

Based on my observations, there may be incorrect labels. Please refer to the original dataset.

base dataset

Dataset creating

dataset_id = "PKU-Alignment/BeaverTails"

dataset = load_dataset(dataset_id, split="330k_train")

Remove unnecessary columns

dataset = dataset.remove_columns(["response", "category"])

Filter based on is_safe

safe_data = dataset.filter(lambda x:… See the full description on the dataset page: https://huggingface.co/datasets/canbingol/harmful-prompts.

Tags

size_categories:10K<n<100Kformat:parquetformat:optimized-parquetmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:us

README current version from Hugging Face


dataset_info:
features:

  • name: prompt
    dtype: string
  • name: is_safe
    dtype: bool
    splits:
  • name: train
    num_bytes: 1415658
    num_examples: 20000
  • name: validation
    num_bytes: 70782
    num_examples: 1000
    download_size: 554090
    dataset_size: 1486440
    configs:
  • config_name: default
    data_files:
    • split: train
      path: data/train-*
    • split: validation
      path: data/validation-*

This dataset was created by taking 20k samples from the PKU-Alignment/BeaverTails dataset.
Based on my observations, there may be incorrect labels. Please refer to the original dataset.
base dataset

Dataset creating

dataset_id = "PKU-Alignment/BeaverTails"
dataset = load_dataset(dataset_id, split="330k_train")
  • Remove unnecessary columns
dataset = dataset.remove_columns(["response", "category"])
  • Filter based on is_safe
safe_data = dataset.filter(lambda x: x["is_safe"]==True)
harmful_data = dataset.filter(lambda x: x["is_safe"]==False)

train_safe_data = safe_data.shuffle(42).select(range(10_000))
train_harmful_data = harmful_data.shuffle(42).select(range(10_000))

test_safe_data = safe_data.shuffle(42).select(range(10_000, 10500))
test_harmful_data = harmful_data.shuffle(42).select(range(10_000, 10500))
  • Concatenate dataset
train_dataset = concatenate_datasets([train_safe_data, train_harmful_data])
val_dataset = concatenate_datasets([test_safe_data, test_harmful_data])
from datasets import DatasetDict

dataset = DatasetDict({
    "train": train_dataset,
    "validation": val_dataset
})

README history 7 revisions

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.

  1. 2026-02-12Update README.md6dbb6141.6 KB
    Loading...
  2. 2026-02-12Update README.md7b2dd711.6 KB
    Loading...
  3. 2026-02-12Update README.mdd7e94791.4 KB
    Loading...
  4. 2026-02-12Update README.mdfa100c5518 B
    Loading...
  5. 2026-02-12Upload dataset410ae54425 B
    Loading...
  6. 2026-02-12Upload datasetf556ad1425 B
    Loading...
  7. 2026-02-12initial commit11aa7870 B
    Loading...

Used by abliterated 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.

Related datasets same stage · misc

Read further

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("canbingol/harmful-prompts")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="canbingol/harmful-prompts", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/canbingol/harmful-prompts
Catalog is the map. Apps are the tools.

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

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration